aboutsummaryrefslogtreecommitdiff
path: root/modules/home/niri/chernobyl/waybar.nix
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-02-03 09:31:47 +0100
committerNatasha Moongrave <natasha@256phi.eu>2026-02-03 09:31:47 +0100
commit3dadeaa5a24edb78a65e47b8e373d7e0af220886 (patch)
tree25b9e404364cecf3dc204aa8b058bc0e8d361d51 /modules/home/niri/chernobyl/waybar.nix
parent996bf6efefe44f0bbe023b5d9646f9d6466a16ed (diff)
changed something
Diffstat (limited to 'modules/home/niri/chernobyl/waybar.nix')
-rw-r--r--modules/home/niri/chernobyl/waybar.nix183
1 files changed, 3 insertions, 180 deletions
diff --git a/modules/home/niri/chernobyl/waybar.nix b/modules/home/niri/chernobyl/waybar.nix
index cd3bedd..d7fa53c 100644
--- a/modules/home/niri/chernobyl/waybar.nix
+++ b/modules/home/niri/chernobyl/waybar.nix
@@ -3,185 +3,8 @@
{
programs.waybar = {
enable = true;
- style = ''
- * {
- border: none;
- border-radius: 0px;
- font-family: Fira Code;
- font-size: 12pt;
- min-height: 0;
- }
-
- window#waybar {
- background-color: #1c182d;
- color: #d0b6fd;
- border-bottom: 3px solid #b12cbf;
- }
-
- window#waybar.hidden {
- opacity: 0.2;
- }
-
- #workspaces button {
- padding: 0px 8px;
- color: #d0b6fd;
- background-color: #2b2135;
- border: 2px solid transparent;
- transition: all 0.3s ease;
- }
-
- #workspaces button:hover {
- background-color: #3d3547;
- border-bottom: 2px solid #b12cbf;
- }
-
- #workspaces button.active {
- background-color: #b12cbf;
- color: #1c182d;
- border-bottom: 2px solid #d0b6fd;
- }
-
- #workspaces button.urgent {
- background-color: #fc4649;
- color: #1c182d;
- }
-
- #clock,
- #cpu,
- #memory,
- #battery,
- #backlight,
- #pulseaudio,
- #network {
- padding: 0px 10px;
- margin: 0px 5px;
- color: #d0b6fd;
- background-color: #2b2135;
- border-left: 2px solid #b12cbf;
- }
-
- #clock {
- border-left: none;
- }
-
- #battery.charging {
- color: #c4e881;
- }
-
- #battery.warning {
- color: #AC82E9;
- }
-
- #battery.critical {
- background-color: #fc4649;
- color: #1c182d;
- }
-
- #backlight {
- color: #f3fc7b;
- }
-
- #pulseaudio {
- color: #7b91fc;
- }
-
- #network {
- color: #8F56E1;
- }
-
- #cpu {
- color: #92fcfa;
- }
-
- #memory {
- color: #c4e881;
- }
- '';
- settings = [
- {
- "height" = 30;
- "layer" = "top";
- "position" = "top";
- "modules-left" = [ "hyprland/workspaces" ];
- "modules-center" = [ "clock" ];
- "modules-right" = [ "cpu" "memory" "battery" "backlight" "pulseaudio" "network" ];
-
- "hyprland/workspaces" = {
- "format" = "{name}";
- "on-click" = "activate";
- "all-outputs" = true;
- };
-
- "clock" = {
- "format" = "{:%H:%M}";
- "interval" = 60;
- "tooltip-format" = "{:%a, %b %d, %Y}";
- };
-
- "cpu" = {
- "format" = "󰻠 {usage}%";
- "interval" = 5;
- "on-click" = "${pkgs.kitty}/bin/kitty --hold top";
- };
-
- "memory" = {
- "format" = "󰍛 {percentage}%";
- "interval" = 5;
- "on-click" = "${pkgs.kitty}/bin/kitty --hold top";
- };
-
- "battery" = {
- "format" = "{icon} {capacity}%";
- "format-icons" = [
- "󰂎"
- "󰂏"
- "󰂐"
- "󰂑"
- "󰂒"
- "󰂓"
- "󰂔"
- "󰂕"
- "󰂖"
- "󰗖"
- ];
- "interval" = 30;
- "states" = {
- "warning" = 30;
- "critical" = 15;
- };
- };
-
- "backlight" = {
- "format" = "{icon} {percent}%";
- "format-icons" = [ "󰌚" "󰌝" ];
- "on-scroll-down" = "brightnessctl set 5%-";
- "on-scroll-up" = "brightnessctl set 5%+";
- };
-
- "pulseaudio" = {
- "format" = "{icon} {volume}%";
- "format-muted" = "󰖁 0%";
- "format-icons" = {
- "headphone" = "󰋋";
- "hands-free" = "󰋎";
- "headset" = "󰋎";
- "phone" = "󰏲";
- "portable" = "󰏲";
- "car" = "󰄀";
- "default" = [ "󰕿" "󰖀" "󰕾" ];
- };
- "on-click" = "${pkgs.pavucontrol}/bin/pavucontrol";
- "on-scroll-down" = "wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-";
- "on-scroll-up" = "wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+";
- };
-
- "network" = {
- "format-wifi" = "󰖩 {signalStrength}%";
- "format-ethernet" = "󰛳";
- "format-disconnected" = "󰌙";
- "on-click" = "${pkgs.networkmanagerapplet}/bin/nm-applet";
- };
- }
- ];
+ settings.main = {
+ modules-center = ["clock"];
+ };
};
}