From cd36fcff9a7aba08596a88995f9e9fcba6a3d61e Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 15 Apr 2022 15:34:47 +0200 Subject: waybar: update config * dogfood mpris module * update colors --- .config/waybar/config.jsonc | 53 ++++++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 25 deletions(-) (limited to '.config/waybar/config.jsonc') diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index 7736710..7145e18 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -1,5 +1,5 @@ { - "modules-left": ["sway/mode", "sway/workspaces", "custom/mpris"], + "modules-left": ["sway/mode", "sway/workspaces", "river/tags", "mpris"], "sway/workspaces": { "format": "{icon}", @@ -10,32 +10,35 @@ "__vnc": "󱒃" } }, - // "wlr/workspaces": { - // "format": "{icon}", - // "format-icons": { - // "m": "󰎇", - // "v": "󰿏", - // "g": "󰺵", - // "__vnc": "󱒃" - // } - // }, "river/tags": { "format": ":{}", "num-tags": 9 }, - "custom/mpris": { + "mpris": { "max-width": 60, - "on-click": "playerctl play-pause", - "on-click-right": "playerctl next", - // "exec": "env YAEGI_SYSCALL=1 YAEGI_UNRESTRICTED=1 ${HOME}/.config/waybar/modules/mpris.go", - // "interval": "once", - "retart-interval": 1, - "exec": "${HOME}/.config/waybar/modules/mpris.sh", - "return-type": "json", - "signal": 4, + "format": "{player_icon} {dynamic}", + "format-paused": "{status_icon} {dynamic}", + "format-icons": { + "default": "󰲸", + + "paused": "󰏤", + "playing": "", + "stopped": "", + } }, + // "custom/mpris": { + // "max-width": 60, + // "on-click": "playerctl play-pause", + // "on-click-right": "playerctl next", + // // "exec": "env YAEGI_SYSCALL=1 YAEGI_UNRESTRICTED=1 ${HOME}/.config/waybar/modules/mpris.go", + // // "interval": "once", + // "retart-interval": 1, + // "exec": "${HOME}/.config/waybar/modules/mpris.sh", + // "return-type": "json", + // "signal": 4, + // }, // ------------------------------------------------------------------------ // @@ -93,12 +96,14 @@ "custom/timetracked": { "format": "{}", "exec": "$HOME/.config/waybar/modules/timetracked.sh", + "on-click": "$HOME/.config/waybar/modules/timetracked.sh on-click", "escape": true, "return-type": "json" }, // ------------------------------------------------------------------------ // - "modules-right": ["tray", "cpu", "memory", "disk#root", "disk#home", "temperature", "idle_inhibitor", "backlight", "custom/gamma", "pulseaudio", "network#mullvad", "network#tailscale", "network", "battery"], + // "modules-right": ["tray", "cpu", "memory", "disk#root", "disk#home", "temperature", "idle_inhibitor", "backlight", "custom/gamma", "pulseaudio", "network#mullvad", "network#tailscale", "network", "battery"], + "modules-right": ["tray", "cpu", "memory", "disk#root", "disk#home", "temperature", "idle_inhibitor", "custom/gamma", "pulseaudio", "network#mullvad", "network#tailscale", "network", "battery"], "tray": { "spacing": 10 @@ -205,7 +210,7 @@ "tooltip-format-disconnected": "disconnected", }, "network#tailscale": { - "interface": "tailscale*", + "interface": "tailscale0", "format": "󰌆", "tooltip-format": "{ifname}: {bandwidthUpBits} {bandwidthDownBits}", "tooltip-format-disconnected": "disconnected", @@ -221,14 +226,12 @@ "format-disconnected": "󰌙 ", "tooltip-format": "{ifname}: {ipaddr}/{cidr}\ngateway: {gwaddr}\nssid: {essid}\nsignal: {signaldBm} dbm\ndown: {bandwidthDownBits}\nup: {bandwidthUpBits}", "tooltip-format-disconnected": "disconnected", - "on-click": "doas rc-service net.wlp2s0 start", - "on-click-right": "doas rc-service net.wlp2s0 stop", - "on-click-middle": "swx -t -f iwctl", + "on-click": "notify-send 'Connecting...' && doas rc-service iwd start && swx -t -f iwctl", }, "battery": { "states": { - // "good": 95, + "good": 95, "warning": 30, "critical": 15 }, -- cgit 1.4.1