1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

i3/config: fix fullscreen lock disabling

This commit is contained in:
Joe Groocock 2017-10-03 11:35:02 +01:00
parent 3c54f8e886
commit 3915bfa6bb
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86
2 changed files with 7 additions and 7 deletions

View File

@ -182,7 +182,7 @@ exec --no-startup-id "ip monitor | while read line; do pkill -RTMIN+15 i3blocks;
# app launch shortcuts
exec --no-startup-id ~/.fehbg
exec --no-startup-id ~/.config/i3/disable-standby-fs.py
exec --no-startup-id xautolock -time 5 -locker ~/.config/i3/lock.sh
exec --no-startup-id xautolock -time 5 -locker ~/.config/i3/lock.sh -nocloseout -nocloseerr
# startup programs
exec --no-startup-id pulseaudio

12
.config/i3/disable-standby-fs.py Normal file → Executable file
View File

@ -16,16 +16,16 @@ args = parser.parse_args()
def on_fullscreen_mode(i3, e):
if e.container.props.fullscreen_mode:
call(['xset', 's', 'off'])
call(['xset', '-dpms'])
call(['xautolock', '-disable'])
print("disabling autolock")
else:
call(['xset', 's', 'on'])
call(['xset', '+dpms'])
call(['xautolock', '-enable'])
print("enabling autolock")
def on_window_close(i3, e):
if e.container.props.fullscreen_mode:
call(['xset', 's', 'on'])
call(['xset', '+dpms'])
call(['xautolock', '-enable'])
print("enabling autolock")
i3.on('window::fullscreen_mode', on_fullscreen_mode)
i3.on('window::close', on_window_close)