commit 2e2a4e6e1c2f28b424c88131721d0b10e29ec4a9
parent bfdbcf3d6a0b3535ed3b80c77799f2e9966f0358
Author: Hannah Izzie Gesser <hannah@totient.eu>
Date: Wed, 12 Nov 2025 09:37:11 +0100
parent bfdbcf3d6a0b3535ed3b80c77799f2e9966f0358
Author: Hannah Izzie Gesser <hannah@totient.eu>
Date: Wed, 12 Nov 2025 09:37:11 +0100
Update style
2 files changed, 112 insertions(+), 105 deletions(-)
M
|
117
+++++++++++++++++++++++++++++++++++++------------------------------------------
M
|
100
+++++++++++++++++++++++++++++++++++++++++++++----------------------------------
diff --git a/config/home/void/programs/waybar.nix b/config/home/void/programs/waybar.nix @@ -55,24 +55,30 @@ idle_inhibitor = { format = "{icon}"; format-icons = { - activated = ""; - deactivated = ""; + activated = ""; + deactivated = ""; }; }; keyboard-state = { capslock = true; format = "{name} {icon} "; format-icons = { - locked = " "; - unlocked = ""; + locked = ""; + unlocked = ""; }; }; network = { interval = 5; - format-wifi = " {essid} ({signalStrength}%)"; - format-ethernet = " {ifname}"; - format-disconnected = "No connection"; - format-alt = " {ipaddr}/{cidr}"; + format-wifi = "{icon} {essid} ({signalStrength}%)"; + format-ethernet = " {ifname}"; + format-disconnected = " No connection"; + format-alt = " {ipaddr}/{cidr}"; + format-icons = [ + "" + "" + "" + "" + ]; tooltip = false; }; "sway/mode" = { @@ -86,21 +92,21 @@ reverse-scrolling = 1; format = "{volume}% {icon} {format_source}"; format-bluetooth = "{volume}% {icon} {format_source}"; - format-bluetooth-muted = " {icon} {format_source}"; - format-muted = "婢 {format_source}"; + format-bluetooth-muted = " {icon} {format_source}"; + format-muted = " {format_source}"; format-source = "{volume}% "; format-source-muted = ""; format-icons = { - headphone = ""; + headphone = ""; hands-free = ""; - headset = ""; - phone = ""; - portable = ""; - car = ""; + headset = ""; + phone = ""; + portable = ""; + car = ""; default = [ - "奄" - "奔" - "墳" + "" + "" + "" ]; }; on-click = "${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_SINK@ toggle"; @@ -108,13 +114,13 @@ min-length = 13; }; "cpu" = { - format = "{usage}% "; - format-alt = "{load} "; + format = "{usage}% "; + format-alt = "{load} "; interval = 3; tooltip = false; }; "memory" = { - format = "{}% "; + format = "{}% "; interval = 3; tooltip = false; }; @@ -135,13 +141,13 @@ device = "intel_backlight"; format = "{percent}% {icon}"; format-icons = [ - "" - "" - "" - "" - "" - "" - "" + "" + "" + "" + "" + "" + "" + "" ]; min-length = 7; }; @@ -151,51 +157,38 @@ critical = 20; }; format = "{capacity}% {icon}"; - format-charging = "{capacity}% "; + format-charging = "{capacity}% "; format-plugged = "{capacity}% "; format-alt = "{time} {icon}"; format-icons = [ - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" ]; full-at = 80; - on-update = pkgs.writeShellScript "check-battery" '' - #!/usr/bin/env sh - - PATH=$PATH:${pkgs.coreutils-full}/bin:${pkgs.libnotify}/bin - - bat=/sys/class/power_supply/BAT1 - CRIT=''${1:-15} - - FILE=~/.config/waybar/scripts/notified - - stat=$(cat $bat/status) - perc=$(cat $bat/capacity) - - if [[ $perc -le $CRIT ]] && [[ $stat == "Discharging" ]]; then - if [[ ! -f "$FILE" ]]; then - notify-send --urgency=critical --icon=dialog-warning "Battery Low" "Current charge: $perc%" - touch $FILE - fi - elif [[ -f "$FILE" ]]; then - rm $FILE - fi - ''; }; tray = { icon-size = 16; spacing = 0; }; + power-profiles-daemon = { + format = "{icon}"; + format-icons = { + default = "D"; + performance = ""; + balanced = ""; + power-saver = ""; + }; + }; "custom/power" = { - format = "⏻"; + format = ""; tooltip = false; menu = "on-click"; menu-file = "$HOME/.config/waybar/power_menu.xml";
diff --git a/resources/void/programs/waybar/style.css b/resources/void/programs/waybar/style.css @@ -15,17 +15,18 @@ window#waybar.hidden { margin-right: 8px; border-radius: 10px; transition: none; - background: #383c4a; + color: @base05; + background: @base02; } #workspaces button { transition: none; - color: #7c818c; + color: @base04; background: transparent; padding: 0px; font-size: 18px; } #workspaces button.persistent { - color: #7c818c; + color: @base04; font-size: 12px; } /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ @@ -34,11 +35,11 @@ window#waybar.hidden { box-shadow: inherit; text-shadow: inherit; border-radius: inherit; - color: #383c4a; + color: @base02; background: #7c818c; } #workspaces button.focused { - color: white; + color: @base05; } #idle_inhibitor { margin-right: 8px; @@ -46,12 +47,12 @@ window#waybar.hidden { padding-right: 16px; border-radius: 10px; transition: none; - color: #ffffff; - background: #383c4a; + color: @base05; + background: @base02; } #idle_inhibitor.activated { - color: #383c4a; - background: #ffffff; + color: @base00; + background: @base0E; } #keyboard-state { margin-right: 8px; @@ -59,16 +60,20 @@ window#waybar.hidden { padding-right: 8px; border-radius: 10px 10px 10px 10px; transition: none; - color: #ffffff; - background: #383c4a; + color: @base05; + background: @base02; +} +#keyboard-state label.locked { + color: @base00; + background: @base0D; } #mode { padding-left: 16px; padding-right: 16px; border-radius: 10px; transition: none; - color: #ffffff; - background: #383c4a; + color: @base05; + background: @base02; } #network { margin-right: 8px; @@ -76,16 +81,16 @@ window#waybar.hidden { padding-right: 16px; border-radius: 10px; transition: none; - color: #ffffff; - background: #383c4a; + color: @base05; + background: @base02; } #clock { padding-left: 16px; padding-right: 16px; border-radius: 10px 10px 10px 10px; transition: none; - color: #ffffff; - background: #383c4a; + color: @base05; + background: @base02; } #wireplumber { margin-right: 8px; @@ -93,12 +98,12 @@ window#waybar.hidden { padding-right: 16px; border-radius: 10px; transition: none; - color: #ffffff; - background: #383c4a; + color: @base05; + background: @base02; } #wireplumber.muted { - background-color: #90b1b1; - color: #2a5c45; + background-color: @base03; + color: @base08; } #cpu { margin-right: 8px; @@ -106,8 +111,8 @@ window#waybar.hidden { padding-right: 16px; border-radius: 10px; transition: none; - color: #ffffff; - background: #383c4a; + color: @base05; + background: @base02; } #memory { margin-right: 8px; @@ -115,8 +120,8 @@ window#waybar.hidden { padding-right: 16px; border-radius: 10px; transition: none; - color: #ffffff; - background: #383c4a; + color: @base05; + background: @base02; } #temperature { margin-right: 8px; @@ -124,11 +129,11 @@ window#waybar.hidden { padding-right: 16px; border-radius: 10px; transition: none; - color: #ffffff; - background: #383c4a; + color: @base05; + background: @base02; } #temperature.critical { - background-color: #eb4d4b; + background-color: @base08; } #backlight { margin-right: 8px; @@ -136,8 +141,8 @@ window#waybar.hidden { padding-right: 16px; border-radius: 10px; transition: none; - color: #ffffff; - background: #383c4a; + color: @base05; + background: @base02; } #battery { margin-right: 8px; @@ -145,20 +150,20 @@ window#waybar.hidden { padding-right: 16px; border-radius: 10px; transition: none; - color: #ffffff; - background: #383c4a; + color: @base05; + background: @base02; } #battery.charging { - color: #ffffff; - background-color: #26a65b; + color: @base05; + background-color: @base0B; } #battery.warning:not(.charging) { - background-color: #ffbe61; - color: black; + background-color: @base09; + color: @base00; } #battery.critical:not(.charging) { - background-color: #f53c3c; - color: #ffffff; + background-color: @base08; + color: @base00; animation-name: blink; animation-duration: 0.5s; animation-timing-function: linear; @@ -171,20 +176,29 @@ window#waybar.hidden { padding-right: 16px; border-radius: 10px; transition: none; - color: #ffffff; - background: #383c4a; + color: @base05; + background: @base02; +} +#power-profiles-daemon { + margin-right: 8px; + padding-left: 16px; + padding-right: 16px; + border-radius: 10px; + transition: none; + color: @base05; + background: @base02; } #custom-power { padding-left: 16px; padding-right: 16px; border-radius: 10px; transition: none; - color: #ffffff; - background: #383c4a; + color: @base05; + background: @base02; } @keyframes blink { to { - background-color: #ffffff; + background-color: @base05; color: #000000; } }