diff options
Diffstat (limited to 'nixos/config/waybar')
| -rw-r--r-- | nixos/config/waybar/config.jsonc | 154 | ||||
| -rw-r--r-- | nixos/config/waybar/style.css | 120 |
2 files changed, 127 insertions, 147 deletions
diff --git a/nixos/config/waybar/config.jsonc b/nixos/config/waybar/config.jsonc index a60a949..7b8e46c 100644 --- a/nixos/config/waybar/config.jsonc +++ b/nixos/config/waybar/config.jsonc @@ -1,93 +1,67 @@ { - //"margin-top": 15, - //"margin-right": 15, - //"margin-left": 15, - "margin-top": 0, - "margin-right": 0, - "margin-left": 0, - "layer": "top", - "position": "top", - "spacing": 3, - // All modules : battery, pulseaudio, tray, hyprland/workspaces, clock, cpu, memory, network - "modules-left": [ - "hyprland/workspaces", - "hyprland/window" - ], - "modules-center": [ - "clock" - ], - "modules-right": [ - "tray", + "layer": "top", + "position": "top", + "height": 30, + "spacing": 8, + + "modules-left": [ + "hyprland/workspaces", + "hyprland/window" + ], + + "modules-center": [ + ], + + "modules-right": [ + "tray", + "network", "battery", - "pulseaudio", - "temperature", - "cpu", - "memory", - "network" - ], - "temperature": { - "format": "TEMP: {temperatureC}°C", - "hwmon-path": [ - "/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon2/temp1_input" - ], - "critical-threshold": 65, - "interval": 3 - }, - "hyprland/workspaces": { - "format": "{id}", - "show-special": true - }, - "hyprland/window": { - "format": "{initialTitle}", - "tooltip": false, - "icon": true - }, - "network": { - "format": "{ifname}", - "format-disconnected": "NULL", - "interval": 5, - "tooltip": true, - "tooltip-format": "{essid}" - }, - "cpu": { - "format": "CPU: {usage}%", - "interval": 3, - "states": { - "warning": 40, - "urgent": 60, - "critical": 80 - } - }, - "memory": { - "format": "MEM: {percentage}%", - "format-alt": "MEM: {used} GiB", - "interval": 3, - "states": { - "warning": 40, - "urgent": 60, - "critical": 80 - }, - "tooltip": true, - "tooltip-format": "{used}/{total} GiB" - }, - "pulseaudio": { - "format": "VOL: {volume}%", - "format-bluetooth": "VOL: {volume}%", - "format-muted": "MUTED", - "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" - }, - "battery": { - "format": "BAT: {capacity}%", - "interval": 5, - "states": { - "warning": 60, - "urgent": 35, - "critical": 20 - } - }, - "clock": { - "format": "{:%H:%M:%S - %a %d %B %Y}", - "tooltip": false, - "interval": 1 - } + "cpu", + "memory", + "disk", + "clock" + ], + + "hyprland/workspaces": { + "format": "{name}", + "persistent-workspaces": { + "*" : 9 + } + }, + + "hyprland/window" : { + "max-length": 40, + "seperate-outputs": false + }, + "tray": { + "spacing": 10 + }, + "clock": { + "format-alt": "{:%Y-%m-%d}" + }, + "cpu": { + "format": "CPU: {usage}%", + "tooltip": false + }, + "memory": { + "format": "RAM: {used}GiB" + }, + "disk": { + "interval": 60, + "path": "/", + "format": "ROOT: {free}" + }, + "battery": { + "states": { + "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "BAT: {capacity}%", + "format-plugged": "BAT!: {capacity}%" + }, + "network": { + "format": "ONLINE", + "format-disconnected": "OFFLINE" + } } diff --git a/nixos/config/waybar/style.css b/nixos/config/waybar/style.css index 4e7b6e8..2bcc39c 100644 --- a/nixos/config/waybar/style.css +++ b/nixos/config/waybar/style.css @@ -1,94 +1,100 @@ +@define-color bg #1a1b26; +@define-color fg #a9b1d6; +@define-color blk #32344a; +@define-color red #f7768e; +@define-color grn #9ece6a; +@define-color ylw #e0af68; +@define-color blu #7aa2f7; +@define-color mag #ad8ee6; +@define-color cyn #0db9d7; +@define-color brblk #444b6a; +@define-color white #ffffff; + * { - font-family: "monospace"; - font-weight: bold; + font-family: "0xProto Nerd Font", monospace; + font-size: 16px; + font-weight: bold; } -#waybar { - background: #1a1b26; - color: #fff; +window#waybar { + background-color: @bg; + color: @fg; } #workspaces button { - color: #fff; - border-radius: 0; + padding: 0 6px; + color: @cyn; + background: transparent; + border-bottom: 3px solid @bg; } - #workspaces button.active { - background: #ad8ee6; + color: @cyn; + border-bottom: 3px solid @mag; } - -#workspaces button.special { - background: #7aa2f7; +#workspaces button.empty { + color: @white; +} +#workspaces button.empty.active { + color: @cyn; + border-bottom: 3px solid @mag; } #workspaces button.urgent { - background: #f7768e; + background-color: @red; } -#workspaces button:hover { - box-shadow: none; - text-shadow: none; - background: #32344a; - border: none; - transition: none; - color: #7aa2f7; +button:hover { + background: inherit; + box-shadow: inset 0 -3px #ffffff; } +#clock, +#custom-sep, #battery, #cpu, #memory, -#pulseaudio, +#disk, #network, -#clock, -#tray, -#temperature, -#workspaces button { - padding: 7 7; +#tray { + padding: 0 8px; + color: @white; } -#network { - background: #449dab; +#clock { + color: @cyn; + border-bottom: 4px solid @cyn; } -#pulseaudio { - background: #ad8ee6; +#battery { + color: @mag; + border-bottom: 4px solid @mag; } -#pulseaudio.bluetooth { - background: #7aa2f7; +#disk { + color: @ylw; + border-bottom: 4px solid @ylw; } -#battery, -#cpu, -#memory, -#temperature { - background: #9ece6a; +#memory { + color: @mag; + border-bottom: 4px solid @mag; } -#battery.warning, -#cpu.warning, -#memory.warning { - background: #e0af68; +#cpu { + color: @grn; + border-bottom: 4px solid @grn; } -#battery.urgent, -#cpu.urgent, -#memory.urgent, -#network.disabled { - background: #ff9e64; +#network { + color: @blu; + border-bottom: 4px solid @blu; } -#battery.critical, -#cpu.critical, -#pulseaudio.muted, -#memory.critical, -#network.disconnected, -#temperature.critical { - background: #f7768e +#network.disconnected { + background-color: @red; } -#window { - margin-left: 10px; - background: #32344a; - padding: 7; +#tray { + background-color: #2980b9; } + |
