diff --git a/.config/bin/shutdown.sh b/.config/bin/shutdown.sh new file mode 100755 index 0000000..8a7b5df --- /dev/null +++ b/.config/bin/shutdown.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +choice=`printf 'cancel\nshutdown' | wofi -dk /dev/null` + +case $choice in + 'cancel') + exit + ;; + 'shutdown') + shutdown now + ;; +esac diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 2167344..b62a037 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -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% diff --git a/README.md b/README.md index dab87ea..1f731bc 100644 --- a/README.md +++ b/README.md @@ -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)