mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
add ability to switch audio devices in hypr
This commit is contained in:
parent
24ad403f6d
commit
d0ce5ae885
@ -18,6 +18,9 @@ binde = , h, resizeactive, -50 0
|
||||
binde = , j, resizeactive, 0 50
|
||||
binde = , k, resizeactive, 0 -50
|
||||
binde = , l, resizeactive, 50 0
|
||||
bind = , 1, exec, ~/.config/hypr/scripts/audio-device-switcher.sh 1 $e
|
||||
bind = , 2, exec, ~/.config/hypr/scripts/audio-device-switcher.sh 2 $e
|
||||
bind = , 3, exec, ~/.config/hypr/scripts/audio-device-switcher.sh 3 $e
|
||||
bind = , escape, submap, reset
|
||||
submap = reset
|
||||
|
||||
|
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
sink=$(pactl list sinks | grep "Sink #" | head -n $1 | tail -n 1)
|
||||
pactl set-default-sink $(echo $sink | cut -d "#" -f 2)
|
@ -59,6 +59,7 @@
|
||||
"format-muted": " {format_source}",
|
||||
"format-bluetooth": "{icon} <span color=\"{{ .themes.gruvbox.red }}\">{volume}</span>% {format_source}",
|
||||
"format-bluetooth-muted": " {format_source}",
|
||||
"tooltip": false,
|
||||
|
||||
"format-source": " <span color=\"{{ .themes.gruvbox.red }}\">{volume}</span>%",
|
||||
"format-source-muted": "",
|
||||
|
Loading…
x
Reference in New Issue
Block a user