diff options
author | Amin Bandali <bandali@gnu.org> | 2018-10-21 23:58:19 -0400 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2018-10-21 23:58:19 -0400 |
commit | 405e14e90746a8cc694865ef1e29e78f4c690883 (patch) | |
tree | 9b787df2b324f854090c732f575309eb97bf8dd3 | |
parent | c8223a94daf3e86d01e0686c00f68ff36288689c (diff) | |
download | configs-405e14e90746a8cc694865ef1e29e78f4c690883.tar.gz configs-405e14e90746a8cc694865ef1e29e78f4c690883.tar.xz configs-405e14e90746a8cc694865ef1e29e78f4c690883.zip |
[rc/sway] simple file-based presentation mode
-rw-r--r-- | rc.org | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -3794,8 +3794,8 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill ### Idle configuration exec swayidle \ - timeout 120 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' \ + timeout 120 '[ -f ~/.nosleep ] || swaymsg "output * dpms off"' \ + resume '[ -f ~/.nosleep ] || swaymsg "output * dpms on"' \ before-sleep swaylock @@ -3982,6 +3982,12 @@ mode "$mode_system" { bindsym XF86PowerOff mode "$mode_system" # +# Presentation mode +# + +bindsym $mod+$mod2+p exec [ ! -e ~/.nosleep ] && touch ~/.nosleep || rm ~/.nosleep + +# # Notifications # |