diff options
Diffstat (limited to 'src/.config/waybar/config')
-rw-r--r-- | src/.config/waybar/config | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/src/.config/waybar/config b/src/.config/waybar/config new file mode 100644 index 0000000..586f7c2 --- /dev/null +++ b/src/.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" +} +} + + |