Updated waybar with hyprpicker widget
This commit is contained in:
@@ -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 =
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
sqlitebrowser
|
sqlitebrowser
|
||||||
drawio
|
drawio
|
||||||
check-capslock
|
check-capslock
|
||||||
|
wl-clipboard-rs
|
||||||
|
|
||||||
# Libre Office
|
# Libre Office
|
||||||
libreoffice-qt
|
libreoffice-qt
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 = [
|
||||||
""
|
""
|
||||||
""
|
""
|
||||||
|
|||||||
7
modules/home/waybar/modules/hyprpicker.nix
Normal file
7
modules/home/waybar/modules/hyprpicker.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
format = "";
|
||||||
|
on-click = "hyprpicker | tr -d '\\n' | wl-copy";
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user