dwm-msg for session control

- Update dwm-flexipatch submodule
- Replace xdotool commands with dwm-msg
  commands for controlling dwm
  quit and restart
This commit is contained in:
Sravan Balaji
2023-04-30 11:49:37 -04:00
parent 4b8edf6b32
commit db9b7f9695
3 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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