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:
parent
3c54f8e886
commit
3915bfa6bb
@ -182,7 +182,7 @@ exec --no-startup-id "ip monitor | while read line; do pkill -RTMIN+15 i3blocks;
|
|||||||
# app launch shortcuts
|
# app launch shortcuts
|
||||||
exec --no-startup-id ~/.fehbg
|
exec --no-startup-id ~/.fehbg
|
||||||
exec --no-startup-id ~/.config/i3/disable-standby-fs.py
|
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
|
# startup programs
|
||||||
exec --no-startup-id pulseaudio
|
exec --no-startup-id pulseaudio
|
||||||
|
12
.config/i3/disable-standby-fs.py
Normal file → Executable file
12
.config/i3/disable-standby-fs.py
Normal file → Executable file
@ -16,16 +16,16 @@ args = parser.parse_args()
|
|||||||
|
|
||||||
def on_fullscreen_mode(i3, e):
|
def on_fullscreen_mode(i3, e):
|
||||||
if e.container.props.fullscreen_mode:
|
if e.container.props.fullscreen_mode:
|
||||||
call(['xset', 's', 'off'])
|
call(['xautolock', '-disable'])
|
||||||
call(['xset', '-dpms'])
|
print("disabling autolock")
|
||||||
else:
|
else:
|
||||||
call(['xset', 's', 'on'])
|
call(['xautolock', '-enable'])
|
||||||
call(['xset', '+dpms'])
|
print("enabling autolock")
|
||||||
|
|
||||||
def on_window_close(i3, e):
|
def on_window_close(i3, e):
|
||||||
if e.container.props.fullscreen_mode:
|
if e.container.props.fullscreen_mode:
|
||||||
call(['xset', 's', 'on'])
|
call(['xautolock', '-enable'])
|
||||||
call(['xset', '+dpms'])
|
print("enabling autolock")
|
||||||
|
|
||||||
i3.on('window::fullscreen_mode', on_fullscreen_mode)
|
i3.on('window::fullscreen_mode', on_fullscreen_mode)
|
||||||
i3.on('window::close', on_window_close)
|
i3.on('window::close', on_window_close)
|
||||||
|
Loading…
Reference in New Issue
Block a user