Update XMonad configuration
This commit is contained in:
parent
8c0e77176d
commit
b08ebdac2f
56
.config/xmobar/xmobarrc_hdmi
Normal file
56
.config/xmobar/xmobarrc_hdmi
Normal file
@ -0,0 +1,56 @@
|
||||
Config { overrideRedirect = False
|
||||
, font = "Bitstream Vera Sans Mono Bold 9"
|
||||
, bgColor = "black"
|
||||
, fgColor = "#646464"
|
||||
, position = TopW L 95
|
||||
, border = BottomB
|
||||
, borderColor = "#646464"
|
||||
, allDesktops = True
|
||||
, pickBroadest = True
|
||||
, commands = [ Run Weather "LZIB"
|
||||
[ "--template", "<skyCondition> <tempC>°C"
|
||||
, "-L", "0"
|
||||
, "-H", "25"
|
||||
, "--low" , "lightblue"
|
||||
, "--normal" , "#f8f8f2"
|
||||
, "--high" , "red"
|
||||
] 9000
|
||||
, Run MultiCpu
|
||||
[ "--template" , "Cpu: <total0>%|<total1>%|<total2>%|<total3>%|<total4>%|<total5>%"
|
||||
, "--Low" , "25"
|
||||
, "--High" , "75"
|
||||
, "--low" , "darkgreen"
|
||||
, "--normal" , "darkorange"
|
||||
, "--high" , "darkred"
|
||||
] 10
|
||||
, Run CoreTemp
|
||||
[ "--template" , "Temp: <core0>°C|<core1>°C|<core2>°C|<core3>°C|<core4>°C|<core5>°C"
|
||||
, "--Low" , "60"
|
||||
, "--High" , "85"
|
||||
, "--low" , "darkgreen"
|
||||
, "--normal" , "darkorange"
|
||||
, "--high" , "darkred"
|
||||
] 50
|
||||
, Run Memory
|
||||
[ "--template" , "Mem: <usedratio>%"
|
||||
, "--Low" , "20"
|
||||
, "--High" , "80"
|
||||
, "--low" , "darkgreen"
|
||||
, "--normal" , "darkorange"
|
||||
, "--high" , "darkred"
|
||||
] 10
|
||||
, Run Kbd
|
||||
[ ("it" , "<fc=#00008B>IT</fc>")
|
||||
, ("us" , "<fc=#8B0000>US</fc>")
|
||||
, ("sk(qwerty)" , "<fc=#008B00>SK</fc>")
|
||||
]
|
||||
, Run Date "%a %Y-%m-%d <fc=#8be9fd>%H:%M</fc>" "date" 10
|
||||
, Run Uptime
|
||||
[ "--template" , "Uptime: <days>d <hours>h <minutes>m"
|
||||
] 600
|
||||
, Run XMonadLog
|
||||
]
|
||||
, sepChar = "%"
|
||||
, alignSep = "}{"
|
||||
, template = "%XMonadLog% | %uptime% }{ %multicpu% | %coretemp% | %memory% | %kbd% | %LZIB% | %date% "
|
||||
}
|
@ -8,7 +8,7 @@ Config { overrideRedirect = False
|
||||
, allDesktops = True
|
||||
, pickBroadest = True
|
||||
, commands = [ Run Weather "LZIB"
|
||||
[ "--template", "<weather> <tempC>°C"
|
||||
[ "--template", "<skyCondition> <tempC>°C"
|
||||
, "-L", "0"
|
||||
, "-H", "25"
|
||||
, "--low" , "lightblue"
|
@ -2,11 +2,14 @@ import XMonad
|
||||
|
||||
import XMonad.Hooks.DynamicLog
|
||||
import XMonad.Hooks.EwmhDesktops
|
||||
import XMonad.Hooks.InsertPosition
|
||||
import XMonad.Hooks.ManageHelpers
|
||||
import XMonad.Hooks.StatusBar
|
||||
import XMonad.Hooks.StatusBar.PP
|
||||
import XMonad.Layout.Grid
|
||||
import XMonad.Layout.Magnifier
|
||||
import XMonad.Layout.Renamed
|
||||
import XMonad.Layout.Spiral
|
||||
import XMonad.Layout.ThreeColumns
|
||||
import XMonad.Util.EZConfig
|
||||
import XMonad.Util.Loggers
|
||||
@ -22,8 +25,8 @@ main = xmonad
|
||||
myConfig = def
|
||||
{ modMask = mod4Mask
|
||||
, terminal = "kitty"
|
||||
, focusedBorderColor = "#000000"
|
||||
, normalBorderColor = "#ffffff"
|
||||
, focusedBorderColor = "#00b300"
|
||||
, normalBorderColor = "#000000"
|
||||
, layoutHook = myLayout
|
||||
, startupHook = myStartupHook
|
||||
, manageHook = myManageHook
|
||||
@ -32,9 +35,10 @@ myConfig = def
|
||||
[ ("M-S-l" , spawn "xscreensaver-command -lock" )
|
||||
, ("M-v" , spawn "vivaldi" )
|
||||
, ("M-<Print>" , unGrab *> spawn "gnome-screenshot -i" )
|
||||
, ("M-w" , spawn "passmenu -i" )
|
||||
]
|
||||
|
||||
myLayout = tiled ||| Mirror tiled ||| Full ||| threeCol
|
||||
myLayout = tiled ||| Mirror tiled ||| Full ||| threeCol ||| Grid ||| spiral(0.856)
|
||||
where
|
||||
threeCol
|
||||
= renamed [Replace "ThreeCol"]
|
||||
@ -45,8 +49,8 @@ myLayout = tiled ||| Mirror tiled ||| Full ||| threeCol
|
||||
ratio = 1/2
|
||||
delta = 3/100
|
||||
|
||||
xmobar1 = statusBarProp "xmobar -x 0 ~/.config/xmobar/xmobarrc" (pure myXmobarPP)
|
||||
xmobar2 = statusBarProp "xmobar -x 1 ~/.config/xmobar/xmobarrc" (pure myXmobarPP)
|
||||
xmobar1 = statusBarProp "xmobar -x 0 ~/.config/xmobar/xmobarrc_laptop" (pure myXmobarPP)
|
||||
xmobar2 = statusBarProp "xmobar -x 1 ~/.config/xmobar/xmobarrc_hdmi" (pure myXmobarPP)
|
||||
|
||||
myXmobarPP :: PP
|
||||
myXmobarPP = def
|
||||
@ -77,14 +81,23 @@ myXmobarPP = def
|
||||
myStartupHook :: X ()
|
||||
myStartupHook = do
|
||||
spawnOnce "xsetroot -cursor_name left_ptr"
|
||||
spawnOnce "mons -e left"
|
||||
spawnOnce "mons -e left && ~/.fehbg"
|
||||
spawnOnce "xscreensaver -no-splash"
|
||||
spawnOnce "redshift"
|
||||
spawnOnce "dunst"
|
||||
spawnOnce "~/.fehbg"
|
||||
spawnOnce "udiskie"
|
||||
spawnOnce "nm-applet"
|
||||
spawnOnce "discover-overlay"
|
||||
spawnOnce "trayer --edge top --align right --SetDockType true \
|
||||
\--SetPartialStrut true --expand true --width 5 \
|
||||
\--transparent true --tint 0x1f2022 --height 18 \
|
||||
\--monitor 0"
|
||||
|
||||
myManageHook :: ManageHook
|
||||
myManageHook = composeAll
|
||||
[ className =? "mpv" --> doFullFloat
|
||||
, isDialog --> doFloat
|
||||
[ insertPosition End Newer
|
||||
, className =? "mpv" --> doFullFloat
|
||||
, className =? "Xviewer" --> doFloat
|
||||
, className =? "steam_app_109600" --> doFloat
|
||||
, isDialog --> doFloat
|
||||
, isFullscreen --> doFullFloat
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user