diff options
Diffstat (limited to 'config/waybar')
| -rwxr-xr-x | config/waybar/config.jsonc | 107 | ||||
| -rwxr-xr-x | config/waybar/style.css | 82 |
2 files changed, 189 insertions, 0 deletions
diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc new file mode 100755 index 0000000..6907e47 --- /dev/null +++ b/config/waybar/config.jsonc @@ -0,0 +1,107 @@ +{ + "position": "top", +// "output": "HDMI-A-1", + "layer": "top", + "modules-left": [ +// "custom/distro", + "niri/workspaces", + "niri/window" + ], + "modules-center": [ + ], + "modules-right": [ + "network", + "pulseaudio", + "clock" + ], + "pulseaudio": { + "tooltip": false, + "scroll-step": 5, + "format": " {volume}%", + "format-muted": "muted", + "format-icons": { + "default": [ + "", + "", + "" + ] + } + }, + "privacy": { + "icon-spacing": 10, + "icon-size": 18, + "transition-duration": 250, + "tooltip": false, + "modules": [ + { + "type": "screenshare", + "tooltip": true, + "tooltip-icon-size": 24 + }, + { + "type": "audio-out", + "tooltip": true, + "tooltip-icon-size": 24 + }, + { + "type": "audio-in", + "tooltip": true, + "tooltip-icon-size": 24 + } + ] + }, + "custom/distro": { + "format": "", + "on-click": "sh -c 'rofi -show drun -config ~/.config/rofi/gruvbox.rasi'", + "tooltip": false + }, + "bluetooth": { + "format": " {status}", + "format-connected": " CONN", + "tooltip": true, + "on-click": "footclient -e bluetoothctl", + "tooltip-format-connected": "{device_alias}" + }, + "clock": { + "format": " {:%I:%M %p}", + "tooltip": true, + "tooltip-format": "{:%a, %b %d, :%I:%M:%S %p}" + }, + "niri/workspaces": { + "format": "●", + "active-format": "{icon} ●", + "window-icons": true, + "icon-size": 20 + }, + "niri/window": { + "icon": false, + "icon-size": 20 + }, + "niri/mode": { + "format": "<span style=\"italic\">{}</span>" + }, + "network": { + // "interface": "wlo1", + "interface": "eno1", + "format-wifi": " {essid}", + "format-ethernet": " {ipaddr}/{cidr}", + "format-disconnected": " disconnected", + "tooltip": true, + "tooltip-format": "Click to copy", + "max-length": 50, + "on-click": "sh -c 'ip addr show eno1 | grep \"inet \" | awk \"{print \\$2}\" | sed \"s#/.*##\" | wl-copy'" + }, + "battery": { + "format": "BAT {capacity}%", + "interval": 10, + "states": { + "warning": 20, + "critical": 10 + }, + "format-time": "{H}:{m}", + "format-charging": "BAT {capacity}%", + "format-discharging": "BAT {capacity}%", + "tooltip-format": "{power}W, {cycles} cycles" + } +} + diff --git a/config/waybar/style.css b/config/waybar/style.css new file mode 100755 index 0000000..601dd6d --- /dev/null +++ b/config/waybar/style.css @@ -0,0 +1,82 @@ +@define-color border #211e1e; +@define-color background #111111; +@define-color surface0 #151111; +@define-color overlay0 #161515; +@define-color text #e0def4; +@define-color text_dim #6e6a86; +@define-color blue #31748f; +@define-color green #9ccfd8; +@define-color yellow #f6c177; +@define-color peach #ebbcba; +@define-color maroon #e79591; +@define-color lavender #c4a7e7; +@define-color pink #eb6f92; +@define-color teal #9ccfd8; +@define-color grey #6e6a86; + +* { + border: none; + font-family: "JetBrainsMono Nerd Font"; + font-size: 15px; + min-height: 10px; +} + +window#waybar { + background: transparent; +} + +#disk, +#pulseaudio, +#window, +#clock, +#network, +#battery, +#privacy, +#memory, +#cpu, +#workspaces, +#tray, +#bluetooth, +#tray menu { + margin-top: 0; + padding: 5px 10px; + margin: 3px 0 13px 10px; + background: @surface0; + color: @peach; + transition: 0.3s; + border: 1.5px solid @border; + border-radius: 8px; +} + +#window { transition: none; } + +window#waybar.empty #window { + background: transparent; + box-shadow: none; + border: none; +} + +#network { color: @peach; } +#clock { margin-right: 12px; color: @peach; } +#pulseaudio { color: @peach; } + +#workspaces { + margin-left: 12px; + color: @peach; +} + +#workspaces button { + margin: 0; + padding: 1px 3px; + color: @peach; + transition: none; +} + +#workspaces button.empty { color: @peach; } +#workspaces button.active { color: @maroon; } +#workspaces button.urgent { color: @peach; } + +#workspaces button:hover { + background: @overlay0; + color: @peach; +} |
