summaryrefslogtreecommitdiff
path: root/modules/home/niri/chernobyl/waybar.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/home/niri/chernobyl/waybar.nix')
-rw-r--r--modules/home/niri/chernobyl/waybar.nix187
1 files changed, 187 insertions, 0 deletions
diff --git a/modules/home/niri/chernobyl/waybar.nix b/modules/home/niri/chernobyl/waybar.nix
new file mode 100644
index 0000000..cd3bedd
--- /dev/null
+++ b/modules/home/niri/chernobyl/waybar.nix
@@ -0,0 +1,187 @@
+{ pkgs, ... }:
+
+{
+ 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";
+ };
+ }
+ ];
+ };
+}