scripts reorganize

This commit is contained in:
djaidjai committed 2026-10-06 22:34:05 +02:00
1 parent a2a056a68d
commit 0734bee219
60 files changed
+824 -5

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
#!/usr/bin/env bash
# This script updates the clementine and combine toggle custom modules of my specific polybar setup
case "$XDG_CURRENT_DESKTOP" in
"sway"|"Hyprland")
case "$1" in
"clementine")
"$(dirname "$0")/toggle_audiocables_bar.sh" toggle clementine
kill -37 $(pgrep waybar)
;;
"combine")
"$(dirname "$0")/toggle_audiocables_bar.sh" toggle combine
kill -37 $(pgrep waybar)
;;
*)
echo "Unknown sink specified."
;;
esac
;;
"i3")
case "$1" in
"clementine")
polybar-msg -p "$(xdotool search --name polybar-default getwindowpid)" action "#audiocables.hook.0"
;;
"combine")
polybar-msg -p "$(xdotool search --name polybar-default getwindowpid)" action "#audiocables.hook.1"
;;
*)
echo "unknown sink specified."
;;
esac
;;
*)
dunstify -u low -t 2000 -i ~/.icons/candy-icons/apps/scalable/pavucontrol.svg "Current desktop is not supported by audiocables.sh"
exit
;;
esac
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.