Update xmonad config
This commit is contained in:
parent
b8d6a5bf8f
commit
a49b6f32a0
@ -1,5 +1,5 @@
|
|||||||
Config { overrideRedirect = False
|
Config { overrideRedirect = False
|
||||||
, font = "Bitstream Vera Sans Mono Bold 9"
|
, font = "Jetbrains Mono Nerd Font Bold 9"
|
||||||
, bgColor = "black"
|
, bgColor = "black"
|
||||||
, fgColor = "#646464"
|
, fgColor = "#646464"
|
||||||
, position = TopW L 93
|
, position = TopW L 93
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Config { overrideRedirect = False
|
Config { overrideRedirect = False
|
||||||
, font = "Bitstream Vera Sans Mono Bold 9"
|
, font = "Jetbrains Mono Nerd Font Bold 9"
|
||||||
, bgColor = "black"
|
, bgColor = "black"
|
||||||
, fgColor = "#646464"
|
, fgColor = "#646464"
|
||||||
, position = Top
|
, position = Top
|
||||||
|
@ -26,6 +26,9 @@ import XMonad.Util.EZConfig
|
|||||||
import XMonad.Util.Loggers
|
import XMonad.Util.Loggers
|
||||||
import XMonad.Util.SpawnOnce
|
import XMonad.Util.SpawnOnce
|
||||||
|
|
||||||
|
-- Extra keys
|
||||||
|
import Graphics.X11.ExtraTypes.XF86
|
||||||
|
|
||||||
-- Main
|
-- Main
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = xmonad
|
main = xmonad
|
||||||
@ -47,15 +50,23 @@ myConfig = def
|
|||||||
}
|
}
|
||||||
`additionalKeysP`
|
`additionalKeysP`
|
||||||
[ ("M-S-l" , spawn "xscreensaver-command -lock" )
|
[ ("M-S-l" , spawn "xscreensaver-command -lock" )
|
||||||
, ("M-v" , spawn "vivaldi" )
|
|
||||||
, ("M-<Print>" , unGrab *> spawn "gnome-screenshot -i" )
|
, ("M-<Print>" , unGrab *> spawn "gnome-screenshot -i" )
|
||||||
, ("M-d" , spawn "dmenu_run" )
|
, ("M-d" , spawn "dmenu_run" )
|
||||||
, ("M-p" , spawn "passmenu -i" )
|
, ("M-p" , spawn "passmenu -i" )
|
||||||
, ("M-f" , sendMessage $ JumpToLayout "Tabbed" )
|
, ("M-f" , sendMessage $ JumpToLayout "Tabbed" )
|
||||||
]
|
]
|
||||||
|
`additionalKeys`
|
||||||
|
[ ((0, xF86XK_AudioMute) , spawn "pactl set-sink-mute $(pactl get-default-sink) toggle" )
|
||||||
|
, ((0, xF86XK_AudioLowerVolume) , spawn "pactl set-sink-volume $(pactl get-default-sink) -10%" )
|
||||||
|
, ((0, xF86XK_AudioRaiseVolume) , spawn "pactl set-sink-volume $(pactl get-default-sink) +10%" )
|
||||||
|
, ((0, xF86XK_Calculator) , spawn "galculator" )
|
||||||
|
, ((0, xF86XK_HomePage) , spawn "vivaldi" )
|
||||||
|
, ((0, xF86XK_Mail) , spawn "kitty mutt" )
|
||||||
|
, ((0, xF86XK_Tools) , spawn "kitty ncmpcpp" )
|
||||||
|
]
|
||||||
|
|
||||||
-- Workspaces
|
-- Workspaces
|
||||||
myWorkspaces = [ "1:term", "2:www", "3:games", "4:msg" ] ++ map show [5..9]
|
myWorkspaces = [ "1:term", "2:web", "3:games", "4:msg" ] ++ map show [5..9]
|
||||||
|
|
||||||
-- Layout
|
-- Layout
|
||||||
myLayout = tiled ||| Mirror tiled ||| myTabbed ||| threeCol ||| Grid ||| spiral(0.856)
|
myLayout = tiled ||| Mirror tiled ||| myTabbed ||| threeCol ||| Grid ||| spiral(0.856)
|
||||||
@ -125,14 +136,14 @@ myStartupHook = do
|
|||||||
-- Manage hook
|
-- Manage hook
|
||||||
myManageHook :: ManageHook
|
myManageHook :: ManageHook
|
||||||
myManageHook = composeAll
|
myManageHook = composeAll
|
||||||
[ insertPosition End Newer
|
[ className =? "kitty" --> doShift "1:term"
|
||||||
, className =? "kitty" --> doShift "1:term"
|
, className =? "Vivaldi-stable" --> doShift "2:web"
|
||||||
, className =? "Vivaldi-stable" --> doShift "2:www"
|
|
||||||
, className =? "steam" --> doShift "3:games"
|
, className =? "steam" --> doShift "3:games"
|
||||||
, className =? "discord" --> doShift "4:msg"
|
, className =? "discord" --> doShift "4:msg"
|
||||||
, className =? "Signal" --> doShift "4:msg"
|
, className =? "Signal" --> doShift "4:msg"
|
||||||
, className =? "mpv" --> doFullFloat
|
, className =? "mpv" --> doFullFloat
|
||||||
, className =? "Xviewer" --> doFloat
|
, className =? "Xviewer" --> doFloat
|
||||||
|
, className =? "Galculator" --> doFloat
|
||||||
, className =? "steam_app_109600" --> doFloat
|
, className =? "steam_app_109600" --> doFloat
|
||||||
, isDialog --> doFloat
|
, isDialog --> doFloat
|
||||||
, isFullscreen --> doFullFloat
|
, isFullscreen --> doFullFloat
|
||||||
|
Loading…
x
Reference in New Issue
Block a user