diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-07-19 12:11:38 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-07-19 12:15:15 +0200 |
commit | d17c0364f1053cf8080a6e8d6438a1d43fc42532 (patch) | |
tree | ad4b841b9603273de9ff04dbf4119c469c05bd71 /.config/waybar/config | |
parent | 485b513b2e82aa3dcf86e4b0ae8a1fa7bc4e004b (diff) |
[sway+i3] pactl and other config adjustments
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}", |