mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
47 lines
1.8 KiB
Nix
47 lines
1.8 KiB
Nix
{
|
|
programs.xmobar = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
Config { overrideRedirect = False
|
|
, font = "Iosevka 13"
|
|
, bgColor = "#000000"
|
|
, fgColor = "#FFFFFF"
|
|
, position = BottomH 30
|
|
, commands = [ Run Date "%a %d %H:%M:%S" "date" 10
|
|
, Run Battery
|
|
[ "-t", "<left> (<timeleft>)"
|
|
, "-H", "70"
|
|
, "-L", "20"
|
|
, "-h", "green"
|
|
, "-n", "orange"
|
|
, "-l", "red"
|
|
, "--"
|
|
, "-P"
|
|
, "-A", "20"
|
|
, "-a", "notify-send -u critical \"Battery Low\" \"Please charge your battery\""
|
|
] 10
|
|
, Run XMonadLog
|
|
, Run
|
|
DynNetwork
|
|
[ "--template"
|
|
, "<dev>: ↑ <tx> kB/s ↓ <rx> kB/s"
|
|
, "--Low"
|
|
, "102400"
|
|
, "--High"
|
|
, "1024000"
|
|
, "--low"
|
|
, "green"
|
|
, "--normal"
|
|
, "orange"
|
|
, "--high"
|
|
, "red"
|
|
]
|
|
10
|
|
]
|
|
, sepChar = "%"
|
|
, alignSep = "}{"
|
|
, template = " %XMonadLog% }{ %dynnetwork% | %battery% | %date% "
|
|
}
|
|
'';
|
|
};
|
|
}
|