From a417515939c2b5a6e6ca1791fd8d4b99bf3590d7 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 12 Jan 2023 19:30:21 +0530 Subject: added alternatives to frequently used modal keybindings --- .config/XMonad/lib/Keybindings.hs | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to '.config/XMonad/lib/Keybindings.hs') diff --git a/.config/XMonad/lib/Keybindings.hs b/.config/XMonad/lib/Keybindings.hs index b839533..8b871ff 100644 --- a/.config/XMonad/lib/Keybindings.hs +++ b/.config/XMonad/lib/Keybindings.hs @@ -46,11 +46,12 @@ myKeybindings = [ , ((myModMask .|. shiftMask, xK_q), kill1) , ((myModShiftMask, xK_p), spawn myLauncher) - -- scratchpads + -- shutdown, restart, etc , ((myModMask, xK_u), myScratchpad "Term 0") - , ((myModMask, xK_i), myScratchpad "Term 1") - , ((myModMask, xK_o), myScratchpad "Term 2") - , ((myModMask, xK_p), myScratchpad "Term 3") + + -- scratchpads + , ((myModMask .|. myModMask', xK_Delete), spawn "shutdown -P now") + , ((myModShiftMask .|. myModMask', xK_Delete), spawn "shutdown -r now") -- volume keys , ((myModMask, xK_equal), spawn volUp) @@ -164,25 +165,34 @@ myKeybindingsP = [ , ("M-a S-s", spawn fullScreenshot) , ("M-a m", spawn volMute) , ("M-a p", spawn pausePlay) + , ("M-a d", myScratchpad "arandr") -- media , ("M-m w", myScratchpad "wallpaper") + , ("M-S-x", myScratchpad "wallpaper") , ("M-m o", spawn "obs") + , ("M-S-o", spawn "obs") , ("M-m S-o", spawn "osu") , ("M-m s", spawn "syncplay") , ("M-m g", spawn "gimp") , ("M-m k", spawn "kdenlive") + , ("M-g", spawn "gimp") + , ("M-s-g", spawn "kdenlive") , ("M-m l", spawn "lutris") , ("M-m v", spawn "vlc") , ("M-m m", spawn "minecraft-launcher") -- system apps/scratchpads , ("M-b t", spawn myTorrentClient) , ("M-b i", spawn myBrowser) + , ("M-s-i", spawn myBrowser) , ("M-b d", myScratchpad "arandr") , ("M-b c", myScratchpad "calc") , ("M-b b", myScratchpad "blueman") , ("M-b p", myScratchpad "pavucontrol") + , ("M-x", myScratchpad "pavucontrol") , ("M-b m", myScratchpad "BPYTOP") + , ("M-S-m", myScratchpad "BPYTOP") , ("M-b n", myScratchpad "nmtui") + , ("M-S-n", myScratchpad "nmtui") -- websites , ("M-n y", spawn $ myBrowser ++ " https://youtube.com") , ("M-n d", spawn $ myBrowser ++ " https://duckduckgo.com") @@ -192,20 +202,21 @@ myKeybindingsP = [ , ("M-n k", spawn $ myBrowser ++ " https://www.youtube.com/playlist?list=PL8lRJQHQWddvzCv02lClCfDfUo97wzX1A") , ("M-n c", spawn $ myBrowser ++ " https://www.youtube.com/playlist?list=PL8lRJQHQWdduy2V0DQQ4Lm0P572XJFVB9") , ("M-n v", spawn $ myBrowser ++ " https://vidhukant.xyz") - , ("M-n S-v", spawn $ myBrowser ++ " https://blog.vidhukant.xyz") , ("M-n m", spawn $ myBrowser ++ " https://myanimelist.net/profile/0ZeroTsu") - , ("M-n S-m", spawn $ myBrowser ++ " https://animixplay.to") -- other apps -- TODO: add scrcpy , ("M-y e", spawn myTextEditor) + , ("M-d", spawn myTextEditor) , ("M-y S-e", spawn "thunderbird") + , ("M-t", spawn "thunderbird") , ("M-y t", spawn myTorrentClient) + , ("M-S-t", spawn myTorrentClient) , ("M-y S-t", spawn "torbrowser-launcher") , ("M-y i", spawn myBrowser) , ("M-y S-i", spawn myPrivateBrowser) - , ("M-y d", spawn "discord") , ("M-y f", spawn "firefox") , ("M-y v", spawn "virt-manager") + , ("M-v", spawn "virt-manager") , ("M-y b", spawn "brave") , ("M-y p", spawn myFileManager) , ("M-y S-p", spawn $ myTerminal' ++ " -e " ++ myFileManager') -- cgit v1.2.3