From 59698df265975c0c6df80adb7e2e2d55ad596ca1 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Sat, 1 Apr 2023 13:45:40 -0500 Subject: [PATCH] Adding dm-logout keybindings. --- .config/qtile/README.org | 4 ++-- .config/qtile/config.py | 4 ++-- .config/sxhkd/sxhkdrc | 8 ++++++-- .config/xmonad/xmonad-with-polybar.org | 4 ++-- .config/xmonad/xmonad-with-xmobar.org | 4 ++-- .config/xmonad/xmonad.hs | 4 ++-- 6 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.config/qtile/README.org b/.config/qtile/README.org index fef4816..0cd9f66 100644 --- a/.config/qtile/README.org +++ b/.config/qtile/README.org @@ -140,8 +140,8 @@ keys = [ desc='Restart Qtile' ), Key([mod, "shift"], "q", - lazy.shutdown(), - desc='Shutdown Qtile' + lazy.spawn("dm-logout"), + desc='Logout menu' ), Key(["control", "shift"], "e", lazy.spawn("emacsclient -c -a emacs"), diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 74187f0..f3a9225 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -49,8 +49,8 @@ keys = [ desc='Restart Qtile' ), Key([mod, "shift"], "q", - lazy.shutdown(), - desc='Shutdown Qtile' + lazy.spawn("dm-logout"), + desc='Logout menu' ), Key(["control", "shift"], "e", lazy.spawn("emacsclient -c -a emacs"), diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 0978323..8634675 100755 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -26,8 +26,12 @@ super + shift + Return dm-run # quit/restart bspwm -super + shift + {q,r} - bspc {quit,wm -r} +super + shift + q + dm-logout + +# quit/restart bspwm +super + shift + r + bspc wm -r # close and kill super + shift + c diff --git a/.config/xmonad/xmonad-with-polybar.org b/.config/xmonad/xmonad-with-polybar.org index a30ea2e..82d5908 100644 --- a/.config/xmonad/xmonad-with-polybar.org +++ b/.config/xmonad/xmonad-with-polybar.org @@ -645,8 +645,8 @@ myKeys c = subKeys "Xmonad Essentials" [ ("M-C-r", addName "Recompile XMonad" $ spawn "xmonad --recompile") , ("M-S-r", addName "Restart XMonad" $ spawn "xmonad --restart") - , ("M-S-q", addName "Quit XMonad" $ sequence_ [spawn (mySoundPlayer ++ shutdownSound), io exitSuccess]) - --, ("M-S-q", addName "Quit XMonad" $ spawn "dm-logout") + --, ("M-S-q", addName "Quit XMonad" $ sequence_ [spawn (mySoundPlayer ++ shutdownSound), io exitSuccess]) + , ("M-S-q", addName "Quit XMonad" $ spawn "dm-logout") , ("M-S-c", addName "Kill focused window" $ kill1) , ("M-S-a", addName "Kill all windows on WS" $ killAll) , ("M-S-", addName "Run prompt" $ sequence_ [spawn (mySoundPlayer ++ dmenuSound), spawn "~/.local/bin/dm-run"]) diff --git a/.config/xmonad/xmonad-with-xmobar.org b/.config/xmonad/xmonad-with-xmobar.org index a641446..47cdfef 100644 --- a/.config/xmonad/xmonad-with-xmobar.org +++ b/.config/xmonad/xmonad-with-xmobar.org @@ -657,8 +657,8 @@ myKeys c = subKeys "Xmonad Essentials" [ ("M-C-r", addName "Recompile XMonad" $ spawn "xmonad --recompile") , ("M-S-r", addName "Restart XMonad" $ spawn "xmonad --restart") - , ("M-S-q", addName "Quit XMonad" $ sequence_ [spawn (mySoundPlayer ++ shutdownSound), io exitSuccess]) - --, ("M-S-q", addName "Quit XMonad" $ spawn "dm-logout") + --, ("M-S-q", addName "Quit XMonad" $ sequence_ [spawn (mySoundPlayer ++ shutdownSound), io exitSuccess]) + , ("M-S-q", addName "Quit XMonad" $ spawn "dm-logout") , ("M-S-c", addName "Kill focused window" $ kill1) , ("M-S-a", addName "Kill all windows on WS" $ killAll) , ("M-S-", addName "Run prompt" $ sequence_ [spawn (mySoundPlayer ++ dmenuSound), spawn "~/.local/bin/dm-run"]) diff --git a/.config/xmonad/xmonad.hs b/.config/xmonad/xmonad.hs index 9d7f0b1..1913b2b 100644 --- a/.config/xmonad/xmonad.hs +++ b/.config/xmonad/xmonad.hs @@ -499,8 +499,8 @@ myKeys c = subKeys "Xmonad Essentials" [ ("M-C-r", addName "Recompile XMonad" $ spawn "xmonad --recompile") , ("M-S-r", addName "Restart XMonad" $ spawn "xmonad --restart") - , ("M-S-q", addName "Quit XMonad" $ sequence_ [spawn (mySoundPlayer ++ shutdownSound), io exitSuccess]) - --, ("M-S-q", addName "Quit XMonad" $ spawn "dm-logout") + --, ("M-S-q", addName "Quit XMonad" $ sequence_ [spawn (mySoundPlayer ++ shutdownSound), io exitSuccess]) + , ("M-S-q", addName "Quit XMonad" $ spawn "dm-logout") , ("M-S-c", addName "Kill focused window" $ kill1) , ("M-S-a", addName "Kill all windows on WS" $ killAll) , ("M-S-", addName "Run prompt" $ sequence_ [spawn (mySoundPlayer ++ dmenuSound), spawn "~/.local/bin/dm-run"])