update configs
This commit is contained in:
+10
-30
@@ -8,51 +8,31 @@
|
||||
-- trayer
|
||||
-- 'dtos-local-bin' (from dtos-core-repo)
|
||||
|
||||
Config { font = "Ubuntu Bold 9"
|
||||
Config { font = "Ubuntu Bold 10"
|
||||
, additionalFonts = [ "Mononoki 11"
|
||||
, "Font Awesome 6 Free Solid 12"
|
||||
, "Font Awesome 6 Brands 12"
|
||||
, "Font Awesome 6 Free Solid 11"
|
||||
, "Font Awesome 6 Brands 11"
|
||||
]
|
||||
, bgColor = "#1a1b26"
|
||||
, fgColor = "#a9b1d6"
|
||||
, position = TopSize L 100 24
|
||||
, position = TopSize L 100 28
|
||||
, lowerOnStart = True
|
||||
, hideOnStart = False
|
||||
, allDesktops = True
|
||||
, persistent = True
|
||||
, iconRoot = ".xmonad/xpm/" -- default: "."
|
||||
, commands = [
|
||||
-- Echos a "penguin" icon in front of the kernel output.
|
||||
Run Com "echo" ["<fn=3>\xf17c</fn>"] "penguin" 3600
|
||||
-- Get kernel version (script found in .local/bin)
|
||||
, Run Com ".local/bin/kernel" [] "kernel" 36000
|
||||
-- Cpu usage in percent
|
||||
, Run Cpu ["-t", "<fn=2>\xf108</fn> cpu: (<total>%)","-H","50","--high","red"] 20
|
||||
-- Ram used number and percent
|
||||
, Run Memory ["-t", "<fn=2>\xf233</fn> mem: <used>M (<usedratio>%)"] 20
|
||||
-- Disk space free
|
||||
, Run DiskU [("/", "<fn=2>\xf0c7</fn> hdd: <free> free")] [] 60
|
||||
-- Echos an "up arrow" icon in front of the uptime output.
|
||||
, Run Com "echo" ["<fn=2>\xf0aa</fn>"] "uparrow" 3600
|
||||
-- Uptime
|
||||
, Run Uptime ["-t", "uptime: <days>d <hours>h"] 360
|
||||
-- Echos a "bell" icon in front of the pacman updates.
|
||||
, Run Com "echo" ["<fn=2>\xf0f3</fn>"] "bell" 3600
|
||||
-- Check for pacman updates (script found in .local/bin)
|
||||
, Run Com ".local/bin/pacupdate" [] "pacupdate" 36000
|
||||
-- Echos a "battery" icon in front of the pacman updates.
|
||||
, Run Com "echo" ["<fn=2>\xf240</fn>"] "baticon" 3600
|
||||
-- Battery
|
||||
Run Cpu ["-t", " (<total>%)","-H","50","--high","red"] 20
|
||||
, Run Memory ["-t", " (<usedratio>%)"] 20
|
||||
, Run DiskU [("/home", " <free>")] [] 60
|
||||
, Run Uptime ["-t", " <days>d <hours>h"] 360
|
||||
, Run BatteryP ["BAT0"] ["-t", "<acstatus> (<left>%)"] 50
|
||||
-- Time and date
|
||||
, Run Date "<fn=2>\xf017</fn> %b %d %Y - (%H:%M) " "date" 50
|
||||
-- Script that dynamically adjusts xmobar padding depending on number of trayer icons.
|
||||
, Run Com "/home/krrish/.config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20
|
||||
-- Prints out the left side items such as workspaces, layout, etc.
|
||||
, Run Com "/home/krrish/.config/xmobar/trayer-padding-icon.sh" ["stalonetray"] "trayerpad" 20
|
||||
, Run UnsafeStdinReader
|
||||
]
|
||||
, sepChar = "%"
|
||||
, alignSep = "}{"
|
||||
, template = "%UnsafeStdinReader% }{ <box type=Bottom width=2 mb=2 color=#f7768e></box> <box type=Bottom width=2 mb=2 color=#9ece6a><fc=#9ece6a><action=`st -e htop`>%cpu%</action></fc></box> <box type=Bottom width=2 mb=2 color=#e0af68><fc=#e0af68><action=`st -e htop`>%memory%</action></fc></box> <box type=Bottom width=2 mb=2 color=#7aa2f7><fc=#7aa2f7>%disku%</fc></box> <box type=Bottom width=2 mb=2 color=#bb9af7><fc=#bb9af7>%uptime%</fc></box> <box type=Bottom width=2 mb=2 color=#73daca></box> <box type=Bottom width=2 mb=2 color=#f7768e><fc=#f7768e>charging: %battery%</fc></box> <box type=Bottom width=2 mb=2 color=#9ece6a><fc=#9ece6a><action=`emacsclient -c -a 'emacs' --eval '(doom/window-maximize-buffer(dt/year-calendar))'`>%date%</action></fc></box> %trayerpad%"
|
||||
, template = "%UnsafeStdinReader% }{ <fc=#9ece6a><action=`st -e htop`>%cpu%</action></fc> <fc=#e0af68><action=`st -e htop`>%memory%</action></fc> <fc=#7aa2f7>%disku%</fc> <fc=#bb9af7>%uptime%</fc> <fc=#f7768e> %battery%</fc> <fc=#9ece6a><action=`emacsclient -c -a 'emacs' --eval '(doom/window-maximize-buffer(dt/year-calendar))'`>%date%</action></fc> %trayerpad%"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user