diff --git a/hypr-configs/dotfiles/hypr/configs/startup.conf b/hypr-configs/dotfiles/hypr/configs/startup.conf index 3cd475a..56ee5d9 100644 --- a/hypr-configs/dotfiles/hypr/configs/startup.conf +++ b/hypr-configs/dotfiles/hypr/configs/startup.conf @@ -2,7 +2,7 @@ # Startup # ----------------------------------------------------- -# exec-once = [workspace 3 silent] nekoray -exec-once = [workspace 3 silent] $terminal -e bandwhich exec-once = [workspace 3 silent] $terminal -e htop -exec-once = [workspace 3 silent] $terminal -e tty-clock -c +# exec-once = [workspace 3 silent] nekoray +# exec-once = [workspace 3 silent] $terminal -e bandwhich +# exec-once = [workspace 3 silent] $terminal -e tty-clock -c diff --git a/hypr-configs/dotfiles/rofi/applets/bin/powermenu.sh b/hypr-configs/dotfiles/rofi/applets/bin/powermenu.sh index 2ff44e2..44e0f6a 100755 --- a/hypr-configs/dotfiles/rofi/applets/bin/powermenu.sh +++ b/hypr-configs/dotfiles/rofi/applets/bin/powermenu.sh @@ -98,14 +98,24 @@ confirm_run() { fi } +confirm_run_suspend() { + selected="$(confirm_exit)" + if [[ "$selected" == "$yes" ]]; then + hyprlock & + disown && loginctl suspend + else + exit + fi +} + # Execute Command run_cmd() { if [[ "$1" == '--opt1' ]]; then - sleep 1 && swaylock + sleep 1 && hyprlock elif [[ "$1" == '--opt2' ]]; then confirm_run 'hyprctl dispatch exit' elif [[ "$1" == '--opt3' ]]; then - confirm_run 'loginctl suspend' + confirm_run_suspend elif [[ "$1" == '--opt4' ]]; then confirm_run 'loginctl hibernate' elif [[ "$1" == '--opt5' ]]; then diff --git a/linux-configs b/linux-configs index 1646d57..209e63f 160000 --- a/linux-configs +++ b/linux-configs @@ -1 +1 @@ -Subproject commit 1646d5742a802f89db58540efc3909fb28d1112c +Subproject commit 209e63f165140c2df2878ee4f1b6f287cee8cca8