From 6c643e51e7f2d793610c4d6d8e6c5c80a2d0c5da Mon Sep 17 00:00:00 2001 From: sajenim Date: Tue, 13 Feb 2024 22:54:55 +0800 Subject: [PATCH] refactor --- pkgs/xmonad-config/src/xmonad.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/xmonad-config/src/xmonad.hs b/pkgs/xmonad-config/src/xmonad.hs index d3defb8..47c178a 100644 --- a/pkgs/xmonad-config/src/xmonad.hs +++ b/pkgs/xmonad-config/src/xmonad.hs @@ -31,12 +31,13 @@ myBorderWidth = 5 myNormalBorderColor = "#282828" myFocusedBorderColor = "#282828" myWorkspaces = ["code", "chat", "web", "games", "misc"] +myLauncher = "rofi -modi run,calc -show run" -- | Keybindings myKeys = -- launching and killing programs [ ((myModMask, xK_n ), spawn myTerminal ) -- %! Launch terminal - , ((myModMask, xK_e ), spawn "rofi -modi run,calc -show run" ) -- %! Launch rofi + , ((myModMask, xK_e ), spawn myLauncher ) -- %! Launch rofi , ((myModMask .|. controlMask, xK_w ), kill ) -- %! Close the focused window , ((myModMask .|. shiftMask, xK_q ), io exitSuccess ) -- %! Quit xmonad