aboutsummaryrefslogtreecommitdiff
path: root/.config/XMonad
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-10-29 16:30:28 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-10-29 16:30:28 +0530
commit00aca0696d5c8ec212842c811bc4a6338a942804 (patch)
treeb7180ea348d662a476524ceb5efd3aa09a82b0e1 /.config/XMonad
parentd6d036d34b395d45211668d3a54a57b32cac4cbe (diff)
added more useful keybinds
Diffstat (limited to '.config/XMonad')
-rw-r--r--.config/XMonad/lib/Defaults.hs4
-rw-r--r--.config/XMonad/lib/Keybindings.hs8
2 files changed, 8 insertions, 4 deletions
diff --git a/.config/XMonad/lib/Defaults.hs b/.config/XMonad/lib/Defaults.hs
index 5f855d0..c36cf6d 100644
--- a/.config/XMonad/lib/Defaults.hs
+++ b/.config/XMonad/lib/Defaults.hs
@@ -42,7 +42,6 @@ backlightUp = "brightnessctl s +5"
backlightDown = "brightnessctl s 5-"
wifiOn = "nmcli radio wifi on"
-wifiOff :: String
wifiOff = "nmcli radio wifi off"
screenshot = "flameshot screen"
@@ -62,6 +61,9 @@ myFileManager' = "lf"
myTextEditor = "doom run"
myTextEditor' = "nvim"
+myEmailClient = "thunderbird"
+myPasswordManager = "keepassxc"
+
-- workspaces
myExtraWorkspaces = [(xK_0, "十")]
myWorkspaces = ["一", "二", "三", "四", "五", "六", "七", "八", "九"] ++ map snd myExtraWorkspaces
diff --git a/.config/XMonad/lib/Keybindings.hs b/.config/XMonad/lib/Keybindings.hs
index ee91379..6e16414 100644
--- a/.config/XMonad/lib/Keybindings.hs
+++ b/.config/XMonad/lib/Keybindings.hs
@@ -191,6 +191,7 @@ myKeybindingsP = [
, ("M-b d", myScratchpad "arandr")
, ("M-b c", myScratchpad "calc")
, ("M-b b", myScratchpad "blueman")
+ , ("M-S-b", myScratchpad "blueman")
, ("M-b p", myScratchpad "pavucontrol")
, ("M-x", myScratchpad "pavucontrol")
, ("M-b m", myScratchpad "BPYTOP")
@@ -208,12 +209,11 @@ myKeybindingsP = [
, ("M-n v", spawn $ myBrowser ++ " https://vidhukant.xyz")
, ("M-n m", spawn $ myBrowser ++ " https://myanimelist.net/profile/0ZeroTsu")
-- other apps
- -- TODO: add scrcpy
, ("M-y e", spawn myTextEditor)
, ("M-d", spawn myTextEditor)
, ("M-S-d", spawn "firejail discord")
- , ("M-y S-e", spawn "thunderbird")
- , ("M-t", spawn "thunderbird")
+ , ("M-y S-e", spawn myEmailClient)
+ , ("M-t", spawn myEmailClient)
, ("M-y t", spawn myTorrentClient)
, ("M-S-t", spawn myTorrentClient)
, ("M-y S-t", spawn "torbrowser-launcher")
@@ -224,6 +224,8 @@ myKeybindingsP = [
, ("M-v", spawn "virt-manager")
, ("M-y b", spawn "brave")
, ("M-y p", spawn myFileManager)
+ , ("M-s", spawn myFileManager)
+ , ("M-z", spawn myPasswordManager)
, ("M-y S-p", spawn $ myTerminal' ++ " -e " ++ myFileManager')
-- XMonad
, ("M-q q", gridselectWindow myGridSelect >>= flip whenJust (\w -> killWindow w))