|
|
@ -29,6 +29,8 @@ myStartupHook = do |
|
|
|
spawnOnce "setxkbmap -option ctrl:nocaps &" |
|
|
|
spawnOnce "setxkbmap -option ctrl:nocaps &" |
|
|
|
spawnOnce "xset -b &" |
|
|
|
spawnOnce "xset -b &" |
|
|
|
spawnOnce "nepalical &" |
|
|
|
spawnOnce "nepalical &" |
|
|
|
|
|
|
|
spawnOnce "export LC_CTYPE=en_US.UTF-8" |
|
|
|
|
|
|
|
spawnOnce "alias anki='anki --no-sandbox'" |
|
|
|
setWMName "LG3D" |
|
|
|
setWMName "LG3D" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -36,12 +38,13 @@ main :: IO () |
|
|
|
main = do |
|
|
|
main = do |
|
|
|
xmproc <- spawnPipe "xmobar /home/krrish/.config/xmobar/xmobarrc" |
|
|
|
xmproc <- spawnPipe "xmobar /home/krrish/.config/xmobar/xmobarrc" |
|
|
|
|
|
|
|
|
|
|
|
xmonad $ def |
|
|
|
-- xmonad $ def |
|
|
|
|
|
|
|
xmonad $ docks $ def |
|
|
|
{ manageHook = manageDocks <+> manageHook def |
|
|
|
{ manageHook = manageDocks <+> manageHook def |
|
|
|
, layoutHook = avoidStruts $ spacingRaw True (Border 0 4 4 4) True (Border 4 4 4 4) True $layoutHook def |
|
|
|
, layoutHook = avoidStruts $ spacingRaw True (Border 0 4 4 4) True (Border 4 4 4 4) True $layoutHook def |
|
|
|
, startupHook = myStartupHook |
|
|
|
, startupHook = myStartupHook |
|
|
|
, terminal = "st" |
|
|
|
, terminal = "st" |
|
|
|
, handleEventHook = handleEventHook def <+> docksEventHook |
|
|
|
, handleEventHook = handleEventHook def |
|
|
|
, logHook = dynamicLogWithPP xmobarPP |
|
|
|
, logHook = dynamicLogWithPP xmobarPP |
|
|
|
{ ppOutput = hPutStrLn xmproc |
|
|
|
{ ppOutput = hPutStrLn xmproc |
|
|
|
, ppTitle = xmobarColor "green" "" . shorten 50 |
|
|
|
, ppTitle = xmobarColor "green" "" . shorten 50 |
|
|
@ -66,7 +69,7 @@ main = do |
|
|
|
, ((mod4Mask .|. shiftMask, xK_u), spawn "st sudo pacman -Syu") |
|
|
|
, ((mod4Mask .|. shiftMask, xK_u), spawn "st sudo pacman -Syu") |
|
|
|
, ((mod4Mask .|. shiftMask, xK_e), spawn "st setxkbmap us") |
|
|
|
, ((mod4Mask .|. shiftMask, xK_e), spawn "st setxkbmap us") |
|
|
|
, ((mod4Mask .|. shiftMask, xK_v), spawn "st sudo protonvpn c -f") |
|
|
|
, ((mod4Mask .|. shiftMask, xK_v), spawn "st sudo protonvpn c -f") |
|
|
|
, ((mod4Mask .|. shiftMask, xK_i), spawn "notify-send 'Intellij Idea' 'Opening Intellij Idea'; /home/krrish/idea/bin/idea.sh") |
|
|
|
, ((mod4Mask .|. shiftMask, xK_i), spawn "notify-send 'Intellij Idea' 'Opening Intellij Idea'; /home/krrish/programs/idea/bin/idea.sh") |
|
|
|
, ((0, xK_Print), spawn "scrot -q 100 /home/krrish/pictures/%Y-%m-%d-%H:%M:%S.png") |
|
|
|
, ((0, xK_Print), spawn "scrot -q 100 /home/krrish/pictures/%Y-%m-%d-%H:%M:%S.png") |
|
|
|
, ((0, 0x1008FF11), spawn "pactl set-sink-volume @DEFAULT_SINK@ -5%") |
|
|
|
, ((0, 0x1008FF11), spawn "pactl set-sink-volume @DEFAULT_SINK@ -5%") |
|
|
|
, ((0, 0x1008FF13), spawn "pactl set-sink-volume @DEFAULT_SINK@ +5%") |
|
|
|
, ((0, 0x1008FF13), spawn "pactl set-sink-volume @DEFAULT_SINK@ +5%") |
|
|
@ -79,7 +82,6 @@ main = do |
|
|
|
|
|
|
|
|
|
|
|
, ((mod4Mask, xK_e), viewEmptyWorkspace) |
|
|
|
, ((mod4Mask, xK_e), viewEmptyWorkspace) |
|
|
|
, ((mod4Mask .|. shiftMask, xK_e), tagToEmptyWorkspace) |
|
|
|
, ((mod4Mask .|. shiftMask, xK_e), tagToEmptyWorkspace) |
|
|
|
, ((mod4Mask .|. shiftMask, xK_f), spawnSelected defaultGSConfig ["keepassxc", "brave", "pcmanfm"]) |
|
|
|
, ((mod4Mask .|. shiftMask, xK_f), spawnSelected def ["keepassxc", "brave", "pcmanfm"]) |
|
|
|
, ((mod4Mask .|. shiftMask, xK_g), goToSelected defaultGSConfig) |
|
|
|
|
|
|
|
, ((mod4Mask .|. shiftMask, xK_w), gotoMenu) |
|
|
|
, ((mod4Mask .|. shiftMask, xK_w), gotoMenu) |
|
|
|
] |
|
|
|
] |
|
|
|