所以我第一次安装了 xmobar,并在文档和一些 YouTube 视频的帮助下对它进行了一些修改。当我重新加载 xmonad wm 时,我得到了 xmobar 栏,但它卡在了更新中……我将提供配置文件。提前致谢!
Config
{ --APPERANCE
--FONTS
font = "xft=Ubuntu:weight=bold:pixelsize=12:antialias=true:hinting:true",
--COLORS
bgColor = "#282c34",
fgColor = "#ff6c6b",
--BAR POSITION
position = Top,
commands =
[ --Get kernel version
Run Com ".local/bin/kernel" [] "kernel" 3600,
--CPU Usage
Run Cpu ["-t", "<fn=2>\xf108</fn> cpu: (<total>%)", "-H", "50", "--high", "red"] 20,
--RAM Usage
Run Memory ["-t", "<fn=2>\xf233</fn> mem: <used>M (<usedratio>%)"] 20,
--Free Disk Space
Run DiskU [("/", "<fn=2>\xf0c7</fn> hdd: <free> free")] [] 60,
--Uptime
Run Uptime ["-t", "uptime: <days>d <hours>h"] 360,
--Battery
Run BatteryP ["BAT0"] ["-t", "<acstatus><watts> (<left>%)"] 360,
--Date & Time
Run Date "<fn=2>\xf017</fn> %b %d %Y - (%H:%M) " "date" 50,
--Weather
Run Weather "RJTT" ["--template", "<skyCondition> | <fc=#4682B4><tempC></fc>°C | <fc=#4682B4><rh></fc>% | <fc=#4682B4><pressure></fc>hPa"] 36000,
--Network Activity Monitor
Run DynNetwork
[ "--template",
"<dev>: <tx>kB/s|<rx>kB/s",
"--Low",
"1000", -- units: B/s
"--High",
"5000", -- units: B/s
"--low",
"darkgreen",
"--normal",
"darkorange",
"--high",
"darkred"
]
10,
-- Script that dynamically adjusts xmobar padding depending on number of trayer icons
Run Com ".config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20
]
}