[xmonad] updated config for new workflow
This commit is contained in:
parent
a4dc2143d6
commit
d13c07e1eb
1 changed files with 12 additions and 10 deletions
|
@ -44,8 +44,7 @@ import Colors.Teal
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
myTerminal = "kitty"
|
myTerminal = "alacritty"
|
||||||
myTerminalTmux = myTerminal ++ " -e tmux a"
|
|
||||||
myTextEditor = "nvim"
|
myTextEditor = "nvim"
|
||||||
myWebBrowser = "firefox"
|
myWebBrowser = "firefox"
|
||||||
myModMask = mod4Mask
|
myModMask = mod4Mask
|
||||||
|
@ -70,7 +69,7 @@ myWorkspaceIndices = zip myWorkspaces [1..]
|
||||||
|
|
||||||
myKeys :: [(String, X ())]
|
myKeys :: [(String, X ())]
|
||||||
myKeys =
|
myKeys =
|
||||||
[ ("M-x" ,spawn myTerminalTmux )
|
[ ("M-t" ,spawn myTerminal )
|
||||||
, ("M-p", spawn "rofi -show drun -show-icons")
|
, ("M-p", spawn "rofi -show drun -show-icons")
|
||||||
, ("M-S-p", spawn "rofi -show p -modi p:rofi-power-menu")
|
, ("M-S-p", spawn "rofi -show p -modi p:rofi-power-menu")
|
||||||
, ("M-s", spawn "selected=$(ls ~/scripts/|rofi -dmenu -p \"Run: \") && bash ~/.config/rofi/scripts/$selected")
|
, ("M-s", spawn "selected=$(ls ~/scripts/|rofi -dmenu -p \"Run: \") && bash ~/.config/rofi/scripts/$selected")
|
||||||
|
@ -83,14 +82,14 @@ myKeys =
|
||||||
, ("<XF86MonBrightnessDown>", spawn "lux -s 10%")
|
, ("<XF86MonBrightnessDown>", spawn "lux -s 10%")
|
||||||
, ("M-n", spawn $ myTerminal ++ " -e nmtui")
|
, ("M-n", spawn $ myTerminal ++ " -e nmtui")
|
||||||
, ("M-q", kill)
|
, ("M-q", kill)
|
||||||
, ("M-S-<Space>", sendMessage NextLayout)
|
, ("M-<Space>", sendMessage NextLayout)
|
||||||
, ("M-<Down>", windows W.focusDown)
|
, ("M-<Down>", windows W.focusDown)
|
||||||
, ("M-<Up>", windows W.focusUp )
|
, ("M-<Up>", windows W.focusUp )
|
||||||
, ("M-m", windows W.focusMaster )
|
, ("M-m", windows W.focusMaster )
|
||||||
, ("M-<Return>", windows W.swapMaster)
|
, ("M-<Return>", windows W.swapMaster)
|
||||||
, ("M-h", sendMessage Shrink)
|
, ("M-h", sendMessage Shrink)
|
||||||
, ("M-l", sendMessage Expand)
|
, ("M-l", sendMessage Expand)
|
||||||
, ("M-t", withFocused $ windows . W.sink)
|
, ("M-S-t", withFocused $ windows . W.sink)
|
||||||
, ("M-S-u", io (exitWith ExitSuccess))
|
, ("M-S-u", io (exitWith ExitSuccess))
|
||||||
, ("M-u", spawn "xmonad --recompile; xmonad --restart")
|
, ("M-u", spawn "xmonad --recompile; xmonad --restart")
|
||||||
]
|
]
|
||||||
|
@ -123,7 +122,7 @@ myManageHook = composeAll
|
||||||
, className =? "discord" --> doShift (myWorkspaces !! 4)
|
, className =? "discord" --> doShift (myWorkspaces !! 4)
|
||||||
, title =? "JetBrains Toolbox" --> doShift (myWorkspaces !! 3)
|
, title =? "JetBrains Toolbox" --> doShift (myWorkspaces !! 3)
|
||||||
, className =? "main" --> doFloat
|
, className =? "main" --> doFloat
|
||||||
, className =? "Mailspring" --> doShift (myWorkspaces !! 5)
|
, className =? "thunderbird" --> doShift (myWorkspaces !! 5)
|
||||||
, className =? "Xmessage" --> doFloat
|
, className =? "Xmessage" --> doFloat
|
||||||
, title =? "Steam - News" --> doFloat
|
, title =? "Steam - News" --> doFloat
|
||||||
, title =? "Friends List" --> doFloat
|
, title =? "Friends List" --> doFloat
|
||||||
|
@ -133,19 +132,21 @@ myManageHook = composeAll
|
||||||
myEventHook = ewmhDesktopsEventHook
|
myEventHook = ewmhDesktopsEventHook
|
||||||
|
|
||||||
myStartupHook = do
|
myStartupHook = do
|
||||||
|
spawnOnce "dunst &"
|
||||||
|
spawnOnce "kwalletd6"
|
||||||
spawnOnce "pasystray"
|
spawnOnce "pasystray"
|
||||||
spawnOnce "nitrogen --restore &"
|
spawnOnce "nitrogen --restore &"
|
||||||
spawnOnce "playerctld"
|
spawnOnce "playerctld"
|
||||||
|
spawnOnce "qpwgraph"
|
||||||
spawnOnce "picom &"
|
spawnOnce "picom &"
|
||||||
setWMName "LG3D"
|
setWMName "LG3D"
|
||||||
spawnOnce "nm-applet"
|
spawnOnce "nm-applet"
|
||||||
|
spawnOnce "$HOME/.local/bin/desktopres"
|
||||||
spawnOnce "xsetroot -cursor_name left_ptr"
|
spawnOnce "xsetroot -cursor_name left_ptr"
|
||||||
spawnOnce "killall trayer ;sleep 1 && trayer --monitor 0 --edge top --align right --margin 4 --widthtype request --padding 8 --iconspacing 12 --SetDockType true --SetPartialStrut true --expand true --transparent true --alpha 0 --tint 0x2B2E37 --height 30 --distance 5 &"
|
spawnOnce "killall trayer ;sleep 1 && trayer --monitor 0 --edge top --align right --margin 4 --widthtype request --padding 8 --iconspacing 12 --SetDockType true --SetPartialStrut true --expand true --transparent true --alpha 0 --tint 0x2B2E37 --height 30 --distance 5 &"
|
||||||
spawnOnce "slimbookbattery --minimize"
|
|
||||||
spawnOnce "slimbookintelcontroller"
|
|
||||||
spawnOnce "nextcloud"
|
spawnOnce "nextcloud"
|
||||||
spawnOnOnce "web" myWebBrowser
|
spawnOnOnce "web" myWebBrowser
|
||||||
spawnOnOnce "main" myTerminalTmux
|
spawnOnOnce "main" myTerminal
|
||||||
|
|
||||||
|
|
||||||
mySB = statusBarProp "/home/afonso/.local/bin/xmobar /home/afonso/.config/xmobar/xmobarrc" (pure myXmobarPP)
|
mySB = statusBarProp "/home/afonso/.local/bin/xmobar /home/afonso/.config/xmobar/xmobarrc" (pure myXmobarPP)
|
||||||
|
@ -163,6 +164,7 @@ myXmobarPP = def
|
||||||
where
|
where
|
||||||
wsIconFull = " <fn=2>\xf111</fn> "
|
wsIconFull = " <fn=2>\xf111</fn> "
|
||||||
|
|
||||||
|
myLayoutHook = (Tall 1 (3/100) (0.5)) ||| (Mirror $ Tall 1 (3/100) (0.5))
|
||||||
|
|
||||||
myConfig = def
|
myConfig = def
|
||||||
{
|
{
|
||||||
|
@ -174,7 +176,7 @@ myConfig = def
|
||||||
workspaces = myWorkspaces,
|
workspaces = myWorkspaces,
|
||||||
normalBorderColor = myNormalBorderColor,
|
normalBorderColor = myNormalBorderColor,
|
||||||
focusedBorderColor = myFocusedBorderColor,
|
focusedBorderColor = myFocusedBorderColor,
|
||||||
layoutHook = avoidStruts $ smartBorders . smartSpacingWithEdge 5 $ layoutHook def,
|
layoutHook = avoidStruts $ smartBorders $ myLayoutHook,
|
||||||
manageHook = manageSpawn <+> myManageHook <+> manageHook def,
|
manageHook = manageSpawn <+> myManageHook <+> manageHook def,
|
||||||
handleEventHook = myEventHook <+> fullscreenEventHook,
|
handleEventHook = myEventHook <+> fullscreenEventHook,
|
||||||
startupHook = myStartupHook
|
startupHook = myStartupHook
|
||||||
|
|
Loading…
Reference in a new issue