dotfiles/.config/xmobar/xmobarrc0

73 lines
2.8 KiB
Text
Raw Normal View History

2022-10-31 21:00:11 +00:00
-- Xmobar (http://projects.haskell.org/xmobar/)
-- This is the default xmobar configuration for DTOS.
-- This config is packaged in the DTOS repo as dtos-xmobar
-- Dependencies: otf-font-awesome ttf-mononoki ttf-ubuntu-font-family trayer
-- Also depends on scripts from dtos-local-bin from the dtos-core-repo.
Config {font = "xft:Ubuntu:weight=bold:pixelsize=14:antialias=true:hinting=true"
, additionalFonts =
[ "xft:Font Awesome 6 Free Solid:pixelsize=14"
2022-11-01 01:13:27 +00:00
, "xft:Font Awesome 6 Free Solid:pixelsize=13:bold"
, "xft:FiraCode Nerd Font Mono:pixelsize=21"
, "xft:FiraCode Nerd Font Mono:pixelsize=14"
, "xft:Font Awesome 6 Free Solid:pixelsize=21"
2022-10-31 21:00:11 +00:00
]
, bgColor = "#2B2E37"
, fgColor = "#929AAD"
-- Position TopSize and BottomSize take 3 arguments:
-- an alignment parameter (L/R/C) for Left, Right or Center.
-- an integer for the percentage width, so 100 would be 100%.
-- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels.
-- NOTE: The height should be the same as the trayer (system tray) height.
, position = TopSize L 100 40
, lowerOnStart = True
, hideOnStart = False
, allDesktops = True
, persistent = False
, iconRoot = "/home/afonso/.config/xmobar/xpm/" -- default: "."
, commands = [
Run UnsafeXPropertyLog "_XMONAD_LOG_0"
, Run Date "%a, %d %b <fn=1></fn> %H:%M:%S" "date" 10
, Run Memory ["-t","Mem: <fc=#AAC0F0><usedratio></fc>%"] 10
, Run Com "/home/afonso/.config/xmobar/scripts/cpu_temp.sh" [] "cpu" 10
, Run Com "/home/afonso/.config/xmobar/scripts/gpu_util.sh" [] "gpu" 10
, Run Com "/home/afonso/.config/xmobar/scripts/volume.sh" [] "volume" 10
, Run Com "/home/afonso/.config/xmobar/scripts/bluetooth.sh" [] "bluetooth" 10
, Run Com "/home/afonso/.config/xmobar/scripts/network.sh" [] "network" 10
2022-11-01 00:48:17 +00:00
, Run Com "/home/afonso/.config/xmobar/scripts/battery.sh" [] "battery" 20
2022-10-31 21:00:11 +00:00
, Run Com "/home/afonso/.config/xmobar/scripts/trayer-padding-icon.sh" [] "trayerpad" 20
]
, sepChar = "%"
, alignSep = "}{"
, template = " <icon=logo.xpm/> \
\ \
\%_XMONAD_LOG_0%\
\}\
\%date%\
\{\
\ \
\%memory%\
\ \
\|\
\ \
\%cpu%\
\ \
\|\
\ \
\%gpu%\
\ \
\|\
\ \
2022-11-01 01:13:27 +00:00
\ \
2022-10-31 21:00:11 +00:00
\%network%\
\ \
\%bluetooth%\
\ \
\%volume%\
\ \
2022-11-01 00:48:17 +00:00
\%battery%\
\ \
2022-10-31 21:00:11 +00:00
\|\
\%trayerpad%"
}