diff options
Diffstat (limited to 'modules/home-manager/waybar.nix')
| -rw-r--r-- | modules/home-manager/waybar.nix | 52 |
1 files changed, 29 insertions, 23 deletions
diff --git a/modules/home-manager/waybar.nix b/modules/home-manager/waybar.nix index 83161ce..c35bc75 100644 --- a/modules/home-manager/waybar.nix +++ b/modules/home-manager/waybar.nix @@ -10,12 +10,19 @@ height = 40; modules-left = [ "hyprland/workspaces" ]; modules-center = [ "clock" ]; - modules-right = [ "pulseaudio" "bluetooth" "network" "backlight/slider" "battery" "cpu" "temperature" "memory" "keyboard_state" "tray" ]; + modules-right = [ "idle_inhibitor" "pulseaudio" "bluetooth" "network" "backlight/slider" "battery" "cpu" "temperature" "memory" "keyboard_state" "tray" ]; "tray" = { icon-size = 21; spacing = 10; }; + "idle_inhibitor" = { + format = "{icon}"; + format-icons = { + activated = ""; + deactivated = ""; + }; + }; "pulseaudio" = { # // "scroll-step": 1, // %, can be a float format = "{volume}% {icon} {format_source}"; @@ -24,7 +31,7 @@ format-muted = " {format_source}"; format-source = "{volume}% "; format-source-muted = ""; - format-icons = { + "format-icons" = { headphone = ""; hands-free = ""; headset = ""; @@ -71,26 +78,26 @@ # device = "intel_backlight"; }; "clock" = { - format = "{:%H:%M} "; - format-alt = "{:%A, %B %d, %Y (%R)} "; - # timezone = config.time.timeZone; - timezone = "US/Mountain"; - tooltip-format = "<tt><small>{calendar}</small></tt>"; - "calendar" = { - mode = "year"; - mode-mon-col = 3; - weeks-pos = "right"; - on-scroll = 1; - on-right-click = "mode"; - "format" = { - months = "<span color='#ffead3'><b>{}</b></span>"; - days = "<span color='#ecc6d9'><b>{}</b></span>"; - weeks = "<span color='#99ffdd'><b>W{}</b></span>"; - weekdays = "<span color='#ffcc66'><b>{}</b></span>"; - today = "<span color='#ff6699'><b><u>{}</u></b></span>"; + format = "{:%H:%M} "; + format-alt = "{:%A, %B %d, %Y (%R)} "; + # timezone = config.time.timeZone; + timezone = "US/Mountain"; + tooltip-format = "<tt><small>{calendar}</small></tt>"; + "calendar" = { + mode = "year"; + mode-mon-col = 3; + weeks-pos = "right"; + on-scroll = 1; + on-right-click = "mode"; + "format" = { + months = "<span color='#ffead3'><b>{}</b></span>"; + days = "<span color='#ecc6d9'><b>{}</b></span>"; + weeks = "<span color='#99ffdd'><b>W{}</b></span>"; + weekdays = "<span color='#ffcc66'><b>{}</b></span>"; + today = "<span color='#ff6699'><b><u>{}</u></b></span>"; + }; }; }; - }; "battery" = { interval = 60; states = { @@ -101,7 +108,7 @@ format-icons = [ "" "" "" "" "" ]; max-length = 25; }; - cpu = { + "cpu" = { format = "{usage}% "; tooltip = false; }; @@ -125,6 +132,5 @@ }; }; }; - }; - + }; } |
