added shutdown menu

This commit is contained in:
305a385 2023-06-13 19:40:21 +02:00
parent bdbce2e38b
commit 13e3f2bd9d
3 changed files with 16 additions and 1 deletions

12
.config/bin/shutdown.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
choice=`printf 'cancel\nshutdown' | wofi -dk /dev/null`
case $choice in
'cancel')
exit
;;
'shutdown')
shutdown now
;;
esac

View File

@ -119,6 +119,8 @@ bind = $mainMod, L, exec, librewolf
bind = $mainMod, R, exec, wofi -S run
bind = $mainMod, S, exec, $HOME/.config/bin/music.sh # runs music launcher
bind = $mainMod, F3, exec, grim # takes screenshot
bind = , XF86PowerOff, exec, $HOME/.config/bin/shutdown.sh
# volume
bind = ,XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5%

View File

@ -6,9 +6,10 @@
- vim
- foot (terminal emulator)
## programs you need to install to use these dotfiles
## dependencies
- wofi (wayland dmenu replacement)
- mpd (media player daemon)
- mpc (controls media player daemon)
- brightnessctl
- grim (screenshots)
- pulseaudio (music program)