diff options
author | Thanos Apollo <[email protected]> | 2023-03-31 12:24:54 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-03-31 12:24:54 +0300 |
commit | 635cc358ced7722df289a34dec17498dce73e9ab (patch) | |
tree | 20cc9d204efcd4fea8f88f2c80c3999cfea9ac32 /.config | |
parent | 9bcd43306dd19acfb8c6c098996a14570c2525d8 (diff) |
waybar: Change layout, add custom/volume
Diffstat (limited to '.config')
-rw-r--r-- | .config/waybar/config.jsonc | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index fd0c172..98881f3 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -8,18 +8,18 @@ "height": 0, "modules-left": [ "clock", - "custom/weather", - "wlr/workspaces" + "custom/weather" + // "hyprland/window", ], - "modules-center": ["hyprland/window"], + "modules-center": ["wlr/workspaces"], "modules-right": [ "tray", "custom/updates", "custom/language", "battery", "backlight", - "pulseaudio", - "pulseaudio#microphone" + "custom/volume" + // "pulseaudio#microphone" ], "hyprland/window": { @@ -101,13 +101,15 @@ "default": ["", "", ""] } }, - "pulseaudio#microphone": { - "format": "{format_source}", - "format-source": " {volume}%", - "format-source-muted": " Muted", - "on-click": "pamixer --default-source -t", - "on-scroll-up": "pamixer --default-source -i 5", - "on-scroll-down": "pamixer --default-source -d 5", - "scroll-step": 5 + "custom/volume": { + "exec": "~/.config/waybar/scripts/sound.sh", + "interval": 1, + "format": " {}", + "tooltip": true } + // "custom/pipewire": { + // "format": {}, + // "exec": "awk -F"[][]" '/Left:/ { print $2 }' <(amixer sget Master)", + // "interval": 10 + // }, } |