Add keybinds for playback control

This commit is contained in:
Andrew Scott 2024-01-13 01:13:06 -05:00
parent d48e13dd41
commit 4c50bd571b
Signed by: a
GPG key ID: 7CD5A5977E4931C1

View file

@ -197,6 +197,11 @@ do
riverctl map "$mode" None XF86AudioRaiseVolume spawn 'pactl set-sink-volume @DEFAULT_SINK@ +5%'
riverctl map "$mode" None XF86AudioMicMute spawn 'pactl set-source-mute @DEFAULT_SOURCE@ toggle'
# Media
riverctl map "$mode" None XF86AudioPrev spawn ''
riverctl map "$mode" None XF86AudioPlay spawn ''
riverctl map "$mode" None XF86AudioNext spawn ''
# Backlight
riverctl map $mode None XF86MonBrightnessDown spawn 'light -U 5'
riverctl map $mode None XF86MonBrightnessUp spawn 'light -A 5'
@ -249,7 +254,7 @@ riverctl map-switch normal lid close 'waylock-launcher'
riverctl focus-output DP-1
{{- end }}
# -app-id and title -"foo" start floating
# Start floating
riverctl rule-add -app-id 'Bitwarden' float
riverctl rule-add -app-id 'Blueman-manager' float
riverctl rule-add -app-id 'connman-gtk' float
@ -259,10 +264,7 @@ riverctl rule-add -app-id 'mousepad' float
riverctl rule-add -app-id 'com.nextcloud.dextopclient.Nextcloud' float
riverctl rule-add -app-id 'vlc' float
# -app-id "bar" and any title use client-side decorations
riverctl rule-add -app-id 'emacs' csd
# Default layout generator
# Layout generator
riverctl default-layout rivertile
rivertile -view-padding 4 -outer-padding 4 -main-ratio .55 &