mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-21 01:25:42 +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-4 Super+v \
|
||||
-kb-custom-5 Super+b \
|
||||
-kb-custom-6 Super+m \
|
||||
-kb-custom-7 Super+s \
|
||||
-kb-custom-6 Super+n \
|
||||
-kb-custom-7 Super+m \
|
||||
-kb-custom-8 Super+s \
|
||||
-kb-cancel Escape,Control+g,Super+Escape
|
||||
fi
|
||||
|
||||
|
@ -42,6 +43,7 @@ media-playback-start Play
|
|||
media-playback-pause Pause
|
||||
media-playback-stop Stop
|
||||
go-next Next track
|
||||
audio-input-microphone Toggle microphone
|
||||
multimedia-volume-control Open mixer panel
|
||||
com.spotify.Client Open Spotify
|
||||
EOF
|
||||
|
@ -64,8 +66,9 @@ EOF
|
|||
3) $playerctl pause ;;
|
||||
4) $playerctl stop ;;
|
||||
5) $playerctl next ;;
|
||||
6) i3-msg '[class="Pavucontrol"] focus' || i3-msg exec exec pavucontrol ;;
|
||||
7) i3-msg '[class="Spotify"] focus' || i3-msg exec exec spotify ;;
|
||||
6) ~/.config/i3/bin/toggle-mute source ;;
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue