From d17c0364f1053cf8080a6e8d6438a1d43fc42532 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 19 Jul 2024 12:11:38 +0200 Subject: [sway+i3] pactl and other config adjustments --- .config/waybar/config | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to '.config/waybar/config') diff --git a/.config/waybar/config b/.config/waybar/config index f659a30..13eeadc 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -1,8 +1,8 @@ { "layer": "top", - "modules-left": ["sway/workspaces", "sway/mode"], + "modules-left": ["sway/workspaces", "custom/workspace-add", "sway/mode"], "modules-center": ["sway/window"], - "modules-right": ["tray", "custom/alsa", "network", "clock"], + "modules-right": ["tray", "pulseaudio", "network", "clock"], "sway/workspaces": { "format": "{icon}", "format-icons": { @@ -28,6 +28,10 @@ "20": "二十" } }, + "custom/workspace-add": { + "exec": "echo '+'", + "on-click": "~/.config/sway/bin/workspace-add" + }, "sway/window": { "max-length": 100, "icon": true, @@ -36,13 +40,9 @@ "tray": { "show-passive-items": true }, - "custom/alsa": { - "exec": "amixer get Master | grep '%' | awk -F '[][]' '{print $2}'", - //"exec-if": "alsactl monitor", - "format": "V {}", - "on-scroll-up": "amixer set Master 1%+", - "on-scroll-down": "amixer set Master 1%-", - "interval": 1 + "pulseaudio": { + "format": "V {volume}%", + "on-click-right": "pavucontrol" }, "network": { "format": "{ipaddr}", -- cgit v1.2.3