From d557938f1d8b913adec69244b9552760cf63b99f Mon Sep 17 00:00:00 2001 From: biscuit Date: Wed, 14 May 2025 06:51:16 -0500 Subject: [PATCH] wip --- packages/hyprland/custom/autostart.conf | 3 +- packages/waybar/custom/config | 123 ++++++++++++++++++++++++ packages/waybar/custom/style.css | 74 ++++++++++++++ packages/waybar/default.nix | 6 ++ 4 files changed, 204 insertions(+), 2 deletions(-) create mode 100644 packages/waybar/custom/config create mode 100644 packages/waybar/custom/style.css diff --git a/packages/hyprland/custom/autostart.conf b/packages/hyprland/custom/autostart.conf index a6ba0b4..32c93ae 100644 --- a/packages/hyprland/custom/autostart.conf +++ b/packages/hyprland/custom/autostart.conf @@ -7,6 +7,5 @@ $terminal = kitty exec-once = $terminal -# exec-once = nm-applet & -# exec-once = waybar & hyprpaper & firefox +exec-once = waybar diff --git a/packages/waybar/custom/config b/packages/waybar/custom/config new file mode 100644 index 0000000..88707f8 --- /dev/null +++ b/packages/waybar/custom/config @@ -0,0 +1,123 @@ +// -*- mode: json -*- + +{ + "layer": "top", + "position": "bottom", + + "modules-left": [ + "sway/workspaces", + "custom/right-arrow-dark" + ], + "modules-center": [ + "custom/left-arrow-dark", + "clock#1", + "custom/left-arrow-light", + "custom/left-arrow-dark", + "clock#2", + "custom/right-arrow-dark", + "custom/right-arrow-light", + "clock#3", + "custom/right-arrow-dark" + ], + "modules-right": [ + "custom/left-arrow-dark", + "pulseaudio", + "custom/left-arrow-light", + "custom/left-arrow-dark", + "memory", + "custom/left-arrow-light", + "custom/left-arrow-dark", + "cpu", + "custom/left-arrow-light", + "custom/left-arrow-dark", + "battery", + "custom/left-arrow-light", + "custom/left-arrow-dark", + "disk", + "custom/left-arrow-light", + "custom/left-arrow-dark", + "tray" + ], + + "custom/left-arrow-dark": { + "format": "", + "tooltip": false + }, + "custom/left-arrow-light": { + "format": "", + "tooltip": false + }, + "custom/right-arrow-dark": { + "format": "", + "tooltip": false + }, + "custom/right-arrow-light": { + "format": "", + "tooltip": false + }, + + "sway/workspaces": { + "disable-scroll": true, + "format": "{name}" + }, + + "clock#1": { + "format": "{:%a}", + "tooltip": false + }, + "clock#2": { + "format": "{:%H:%M}", + "tooltip": false + }, + "clock#3": { + "format": "{:%m-%d}", + "tooltip": false + }, + + "pulseaudio": { + "format": "{icon} {volume:2}%", + "format-bluetooth": "{icon} {volume}%", + "format-muted": "MUTE", + "format-icons": { + "headphones": "", + "default": [ + "", + "" + ] + }, + "scroll-step": 5, + "on-click": "pamixer -t", + "on-click-right": "pavucontrol" + }, + "memory": { + "interval": 5, + "format": "Mem {}%" + }, + "cpu": { + "interval": 5, + "format": "CPU {usage:2}%" + }, + "battery": { + "states": { + "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{icon} {capacity}%", + "format-icons": [ + "", + "", + "", + "", + "" + ] + }, + "disk": { + "interval": 5, + "format": "Disk {percentage_used:2}%", + "path": "/" + }, + "tray": { + "icon-size": 20 + } +} diff --git a/packages/waybar/custom/style.css b/packages/waybar/custom/style.css new file mode 100644 index 0000000..7454ecf --- /dev/null +++ b/packages/waybar/custom/style.css @@ -0,0 +1,74 @@ +* { + font-size: 20px; + font-family: monospace; +} + +window#waybar { + background: #292b2e; + color: #fdf6e3; +} + +#custom-right-arrow-dark, +#custom-left-arrow-dark { + color: #1a1a1a; +} +#custom-right-arrow-light, +#custom-left-arrow-light { + color: #292b2e; + background: #1a1a1a; +} + +#workspaces, +#clock.1, +#clock.2, +#clock.3, +#pulseaudio, +#memory, +#cpu, +#battery, +#disk, +#tray { + background: #1a1a1a; +} + +#workspaces button { + padding: 0 2px; + color: #fdf6e3; +} +#workspaces button.focused { + color: #268bd2; +} +#workspaces button:hover { + box-shadow: inherit; + text-shadow: inherit; +} +#workspaces button:hover { + background: #1a1a1a; + border: #1a1a1a; + padding: 0 3px; +} + +#pulseaudio { + color: #268bd2; +} +#memory { + color: #2aa198; +} +#cpu { + color: #6c71c4; +} +#battery { + color: #859900; +} +#disk { + color: #b58900; +} + +#clock, +#pulseaudio, +#memory, +#cpu, +#battery, +#disk { + padding: 0 10px; +} diff --git a/packages/waybar/default.nix b/packages/waybar/default.nix index 41ad1ff..e1be2ba 100644 --- a/packages/waybar/default.nix +++ b/packages/waybar/default.nix @@ -2,4 +2,10 @@ programs.waybar = { enable = true; }; + + home.file.".config/waybar" = { + source = builtins.toPath ./custom; + recursive = true; + force = true; + }; }