From 13e3f2bd9d8c645c6e075cc7460f0e5e377c1bb5 Mon Sep 17 00:00:00 2001 From: 305a385 <132265158+ef3dd1b07c14731a7fe2fd5455e50fc3@users.noreply.github.com> Date: Tue, 13 Jun 2023 19:40:21 +0200 Subject: [PATCH] added shutdown menu --- .config/bin/shutdown.sh | 12 ++++++++++++ .config/hypr/hyprland.conf | 2 ++ README.md | 3 ++- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 .config/bin/shutdown.sh 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)