aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/sway
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:28 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:28 +0100
commit0fff052767335f33018c0896390e528aa6ec3dd3 (patch)
treeba207c167efc6ed3312c653397897b3c45e30a5f /dot_config/sway
parent833eee2c5d1dd85765f6980d255e7480c982abf0 (diff)
downloaddotfiles-0fff052767335f33018c0896390e528aa6ec3dd3.tar.gz
dotfiles-0fff052767335f33018c0896390e528aa6ec3dd3.tar.bz2
dotfiles-0fff052767335f33018c0896390e528aa6ec3dd3.zip
fix(sway): call doas with absolute paths for reboot/poweroff
doas matches the 'cmd' rule literally against argv[0], not against the resolved PATH lookup. With 'cmd /usr/bin/poweroff' in doas.conf, 'doas poweroff' is denied silently — works only as 'doas /usr/bin/poweroff'. The interactive shell aliases sudo->doas and was hiding the issue when typing the bare command in a terminal (PATH expansion happens in the shell before doas sees argv[0]... only when explicitly typed with absolute path).
Diffstat (limited to 'dot_config/sway')
-rw-r--r--dot_config/sway/config4
1 files changed, 2 insertions, 2 deletions
diff --git a/dot_config/sway/config b/dot_config/sway/config
index 5c9e767..93fd4be 100644
--- a/dot_config/sway/config
+++ b/dot_config/sway/config
@@ -124,8 +124,8 @@ bindsym $mod+Shift+c reload
bindsym $mod+Shift+e exec swaynag -t warning -m 'Session' \
-B 'Lock' 'playerctl -a pause; swaylock -f -e -c 282828' \
-B 'Logout' 'swaymsg exit' \
- -B 'Reboot' 'doas reboot' \
- -B 'Poweroff' 'doas poweroff'
+ -B 'Reboot' 'doas /usr/bin/reboot' \
+ -B 'Poweroff' 'doas /usr/bin/poweroff'
# ── Personal keybinds ─────────────────────────────────────────────────────────