···11+profile desktop {
22+ output "AOC 2460G4 0x0000075E" {
33+ mode 1920x1080@144Hz
44+ position 0,0
55+ adaptive_sync off
66+ }
77+ output "BNQ BenQ PD2700U ET87K04288SL0" {
88+ mode 3840x2160@60Hz
99+ position 1920,0
1010+ scale 2
1111+ adaptive_sync on
1212+ }
1313+ output "LG Electronics LG HDR WFHD 0x0000B11B" {
1414+ mode 2560x1080@75Hz
1515+ position 640,1080
1616+ adaptive_sync on
1717+ }
1818+}
+112
config/river/init
···11+#!/bin/sh
22+# Autostart
33+riverctl spawn update-session-vars
44+riverctl spawn "swaybg -i ${HOME}/misc/syncthing/media/images/wallpapers/dark/evie-s-Pb1KFv4tauY-unsplash.jpg -m fill"
55+riverctl spawn kanshi
66+riverctl spawn 'rivertile -outer-padding 0 -view-padding 0 -main-ratio 0.5'
77+88+riverctl xcursor-theme Adwaita 24
99+1010+riverctl input pointer-1356-3570-Sony_Interactive_Entertainment_DualSense_Edge_Wireless_Controller_Touchpad events disabled
1111+1212+riverctl focus-follows-cursor normal
1313+1414+riverctl map normal Super Return spawn foot
1515+riverctl map normal Super R spawn bemenu-run.sh
1616+riverctl map normal Super E spawn 'wpctl set-mute @DEFAULT_SOURCE@ toggle'
1717+1818+riverctl map normal None Print spawn 'scr pic -c'
1919+riverctl map normal Super Print spawn 'scr pic -cd'
2020+2121+# riverctl map normal Super Space 'makoctl dismiss -a'
2222+2323+# riverctl map normal Super H focus-view left
2424+# riverctl map normal Super J focus-view down
2525+# riverctl map normal Super K focus-view up
2626+# riverctl map normal Super L focus-view right
2727+riverctl map normal Super Z focus-view next
2828+riverctl map normal Super+Control Z focus-view previous
2929+3030+riverctl map-pointer normal Super BTN_LEFT move-view
3131+riverctl map-pointer normal Super BTN_RIGHT resize-view
3232+3333+riverctl map normal Super+Shift Return zoom
3434+3535+3636+riverctl map normal Super X focus-output next
3737+riverctl map normal Super+Alt X focus-output previous
3838+riverctl map normal Super+Control X send-to-output next
3939+riverctl map normal Super+Control+Alt X send-to-output previous
4040+riverctl map normal Super+Shift+Control X send-to-output -current-tags next
4141+riverctl map normal Super+Shift+Control+Alt X send-to-output -current-tags previous
4242+4343+# This doesn't seem to work with these output names
4444+# riverctl declare-mode output-ops
4545+# riverctl map normal Super X enter-mode output-ops
4646+# riverctl map output-ops None 1 focus-output "LG Electronics LG HDR WFHD 0x0000B11B"
4747+# riverctl map output-ops None 2 focus-output "BNQ BenQ PD2700U ET87K04288SL0"
4848+# riverctl map output-ops None 3 focus-output "AOC 2460G4 0x0000075E"
4949+# riverctl map output-ops Shift 1 send-to-output "LG Electronics LG HDR WFHD 0x0000B11B"
5050+# riverctl map output-ops Shift 2 send-to-output "BNQ BenQ PD2700U ET87K04288SL0"
5151+# riverctl map output-ops Shift 3 send-to-output "AOC 2460G4 0x0000075E"
5252+# riverctl map output-ops None Escape enter-mode normal
5353+5454+for i in $(seq 1 9)
5555+do
5656+ tags=$((1 << ($i - 1)))
5757+5858+ # Super+Control+[1-9] to toggle focus of tag [0-8]
5959+ riverctl map normal Super $i toggle-focused-tags $tags
6060+6161+ # Super+Shift+Control+[1-9] to toggle tag [0-8] of focused view
6262+ riverctl map normal Super+Shift $i toggle-view-tags $tags
6363+6464+ # Super+[1-9] to focus tag [0-8]
6565+ riverctl map normal Super+Control $i set-focused-tags $tags
6666+6767+ # Super+Shift+[1-9] to tag focused view with tag [0-8]
6868+ riverctl map normal Super+Shift+Control $i set-view-tags $tags
6969+done
7070+7171+# Super+0 to focus all tags
7272+# Super+Shift+0 to tag focused view with all tags
7373+all_tags=$(((1 << 32) - 1))
7474+riverctl map normal Super 0 set-focused-tags $all_tags
7575+riverctl map normal Super+Shift 0 set-view-tags $all_tags
7676+7777+riverctl map normal Super+Control Escape exit
7878+riverctl map normal Super Q close
7979+8080+riverctl map normal Super F toggle-float
8181+riverctl map normal Super+Control F toggle-fullscreen
8282+8383+riverctl declare-mode passthrough
8484+riverctl map normal Super F12 enter-mode passthrough
8585+riverctl map passthrough Super F12 enter-mode normal
8686+8787+# Set background and border color
8888+# riverctl background-color 0x002b36
8989+riverctl border-color-focused 0x93a1a1
9090+riverctl border-color-unfocused 0x586e75
9191+9292+# # Set keyboard repeat rate
9393+# riverctl set-repeat 50 300
9494+9595+riverctl map normal Super T output-layout rivertile
9696+riverctl map normal Super+Control T output-layout none
9797+9898+riverctl map normal Super Up send-layout-cmd rivertile "main-location top"
9999+riverctl map normal Super Left send-layout-cmd rivertile "main-location left"
100100+riverctl map normal Super Down send-layout-cmd rivertile "main-location bottom"
101101+riverctl map normal Super Right send-layout-cmd rivertile "main-location right"
102102+103103+riverctl map normal Super Bracketleft send-layout-cmd rivertile "main-count -1"
104104+riverctl map normal Super Bracketright send-layout-cmd rivertile "main-count +1"
105105+riverctl map normal Super+Control Bracketleft send-layout-cmd rivertile "main-ratio -0.05"
106106+riverctl map normal Super+Control Bracketright send-layout-cmd rivertile "main-ratio +0.05"
107107+108108+riverctl map normal Super Space zoom
109109+riverctl map normal Super Comma focus-view previous
110110+riverctl map normal Super Period focus-view next
111111+riverctl map normal Super+Control Comma swap previous
112112+riverctl map normal Super+Control Period swap next