From 39f61a613eae5b2920ff6b8ee2b2b18f2ee6d2cd Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sun, 27 Apr 2025 11:10:37 -0400 Subject: [PATCH] Update Session / Control Center Scripts for Hyprland - Update hyprland submodule - Move session control script from dwl to hyprland - Move control center script from dwl to hyprland --- README.org | 8 ++++---- hyprland/.config/hypr | 2 +- {dwl => hyprland}/.scripts/control-center.sh | 0 {dwl => hyprland}/.scripts/session.sh | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) rename {dwl => hyprland}/.scripts/control-center.sh (100%) rename {dwl => hyprland}/.scripts/session.sh (94%) diff --git a/README.org b/README.org index e24e583..f377a04 100644 --- a/README.org +++ b/README.org @@ -10393,7 +10393,7 @@ main $@ ** Session Control -#+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle dwl/.scripts/session.sh +#+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle hyprland/.scripts/session.sh help_menu() { echo "Script to interact with desktop session. Use only one argument at a time." # echo " - Play / Pause: playerctl.sh --play-pause" @@ -10435,8 +10435,8 @@ main() { help_menu ;; --logout) - notify-send "Session Control" "Logging Out of dwl" & - pkill dwl + notify-send "Session Control" "Logging Out of Hyprland" & + loginctl terminate-user "" ;; --lock) notify-send "Session Control" "Locking Session" & @@ -10466,7 +10466,7 @@ main $@ ** Control Center -#+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle dwl/.scripts/control-center.sh +#+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle hyprland/.scripts/control-center.sh help_menu() { echo "Main script to launch sub-menu scripts. Use only one argument at a time." # echo " - Play / Pause: playerctl.sh --play-pause" diff --git a/hyprland/.config/hypr b/hyprland/.config/hypr index 2706184..2c5b298 160000 --- a/hyprland/.config/hypr +++ b/hyprland/.config/hypr @@ -1 +1 @@ -Subproject commit 270618456b6490a334e7dcb74571bb084504c40d +Subproject commit 2c5b298ace1c1a02f3ed9ba8610ad69f4aca54ee diff --git a/dwl/.scripts/control-center.sh b/hyprland/.scripts/control-center.sh similarity index 100% rename from dwl/.scripts/control-center.sh rename to hyprland/.scripts/control-center.sh diff --git a/dwl/.scripts/session.sh b/hyprland/.scripts/session.sh similarity index 94% rename from dwl/.scripts/session.sh rename to hyprland/.scripts/session.sh index 3263fc4..4e3d7ba 100755 --- a/dwl/.scripts/session.sh +++ b/hyprland/.scripts/session.sh @@ -40,8 +40,8 @@ main() { help_menu ;; --logout) - notify-send "Session Control" "Logging Out of dwl" & - pkill dwl + notify-send "Session Control" "Logging Out of Hyprland" & + loginctl terminate-user "" ;; --lock) notify-send "Session Control" "Locking Session" &