Updated waybar with hyprpicker widget

This commit is contained in:
2025-12-21 22:30:55 -05:00
parent 71d2a9c177
commit 35fd66ce80
5 changed files with 23 additions and 11 deletions

View File

@@ -7,6 +7,7 @@
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
hyprpolkitagent hyprpolkitagent
hyprpicker
]; ];
# xdg.configFile."uwsm/env".source = # xdg.configFile."uwsm/env".source =

View File

@@ -10,6 +10,7 @@
sqlitebrowser sqlitebrowser
drawio drawio
check-capslock check-capslock
wl-clipboard-rs
# Libre Office # Libre Office
libreoffice-qt libreoffice-qt

View File

@@ -1,13 +1,6 @@
{ {
... ...
}: }:
let
separator_blank = {
format = "";
interval = "once";
tooltip = false;
};
in
{ {
programs.waybar = { programs.waybar = {
enable = true; enable = true;
@@ -20,7 +13,7 @@ in
margin-right = 10; margin-right = 10;
margin-top = 5; margin-top = 5;
fixed-center = true; fixed-center = true;
reload_style_on_change = true; reload_style_on_change = false;
"hyprland/workspaces" = import ./modules/hyprland-workspaces.nix { }; "hyprland/workspaces" = import ./modules/hyprland-workspaces.nix { };
"custom/menu" = import ./modules/menu.nix { }; "custom/menu" = import ./modules/menu.nix { };
@@ -38,12 +31,19 @@ in
"battery" = import ./modules/battery.nix { full-at = 80; }; # Change this to come from the TLP setting "battery" = import ./modules/battery.nix { full-at = 80; }; # Change this to come from the TLP setting
"clock" = import ./modules/clock.nix { }; "clock" = import ./modules/clock.nix { };
"custom/power" = import ./modules/power.nix { }; "custom/power" = import ./modules/power.nix { };
"custom/separator#blank" = separator_blank; "custom/hyprpicker" = import ./modules/hyprpicker.nix { };
"custom/separator#blank" = {
format = "";
interval = "once";
tooltip = false;
};
modules-left = [ modules-left = [
"custom/menu" "custom/menu"
"custom/separator#blank" "custom/separator#blank"
"clock" "clock"
"custom/separator#blank"
"custom/hyprpicker"
]; ];
modules-center = [ modules-center = [
@@ -57,6 +57,8 @@ in
"custom/separator#blank" "custom/separator#blank"
"wireplumber" "wireplumber"
"custom/separator#blank" "custom/separator#blank"
"battery"
"custom/separator#blank"
"custom/power" "custom/power"
]; ];
@@ -71,7 +73,6 @@ in
}; };
} }
]; ];
# style = ./style.css;
style = '' style = ''
@define-color base00 #192435; /* Darkest background (night sky / deep shadows) */ @define-color base00 #192435; /* Darkest background (night sky / deep shadows) */
@define-color base01 #243449; /* Slightly lighter background */ @define-color base01 #243449; /* Slightly lighter background */
@@ -131,7 +132,9 @@ in
} }
#wireplumber, #wireplumber,
#battery,
#custom-power, #custom-power,
#custom-hyprpicker,
#clock { #clock {
color: @base05; color: @base05;
} }

View File

@@ -13,7 +13,7 @@
format = "{icon} {capacity}%"; format = "{icon} {capacity}%";
format-charging = " {capacity}%"; format-charging = " {capacity}%";
format-plugged = "󱘖 {capacity}%"; format-plugged = "󱘖 {capacity}%";
format-full = "{icon} Full"; format-full = "{icon} {capacity}%";
format-icons = [ format-icons = [
"󰂎" "󰂎"
"󰁺" "󰁺"

View File

@@ -0,0 +1,7 @@
{
...
}:
{
format = "󰏘";
on-click = "hyprpicker | tr -d '\\n' | wl-copy";
}