projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c8223a9
)
[rc/sway] simple file-based presentation mode
author
Amin Bandali
<bandali@gnu.org>
Mon, 22 Oct 2018 03:58:19 +0000
(23:58 -0400)
committer
Amin Bandali
<bandali@gnu.org>
Mon, 22 Oct 2018 03:58:19 +0000
(23:58 -0400)
rc.org
patch
|
blob
|
blame
|
history
diff --git
a/rc.org
b/rc.org
index
2be067f
..
51a9c97
100644
(file)
--- a/
rc.org
+++ b/
rc.org
@@
-3794,8
+3794,8
@@
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
### Idle configuration
exec swayidle \
### 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
before-sleep swaylock
@@
-3981,6
+3981,12
@@
mode "$mode_system" {
}
bindsym XF86PowerOff mode "$mode_system"
}
bindsym XF86PowerOff mode "$mode_system"
+#
+# Presentation mode
+#
+
+bindsym $mod+$mod2+p exec [ ! -e ~/.nosleep ] && touch ~/.nosleep || rm ~/.nosleep
+
#
# Notifications
#
#
# Notifications
#