(scripts) added kb layout switcher for hyprland

This commit is contained in:
zegonix
2025-10-01 23:08:20 +02:00
parent cdc63188a8
commit 1af9ecef17
3 changed files with 40 additions and 5 deletions

View File

@@ -36,10 +36,12 @@ select_audio_sink() {
elif $(which fuzzel &>/dev/null); then
selection="$(printf "%s\n" "${names[@]//\"/}" | fuzzel --lines ${lines} --dmenu --select-index ${number})"
else
notify-send "sink-switcher" "requires either [rofi] or [fuzzel]"
return 1
fi
if [[ -z "${selection}" ]]; then
notify-send "sink-switcher" "selection failed"
return 1
fi
@@ -52,7 +54,7 @@ select_audio_sink() {
done
if [[ -z "${number}" ]]; then
echo "something went wrong.."
notify-send "sink-switcher" "something went wrong.."
return 1
fi