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

@@ -29,13 +29,14 @@ module-margin-right = 0
tray-position = right
tray-detached = false
background = ${colors.background}
foreground = ${colors.foreground}
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"
background = ${colors.background}
foreground = ${colors.foreground}
; noto -> text font
; jetbrains -> icons

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"

View File

@@ -14,7 +14,7 @@ if git --git-dir /home/synchronous/nix-cfg/.git diff-index --quiet HEAD; then
exit 0
fi
/run/current-system/sw/bin/nix flake check /home/synchronous/nix-cfg/ || { echo "Flake check failed. Exiting."; exit 1; }
# /run/current-system/sw/bin/nix flake check /home/synchronous/nix-cfg/ || { echo "Flake check failed. Exiting."; exit 1; }
# Autoformat your nix files
alejandra . &>/dev/null \

View File