river: Add output quick switch script
Invoked by `MOD+SHIFT+O` (for '[O]utput'), it greps the kanshi configuration file for existing profiles and allows you to select one which kanshi tries to apply. Can be a little buggy, though due to kanshi and not the plugin (sometimes failing to re-activate turned off screens etc).
This commit is contained in:
parent
ff7863b011
commit
d91bc46d75
3 changed files with 31 additions and 9 deletions
|
|
@ -176,6 +176,7 @@ riverctl map normal $mod+Shift v toggle-float
|
|||
# shellcheck disable=SC2016
|
||||
# Make all connected outputs show the desktop and no windows at all
|
||||
riverctl map normal $mod+Shift M spawn 'for i in $(wlopm | wc -l); do riverctl set-focused-tags $((1 << 10)); riverctl focus-output next; done; riverctl set-focused-tags $((1 << 10)); riverctl focus-output next'
|
||||
riverctl map normal $mod+Shift O spawn "kanshiswitch"
|
||||
|
||||
riverctl map normal $mod+Shift F10 spawn "riverctl send-layout-cmd $layout_cmd '--tags all --output all view-padding 0'"
|
||||
riverctl map normal $mod F10 spawn "riverctl send-layout-cmd $layout_cmd '--tags all --output all view-padding 6'"
|
||||
|
|
@ -306,7 +307,6 @@ for pad in $(riverctl list-inputs | grep -i touchscreen); do
|
|||
riverctl input "$pad" pointer-accel 0.5
|
||||
done
|
||||
|
||||
|
||||
# We are not in voidlinux, so no nice turnstile user services will take care of us
|
||||
# have to start everything manually here.
|
||||
if ! cat /etc/*-release | grep -q '^NAME=.*Void'; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue