From db9b7f969507f006c1af399e99540f7e7f85e616 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sun, 30 Apr 2023 11:49:37 -0400 Subject: [PATCH] dwm-msg for session control - Update dwm-flexipatch submodule - Replace xdotool commands with dwm-msg commands for controlling dwm quit and restart --- .config/dwm-flexipatch | 2 +- .scripts/session.sh | 4 ++-- README.org | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.config/dwm-flexipatch b/.config/dwm-flexipatch index b60fad5..624a879 160000 --- a/.config/dwm-flexipatch +++ b/.config/dwm-flexipatch @@ -1 +1 @@ -Subproject commit b60fad590c638009a6ac89989b4f45882e35135d +Subproject commit 624a879ef29b3cb5042a0af9d06a10e37b2b4d19 diff --git a/.scripts/session.sh b/.scripts/session.sh index e2c8d1f..d024c16 100755 --- a/.scripts/session.sh +++ b/.scripts/session.sh @@ -43,7 +43,7 @@ main() { ;; --logout) notify-send "Session Control" "Logging Out of dwm" - xdotool key Super+Shift_L+q + dwm-msg run_command quit 0 ;; --lock) notify-send "Session Control" "Locking Session" @@ -67,7 +67,7 @@ main() { ;; --restart) notify-send "Session Control" "Restarting dwm" - xdotool key Super+Control_L+Shift_L+q + dwm-msg run_command quit 1 ;; --rofi) rofi_menu diff --git a/README.org b/README.org index 3245db7..b131082 100644 --- a/README.org +++ b/README.org @@ -8928,7 +8928,7 @@ main() { ;; --logout) notify-send "Session Control" "Logging Out of dwm" - xdotool key Super+Shift_L+q + dwm-msg run_command quit 0 ;; --lock) notify-send "Session Control" "Locking Session" @@ -8952,7 +8952,7 @@ main() { ;; --restart) notify-send "Session Control" "Restarting dwm" - xdotool key Super+Control_L+Shift_L+q + dwm-msg run_command quit 1 ;; --rofi) rofi_menu