diff options
Diffstat (limited to '.config/waybar/config')
| -rw-r--r-- | .config/waybar/config | 97 |
1 files changed, 54 insertions, 43 deletions
diff --git a/.config/waybar/config b/.config/waybar/config index aed7d08..40e06a4 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -7,7 +7,7 @@ "modules-left": ["sway/mode", "sway/workspaces", "sway/window", "custom/mpv", "custom/mpd", "custom/spotify", "custom/toggl"], "modules-center": ["custom/weather", "clock#local", "clock#utc"], - "modules-right": ["tray", "cpu", "memory", "disk#root", "disk#home", "temperature", "idle_inhibitor", "backlight", "custom/redshift", "pulseaudio", "network#wg", "network", "battery"], + "modules-right": ["tray", "cpu", "memory", "disk#root", "disk#home", "temperature", "idle_inhibitor", "backlight", "custom/redshift", "pulseaudio", "network#vpn", "network#tailscale", "network", "battery"], "sway/workspaces": { "disable-scroll": true, @@ -30,30 +30,31 @@ "idle_inhibitor": { "format": "{icon}", "format-icons": { - "activated": "", - "deactivated": "" + "activated": "", + "deactivated": "" } }, "tray": { "spacing": 10 }, "clock#local": { - "timezone": "Europe/Berlin", + // "timezone": "Europe/Berlin", + // "timezone": "Europe/Istanbul", "format": "{:<i>%a</i> %d %b <b>%H:%M</b>}", - "tooltip-format": "TZ: {:%Z %z}\n\n{calendar}" + "tooltip-format": "TZ: {:%Z %z}\n\n{calendar}" }, "clock#utc": { "timezone": "UTC", "format": "({:<small>%Z</small> %H:%M})", - "tooltip-format": "{:%Z %z}" + "tooltip-format": "{:%Z %z}" }, "disk#root": { - "path": "/", - "format": " <small>/ </small>{percentage_used}%" + "path": "/", + "format": " <small>/ </small>{percentage_used}%" }, "disk#home": { - "path": "/home", - "format": "<small>/home </small>{percentage_used}%" + "path": "/home", + "format": "<small>/home </small>{percentage_used}%" }, "cpu": { "format": " {}%", @@ -69,13 +70,15 @@ "format-icons": ["", "", "", ""] }, "backlight": { - "states": { - "off": "1" - }, "format": "{icon} {percent}%", "format-icons": ["", "", ""], - "on-scroll-down": "light -D 5", + "on-scroll-down": "light -A 5", "on-scroll-up": "light -U 5", + // save current level + // then set to minimum brightness + "on-click-right": "light -O; light -S $(light -P)", + // revert to previously saved brightness + "on-click-middle": "light -I" }, "battery": { "states": { @@ -100,13 +103,21 @@ "tooltip-format-disconnected": "disconnected", "on-click": "swx -t -f iwctl" }, - "network#wg": { + "network#vpn": { "interface": "wg0", - "format": "", - "tooltip-format": "wg0: {ipaddr}/{cidr}", + "format": "", + "tooltip-format": "{ifname}: {ipaddr}/{cidr}", + "tooltip-format-disconnected": "disconnected", + "on-click": "doas wg-quick up wg0", + "on-click-right": "doas wg-quick down wg0" + }, + "network#tailscale": { + "interface": "tailscale0", + "format": "", // "", // "", + "tooltip-format": "{ifname}: {ipaddr}/{cidr}", "tooltip-format-disconnected": "disconnected", - "on-click": "doas wg-quick up wg0", - "on-click-right": "doas wg-quick down wg0" + "on-click": "doas rc-service tailscale start", + "on-click-right": "doas rc-service tailscale stop" }, "pulseaudio": { "format": "{icon} {volume}%", @@ -131,46 +142,46 @@ "return-type": "json", "max-length": 80, "escape": false, - "interval": 2, + "interval": 2, "exec": "$HOME/.config/waybar/modules/waybar-media spotify", - "exec-if": "pgrep spotify" + "exec-if": "pgrep spotify" }, "custom/mpd": { - "format": " {}", + "format": " {}", "return-type": "json", "max-length": 80, - "interval": 2, + "interval": 2, "exec": "$HOME/.config/waybar/modules/waybar-media mpd", - "exec-if": "pgrep mpd" + "exec-if": "pgrep mpd" }, "custom/mpv": { "format": " {}", "return-type": "json", "max-length": 80, - "interval": 2, + "interval": 2, "exec": "$HOME/.config/waybar/modules/waybar-media mpv", - "exec-if": "pgrep mpv" + "exec-if": "pgrep mpv" }, "custom/toggl": { - "format": " {}", + "format": " {}", "exec": "$HOME/.config/waybar/modules/toggl.lua 2>/dev/null", "interval": 30 }, "custom/redshift": { - "format": "{icon}", - "format-icons": { + "format": "{icon}", + "format-icons": { "day": "", - "night": "" + "night": "" }, "exec-if": "pgrep redshift", "exec": "$HOME/.config/waybar/modules/waybar-redshift", - "return-type": "json", - "on-click": "pkill -x -USR1 redshift", - "on-click-right": "pkill -x -HUP waybar-redshift" + "return-type": "json", + "on-click": "pkill -x -USR1 redshift", + "on-click-right": "pkill -x -HUP waybar-redshift" }, "custom/weather": { - "format": "{icon} {percentage}℃", - "format-icons": { + "format": "{icon} {percentage}℃", + "format-icons": { "sunny": "", "partlycloudy": "", "cloudy": "", @@ -182,15 +193,15 @@ "thunder": "", "lightsnow": "", "heavysnow": "", - "snowrain": "", + "snowrain": "" }, - "exec": "$HOME/.config/waybar/modules/weather.sh Berlin", - "interval": 600, - "return-type": "json", - "tooltip": true, - "signal": 4, - "on-click-right": "pkill -SIGRTMIN+5 waybar", - "on-click": "swx -t env REPORT=1 $HOME/.config/waybar/modules/weather.sh Berlin" + "exec": "$HOME/.config/waybar/modules/weather.sh", + "interval": 600, + "return-type": "json", + "tooltip": true, + "signal": 4, + "on-click-right": "pkill -SIGRTMIN+5 waybar", + "on-click": "swx -t env REPORT=1 $HOME/.config/waybar/modules/weather.sh Berlin" }, "mpd": { "format": "{stateIcon} {artist} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S})", |