diff options
author | Aaditya Dhruv <[email protected]> | 2023-03-24 00:15:28 -0500 |
---|---|---|
committer | Aaditya Dhruv <[email protected]> | 2023-03-24 00:15:28 -0500 |
commit | ad32e97767b5aa7e4e508f2839c3a591baf13b80 (patch) | |
tree | 8c9b2efe8345a5a0b3fe38fc45c117448b857331 | |
parent | 23f45657f2726d7bc662147c2b938420c94a3897 (diff) |
waybar config (needs to be built from source)
-rw-r--r-- | .config/waybar/config | 99 | ||||
-rw-r--r-- | .config/waybar/style.css | 108 |
2 files changed, 207 insertions, 0 deletions
diff --git a/.config/waybar/config b/.config/waybar/config new file mode 100644 index 0000000..586f7c2 --- /dev/null +++ b/.config/waybar/config @@ -0,0 +1,99 @@ +{ + "layer": "top", // Waybar at top layer + "position": "top", // Waybar position (top|bottom|left|right) + "height":30 ,// Waybar height (to be removed for auto height) + "margin": 0, + //"width": 1920, // Waybar width + "spacing": 5, + "fixed-center": true, + // Choose the order of the modules + "modules-left": ["wlr/workspaces",], + "modules-right": ["memory","pulseaudio", "clock"], + "modules-center": ["hyprland/window"], + + "wlr/workspaces": { + "format": "{icon}", + "on-click": "activate", + "active-only": false, + "all-outputs": true, + "format-icons": { + "1": "", + "2": "", + "3": "", + "4": "", + "5": "", + }, + }, + "hyprland/window": { + "format": "{}", + "separate-outputs": true + }, + "tray": { + "icon-size": 21, + "spacing": 4, + "show-passive-items": true, + "max-length": 6, + "min-length": 6, + }, + "clock": { + "tooltip": false, + "interval": 60, + "format": "{:%d %b, %I:%M %p}", + "max-length": 25, + "on-click": "alacritty --class calendar -e calcure"}, + "cpu": { + "interval":1, + "format":"{icon0}{icon1}{icon2}{icon3}", + "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"], + "on-click": "alacritty --class system_monitor -e btop", + "max-lenght": 25, + "min-length":6, + }, + "memory": { + "format": "<span color=\"#458588\"> </span>{used}GiB", + "interval": 1, + "on-click": "alacritty --class system_monitor -e btop", + "max-lenght": 25, + "min-length":6, + }, + "backlight": { + // "device": "acpi_video1", + "format": "{icon}{percent}%", + "format-icons": [" ", " ", " ", " ", " ", " ", " ", " ", " "], + "on-scroll-up":"brightnessctl set 30+", + "on-scroll-down":"brightnessctl set 30-", + "max-lenght": 25, + "min-length":6, + }, + "battery": { + "states": { + "full":100, + "warning": 50, + "critical": 20 + }, + "interval":60, + "format": "{icon} {capacity}%", + "format-icons": ["", "", "", "", ""] + }, + "network": { + "interface": "enp6s0", + "format-wifi": " ", + "format-disconnected": " 睊 ", + "tooltip-format": "{ifname} via {gwaddr} ", + "tooltip-format-wifi": "{essid} {signalStrength}%", + "on-click": "alacritty --class network -e nmtui" + }, + "pulseaudio": { + "format": "<span color=\"#458588\"> </span>{volume}%", + "format-muted": "<span color=\"#cc241d\"> </span>Muted", + "scroll-step": 1, + "on-click-right": "pavucontrol", + "ignored-sinks": ["Easy Effects Sink"], + "max-lenght": 25, + "exec":"pactl --format=json list sinks | jq -cM --unbuffered \"map(select(.name == \\\"$(pactl get-default-sink)\\\"))[0].properties | [.\\\"media.name\\\",.\\\"alsa.name\\\",.\\\"node.nick\\\",.\\\"alsa.long_card_name\\\"] | map(select(length>0))[0] | {text:.}\"", + "exec-if": "sleep 0.1", // Give enough time for `pactl get-default-sink` to update + "on-click": "pactl --format=json list sinks short | jq -cM --unbuffered \"[.[].name] | .[((index(\\\"$(pactl get-default-sink)\\\")+1)%length)]\" | xargs pactl set-default-sink" +} +} + + diff --git a/.config/waybar/style.css b/.config/waybar/style.css new file mode 100644 index 0000000..a2251f7 --- /dev/null +++ b/.config/waybar/style.css @@ -0,0 +1,108 @@ +* { + font-family: "MesloLGS NF"; + font-size: 14px; +} + +#window { + color: #ebdbb2; +} + +window#waybar { + background-color: #1d2021; + border-radius: 0px; +} + +.modules-right { + margin-right: 1.5rem; +} +.modules-left { + margin-left: 1.5rem; +} +tooltip { + background: #45403d; + border-radius: 10px; +} +tooltip label { + color: #ebdbb2; + background-color: #45403d; + border-radius: 10px; +} +tooltip * { + border-radius: 10px; +} +#workspaces button { + margin: 0; + color: #d4be98; + font-weight: bolder; + font-style: normal; + margin: 0.2rem 0.1rem; +} +button:hover { + box-shadow: inherit; + text-shadow: inherit; + background: inherit; +} +#workspaces button.active { + color: #458588; + transition: all 0.1s ease-in-out; +} + +#clock, +#custom-weather { + color: #ebdbb2; +} + +#clock { + padding: 0 0 0 1.5em; +} +#custom-weather { + padding: 0 1.5em 0 0.5em; +} +#memory { + color: #ebdbb2; + padding: 0 0.3em; +} + +#pulseaudio { + margin: 0; + padding: 0 0.5em 0 0.4em; + color: #ebdbb2; +} + +#backlight { + margin: 0; + padding: 0 0.5em 0 0.4em; + color: #d8a657; +} +#cpu { + margin: 0; + padding: 0 0.1em 0 0.1em; + color: #a9b665; +} +#network { + margin: 0; + padding: 0 0.4em 0 0.5em; + color: #d8a657; +} +#custom-cycle_wall { + margin: 0; + padding: 0 0.5em; + color: #d3869b; +} + +#language { + margin: 0; + padding: 0 0.1em; + color: #d3869b; +} +#tray { + margin: 0; + padding: 0 0.2em; + color: #d3869b; +} +#battery { + margin: 0; + padding: 0 0.5em 0 0.4em; + color: #a9b665; +} + |