feat: river: added mpv hotkey.

This commit is contained in:
Andrey Parhomenko 2024-07-26 03:31:29 +05:00
parent 495c0759df
commit 203c7a283e
3 changed files with 11 additions and 4 deletions

View file

@ -110,6 +110,8 @@ fi
export XDISPLAY_REGION="slurp"
export XDISPLAY_SCREENSHOT="grim"
export XDISPLAY_REGION_SCREENSHOT='slurp | grim -g - - | wl-copy'
export XVIDEO_PLAYER='mpv'
export XLINK_VIDEO_PLAYER='mpv'
# Android.
export ANDROID_HOME="$HOME/app/android/Sdk"

View file

@ -1,5 +1,5 @@
keep-open=yes
ao=jack
osd-fractions
osd-level=1
volume=30
ao=pipewire
volume=60
ytdl-raw-options=extractor-args="youtube:player-client=android"

View file

@ -8,6 +8,7 @@
# See the river(1), riverctl(1), and rivertile(1) man pages for complete
# documentation.
#
#
# Setting the default border width in pixels
# and the border colors
@ -172,6 +173,10 @@ riverctl map normal Super Backspace spawn "riverctl keyboard-layout 'ru'"
riverctl map normal Super+Alt R spawn "RIVER_RELOAD=1 $XDG_CONFIG_HOME/river/init && $XNOTIFY 'Reloaded the River configuration'"
# Link player.
riverctl map normal Super+Shift P spawn \
'p=`wl-paste` ; $XNOTIFY "$XLINK_VIDEO_PLAYER $p" ; ($XLINK_VIDEO_PLAYER $p || $XNOTIFY "$XLINK_VIDEO_PLAYER failed")'
# Run appications.
riverctl map normal Super+Shift R spawn "$XRUNNER"