Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/cpu.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"warning": 75,
"critical": 90
},
// "on-click":
"on-click": "kitty -e ~/.config/waybar/scripts/btop-gui",
// "on-click-middle":
// "on-click-right":
// "on-update":
Expand Down
2 changes: 1 addition & 1 deletion modules/memory.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"max-length": 7,
// "align":
// "justify":
// "on-click":
"on-click": "kitty -e ~/.config/waybar/scripts/btop-gui",
// "on-click-middle":
// "on-click-right":
// "on-update":
Expand Down
4 changes: 2 additions & 2 deletions modules/pulseaudio.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
// "scroll-step":
"on-click": "~/.config/waybar/scripts/volume output mute",
// "on-click-middle":
// "on-click-right":
"on-click-right": "kitty -e ~/.config/waybar/scripts/volume-gui output",
// "on-update":
"on-scroll-up": "~/.config/waybar/scripts/volume output raise",
"on-scroll-down": "~/.config/waybar/scripts/volume output lower",
Expand Down Expand Up @@ -77,7 +77,7 @@
// "scroll-step":
"on-click": "~/.config/waybar/scripts/volume input mute",
// "on-click-middle":
// "on-click-right":
"on-click-right": "kitty -e ~/.config/waybar/scripts/volume-gui input",
// "on-update":
"on-scroll-up": "~/.config/waybar/scripts/volume input raise",
"on-scroll-down": "~/.config/waybar/scripts/volume input lower",
Expand Down
12 changes: 12 additions & 0 deletions scripts/btop-gui
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
#
# Launch btop system monitor if available
#

main() {
if command -v btop &>/dev/null; then
btop
fi
}

main "$@"
16 changes: 16 additions & 0 deletions scripts/volume-gui
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
#
# Open audio GUI control
# Tries wiremix first, falls back to pavucontrol
#

main() {
local tab=$1
if command -v wiremix &>/dev/null; then
wiremix --tab "$tab"
elif command -v pavucontrol &>/dev/null; then
pavucontrol
fi
}

main "$@"