summaryrefslogtreecommitdiff
path: root/river
diff options
context:
space:
mode:
Diffstat (limited to 'river')
-rwxr-xr-xriver/init17
1 files changed, 14 insertions, 3 deletions
diff --git a/river/init b/river/init
index cf16d63..0e2f7d1 100755
--- a/river/init
+++ b/river/init
@@ -5,6 +5,8 @@ export XDG_SESSION_TYPE=wayland
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_DESKTOP=sway
+export SDL_VIDEODRIVER=wayland
+
export QT_QPA_PLATFORM=wayland
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
@@ -18,6 +20,12 @@ hash dbus-update-activation-environment 2>/dev/null && \
# Input methods
riverctl keyboard-layout -options ctrl:swap_lalt_lctl,ctrl:swap_rwin_rctl vlomwide
riverctl input pointer-2362-628-PIXA3854:00_093A:0274_Touchpad tap enabled
+riverctl xcursor-theme Adwaita 64
+gsettings set org.gnome.desktop.interface cursor-theme Adwaita
+gsettings set org.gnome.desktop.interface cursor-size 64
+
+riverctl map normal Super Escape spawn 'riverctl keyboard-layout -options ctrl:swap_lalt_lctl,ctrl:swap_rwin_rctl vlomwide'
+riverctl map normal Super+Shift Escape spawn 'riverctl keyboard-layout -options "" us'
# Basic execution
riverctl map normal Super T spawn foot
@@ -56,16 +64,16 @@ riverctl map normal Super+Shift Comma send-to-output previous
# Ratio changes
+LEFT=C
UPK=E
DNK=N
+RIGHT=I
riverctl map normal Super $UPK send-layout-cmd rivercarro "main-ratio -0.05"
riverctl map normal Super $DNK send-layout-cmd rivercarro "main-ratio +0.05"
riverctl map normal Super+Shift $UPK send-layout-cmd rivercarro "main-count +1"
riverctl map normal Super+Shift $DNK send-layout-cmd rivercarro "main-count -1"
# Super+Alt+{H,J,K,L} to move views
-LEFT=C
-RIGHT=I
riverctl map normal Super+Alt $LEFT move left 100
riverctl map normal Super+Alt $DNK move down 100
riverctl map normal Super+Alt $UPK move up 100
@@ -89,7 +97,7 @@ riverctl map-pointer normal Super+Shift BTN_LEFT resize-view
riverctl map normal Super Tab focus-previous-tags
count=0
for i in F U H period V L O M; do
- tags=$(( 1 << count ))
+ tags=$((1 << count))
riverctl map normal Super $i set-focused-tags $tags
riverctl map normal Super+Shift $i set-view-tags $tags
# riverctl map normal Super+Control $i toggle-focused-tags $tags
@@ -126,6 +134,9 @@ riverctl border-color-unfocused 0x"$IN_COLOUR"
# Set keyboard repeat rate
riverctl set-repeat 50 300
+# Cursor follows focus
+riverctl set-cursor-warp on-focus-change
+
# Set the default layout generator to be rivercarro and start it.
# River will send the process group of the init executable SIGTERM on exit.
riverctl default-layout rivercarro