Hyprland keybindings: Removed Ctrl + P for foobar2000
This commit is contained in:
parent
fe9c79d6da
commit
0542753bee
2 changed files with 0 additions and 20 deletions
|
@ -80,7 +80,6 @@ bindl = , XF86AudioNext, exec, playerctl next
|
||||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||||
|
|
||||||
# Foobar2000
|
# Foobar2000
|
||||||
bind = CTRL, P, exec, $HOME/.scripts/foobar2000.sh -pp
|
|
||||||
bind = CTRL, up, exec, $HOME/.scripts/foobar2000.sh -vu
|
bind = CTRL, up, exec, $HOME/.scripts/foobar2000.sh -vu
|
||||||
bind = CTRL, down, exec, $HOME/.scripts/foobar2000.sh -vd
|
bind = CTRL, down, exec, $HOME/.scripts/foobar2000.sh -vd
|
||||||
|
|
||||||
|
|
|
@ -6,20 +6,6 @@ foobar2000_cmd="$HOME/.foobar2000/foobar2000.exe"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function start_foobar2000 {
|
|
||||||
[[ "$XDG_SESSION_TYPE" == 'wayland' ]] && opt="DISPLAY="
|
|
||||||
hyprctl dispatch exec "$opt beefweb_mpris" > /dev/null
|
|
||||||
while ! pgrep foobar2000.exe &> /dev/null; do
|
|
||||||
sleep 0.1
|
|
||||||
done
|
|
||||||
foo_runcmd '/runcmd=Playback/Volume/Set to -21 dB'
|
|
||||||
for ((i = 0 ; i < 10 ; i++)); do
|
|
||||||
foo_runcmd '/runcmd=Playback/Volume/Down'
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function foo_runcmd {
|
function foo_runcmd {
|
||||||
wine "$foobar2000_cmd" "${@}" &> /dev/null
|
wine "$foobar2000_cmd" "${@}" &> /dev/null
|
||||||
}
|
}
|
||||||
|
@ -31,11 +17,6 @@ case "$1" in
|
||||||
foo_runcmd '/runcmd=Playback/Volume/Up';;
|
foo_runcmd '/runcmd=Playback/Volume/Up';;
|
||||||
-vd|volume-down)
|
-vd|volume-down)
|
||||||
foo_runcmd '/runcmd=Playback/Volume/Down';;
|
foo_runcmd '/runcmd=Playback/Volume/Down';;
|
||||||
-pp|play-pause)
|
|
||||||
if ! pgrep foobar2000.exe &> /dev/null; then
|
|
||||||
start_foobar2000
|
|
||||||
fi
|
|
||||||
foo_runcmd '/playpause';;
|
|
||||||
*)
|
*)
|
||||||
echo "Invalid option."
|
echo "Invalid option."
|
||||||
exit 1;;
|
exit 1;;
|
||||||
|
|
Loading…
Reference in a new issue