24 current 2025-04-28 22:10:57 25.05.20250424.f771eb4 6.12.24 *

This commit is contained in:
2025-04-28 22:11:11 -04:00
parent 7d51a56a7a
commit f1da08b74b
6 changed files with 51 additions and 13 deletions

View File

@@ -37,6 +37,39 @@
# ${ip} route | ${grep} default | ${awk} '{print $5}' > $out
# '';
res = builtins.getEnv "RES";
hd = ''
[bar/mybar]
height = 20
font-0 = "NotoSans-Regular:size=11;2.5"
font-1 = "JetBrainsMono Nerd Font:style=Regular:size=11;2.5"
font-2 = "Noto Sans Symbols:size=11;1"
'';
fhd = ''
[bar/mybar]
height = 20
font-0 = "NotoSans-Regular:size=11;2.5"
font-1 = "JetBrainsMono Nerd Font:style=Regular:size=11;2.5"
font-2 = "Noto Sans Symbols:size=11;1"
'';
qhd = ''
[bar/mybar]
height = 25
font-0 = "NotoSans-Regular:size=11;2.5"
font-1 = "JetBrainsMono Nerd Font:style=Regular:size=11;2.5"
font-2 = "Noto Sans Symbols:size=13;1"
'';
mon =
if res == "1366x768"
then hd
else if res == "2560x1440"
then qhd
else fhd;
internets = ''
[module/network]
type = internal/network
@@ -61,7 +94,7 @@ in {
enable = true;
package = mypolybar;
config = ./config.ini;
extraConfig = bctl + internets;
extraConfig = bctl + internets + mon;
# my savior: https://www.reddit.com/r/NixOS/comments/v8ikwq/polybar_doesnt_start_at_launch/
script = ''
# echo "none"