diff options
author | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2021-11-29 22:29:11 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2021-11-29 22:29:11 +0530 |
commit | 388bc6ac4ce8910a9d0ca31fca4c405918d7e539 (patch) | |
tree | d64501c12dc852130edff4f5b5f0bb27d45aff8e /.config/XMonad/xmonad.hs | |
parent | ac4e97ef40fa725e15591ed26310b05818d57739 (diff) |
added confirm option for shutdown and restart
Diffstat (limited to '.config/XMonad/xmonad.hs')
-rw-r--r-- | .config/XMonad/xmonad.hs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/.config/XMonad/xmonad.hs b/.config/XMonad/xmonad.hs index 66d3bde..3b83b1b 100644 --- a/.config/XMonad/xmonad.hs +++ b/.config/XMonad/xmonad.hs @@ -95,8 +95,10 @@ networkingTS = myNetworkingTS a = TS.treeselectAction a networkingTS powerTS = - [ Node (TS.TSNode "Shutdown" "" (spawn "shutdown now")) [] - , Node (TS.TSNode "Restart" "" (spawn "reboot")) [] + [ Node (TS.TSNode "Shutdown" "" (return())) + [ Node (TS.TSNode "Confirm" "" (spawn "shutdown now")) [] ] + , Node (TS.TSNode "Restart" "" (return())) + [ Node (TS.TSNode "Confirm" "" (spawn "reboot")) [] ] ] myPowerTS a = TS.treeselectAction a powerTS @@ -300,7 +302,7 @@ main = do ) `additionalKeysP` [ ("M-c", spawn myColorPicker) -- Launchers - , ("M-u", myDevTS myTSConfig) + , ("M-S-w", myDevTS myTSConfig) , ("M-x", myXmonadTS myTSConfig) , ("M-e", myMediaTS myTSConfig) , ("M-S-e", myGamingTS myTSConfig) @@ -323,4 +325,4 @@ main = do -- other apps , ("M-S-b", spawn "dolphin") ] - -- used keys: u x e w o i p r t y q n b + -- used keys: x e w o i p r t y q n b |