scripts reorganize

This commit is contained in:
2026-10-06 22:34:05 +02:00
parent a2a056a68d
commit 0734bee219
60 changed files with 824 additions and 5 deletions

18
scripts/WMScripts/microphone.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# This script updates the microphone custom module of my specific polybar setup
case "$XDG_CURRENT_DESKTOP" in
"sway"|"Hyprland")
"$(dirname "$0")/microphone_bar.sh" mute
kill -n36 $(pgrep waybar)
;;
"i3")
polybar-msg -p "$(xdotool search --name polybar-default getwindowpid)" action "#microphone.hook.0"
polybar-msg -p "$(xdotool search --name polybar-secondary getwindowpid)" action "#microphone.hook.1"
;;
*)
dunstify -u low -t 2000 -i ~/.icons/candy-icons/apps/scalable/pavucontrol.svg "Current desktop is not supported by microphone.sh"
exit
;;
esac