diff options
Diffstat (limited to '.config/waybar/config')
-rw-r--r-- | .config/waybar/config | 18 |
1 files changed, 9 insertions, 9 deletions
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}", |