summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-08-14 16:00:07 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-08-17 10:52:29 -0700
commitfaf9bffe02a1407990373453935705f5b8de378d (patch)
tree8704c31b2199734c4928a7ffd2622513cdcaf1fd /.config
parente20a00bebf2bb0fa1d19edd674d34395d6dcbd24 (diff)
downloaddotfiles-faf9bffe02a1407990373453935705f5b8de378d.tar.gz
use IPC subscription for caffeinated status
Diffstat (limited to '.config')
-rw-r--r--.config/sway/config12
1 files changed, 4 insertions, 8 deletions
diff --git a/.config/sway/config b/.config/sway/config
index daba575b..0c383426 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -63,7 +63,7 @@ mode "C-i-" {
bindsym --locked Shift+l exec systemctl suspend, mode "default"
# kill focused window
- bindsym k exec pkill -u $USER -f --signal USR1 i3status-wrapper, kill, mode "default"
+ bindsym k kill, mode "default"
# sway sample config says to pipe dmenu into `xargs swaymsg exec --`
# but doesn't seem necessary with wofi
@@ -222,13 +222,9 @@ mode "C-i-" {
bindsym n [app_id="foot-irssi"] focus, mode "default"
bindsym c [con_mark=caffeinated] inhibit_idle none; \
- mark --toggle caffeinated; \
- exec pkill -u $USER -f --signal USR1 i3status-wrapper; \
- mode "default"
+ mark --toggle caffeinated; mode "default"
bindsym Shift+c [con_mark=caffeinated] inhibit_idle none; \
- [con_mark=caffeinated] mark --toggle caffeinated; \
- exec pkill -u $USER -f --signal USR1 i3status-wrapper; \
- mode "default"
+ [con_mark=caffeinated] mark --toggle caffeinated; mode "default"
# The two % values are for melete. Cf. `spw/maybe-scale-basic-faces'.
#
@@ -276,7 +272,7 @@ bindsym Mod4+Ctrl+p move up
bindsym Mod4+apostrophe layout toggle split
-bindsym Mod1+Ctrl+i exec pkill -u $USER -f --signal USR1 i3status-wrapper, kill
+bindsym Mod1+Ctrl+i kill
# Cycle through all workspaces on monitor. Unlike C-i j and C-i [0-9]+, these
# move the container *and* switch view to the other workspace, because there