mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-21 09:35:40 +02:00
rofi: add a mute option to media player keybindings
This commit is contained in:
parent
ce61d1ed89
commit
adeea3f62d
1 changed files with 7 additions and 4 deletions
|
@ -11,8 +11,9 @@ if [ -z "${ROFI_OUTSIDE}" ]; then
|
||||||
-kb-custom-3 Super+c \
|
-kb-custom-3 Super+c \
|
||||||
-kb-custom-4 Super+v \
|
-kb-custom-4 Super+v \
|
||||||
-kb-custom-5 Super+b \
|
-kb-custom-5 Super+b \
|
||||||
-kb-custom-6 Super+m \
|
-kb-custom-6 Super+n \
|
||||||
-kb-custom-7 Super+s \
|
-kb-custom-7 Super+m \
|
||||||
|
-kb-custom-8 Super+s \
|
||||||
-kb-cancel Escape,Control+g,Super+Escape
|
-kb-cancel Escape,Control+g,Super+Escape
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -42,6 +43,7 @@ media-playback-start Play
|
||||||
media-playback-pause Pause
|
media-playback-pause Pause
|
||||||
media-playback-stop Stop
|
media-playback-stop Stop
|
||||||
go-next Next track
|
go-next Next track
|
||||||
|
audio-input-microphone Toggle microphone
|
||||||
multimedia-volume-control Open mixer panel
|
multimedia-volume-control Open mixer panel
|
||||||
com.spotify.Client Open Spotify
|
com.spotify.Client Open Spotify
|
||||||
EOF
|
EOF
|
||||||
|
@ -64,8 +66,9 @@ EOF
|
||||||
3) $playerctl pause ;;
|
3) $playerctl pause ;;
|
||||||
4) $playerctl stop ;;
|
4) $playerctl stop ;;
|
||||||
5) $playerctl next ;;
|
5) $playerctl next ;;
|
||||||
6) i3-msg '[class="Pavucontrol"] focus' || i3-msg exec exec pavucontrol ;;
|
6) ~/.config/i3/bin/toggle-mute source ;;
|
||||||
7) i3-msg '[class="Spotify"] focus' || i3-msg exec exec spotify ;;
|
7) i3-msg '[class="Pavucontrol"] focus' || i3-msg exec exec pavucontrol ;;
|
||||||
|
8) i3-msg '[class="Spotify"] focus' || i3-msg exec exec spotify ;;
|
||||||
esac >&2
|
esac >&2
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue