Select the types of activity you want to include in your feed.
Use roc to configure river
I plan to do more in the future. Also I need to configure river to execute init.roc instead of init so I don't have to manually compile init.roc when I make a change
···11+#!/bin/sh
22+riverctl spawn "systemctl --user start river-session-pre.target"
33+riverctl spawn update-session-vars
44+riverctl spawn "systemctl --user start river-session.target"
55+riverctl spawn "swaybg -i ${HOME}/pic/wallpapers/dark/evie-s-Pb1KFv4tauY-unsplash.jpg -m fill"
66+riverctl spawn kanshi
77+riverctl spawn 'rivertile -outer-padding 0 -view-padding 0 -main-ratio 0.5'
88+99+riverctl xcursor-theme Adwaita 24
1010+1111+riverctl input pointer-1356-3570-Sony_Interactive_Entertainment_DualSense_Edge_Wireless_Controller_Touchpad events disabled
1212+1313+riverctl focus-follows-cursor normal
1414+1515+riverctl map normal Super Return spawn foot
1616+riverctl map normal Super R spawn bemenu-run.sh
1717+riverctl map normal Super E spawn 'wpctl set-mute @DEFAULT_SOURCE@ toggle'
1818+1919+riverctl map normal None Print spawn 'scr pic -c'
2020+riverctl map normal Super Print spawn 'scr pic -cd'
2121+2222+# riverctl map normal Super Space 'makoctl dismiss -a'
2323+2424+# riverctl map normal Super H focus-view left
2525+# riverctl map normal Super J focus-view down
2626+# riverctl map normal Super K focus-view up
2727+# riverctl map normal Super L focus-view right
2828+riverctl map normal Super Z focus-view next
2929+riverctl map normal Super+Control Z focus-view previous
3030+3131+riverctl map-pointer normal Super BTN_LEFT move-view
3232+riverctl map-pointer normal Super BTN_RIGHT resize-view
3333+3434+riverctl set-cursor-warp on-output-change
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 declare-mode special-tags
7878+riverctl map normal Super G enter-mode special-tags
7979+riverctl map special-tags None Escape enter-mode normal
8080+8181+keepassxc_tag=$((1 << (10 - 1)))
8282+riverctl map special-tags None k toggle-focused-tags $keepassxc_tag
8383+riverctl map special-tags Shift k toggle-view-tags $keepassxc_tag
8484+riverctl map special-tags Control k set-focused-tags $keepassxc_tag
8585+riverctl map special-tags Shift+Control k set-view-tags $keepassxc_tag
8686+8787+riverctl rule-add -app-id org.keepassxc.KeePassXC float
8888+riverctl rule-add -app-id org.keepassxc.KeePassXC -title "KeyChain.kdbx [Locked] - KeePassXC" tags $keepassxc_tag
8989+9090+thunderbird_tag=$((1 << (11 - 1)))
9191+riverctl map special-tags None t toggle-focused-tags $thunderbird_tag
9292+riverctl map special-tags Shift t toggle-view-tags $thunderbird_tag
9393+riverctl map special-tags Control t set-focused-tags $thunderbird_tag
9494+riverctl map special-tags Shift+Control t set-view-tags $thunderbird_tag
9595+9696+riverctl rule-add -app-id org.mozilla.Thunderbird tags $thunderbird_tag
9797+9898+for i in $(seq 1 9)
9999+do
100100+ tags=$((1 << ($i - 1)))
101101+102102+ riverctl map special-tags None $i toggle-focused-tags $tags
103103+ riverctl map special-tags Shift $i toggle-view-tags $tags
104104+ riverctl map special-tags Control $i set-focused-tags $tags
105105+ riverctl map special-tags Shift+Control $i set-view-tags $tags
106106+done
107107+108108+riverctl map normal Super+Control Escape exit
109109+riverctl map normal Super Q close
110110+111111+riverctl map normal Super F toggle-float
112112+riverctl map normal Super+Control F toggle-fullscreen
113113+114114+riverctl declare-mode passthrough
115115+riverctl map normal Super F12 enter-mode passthrough
116116+riverctl map passthrough Super F12 enter-mode normal
117117+118118+# Set background and border color
119119+# riverctl background-color 0x002b36
120120+riverctl border-color-focused 0x93a1a1
121121+riverctl border-color-unfocused 0x586e75
122122+123123+# # Set keyboard repeat rate
124124+# riverctl set-repeat 50 300
125125+126126+riverctl map normal Super T output-layout rivertile
127127+riverctl map normal Super+Control T output-layout none
128128+129129+riverctl map normal Super Up send-layout-cmd rivertile "main-location top"
130130+riverctl map normal Super Left send-layout-cmd rivertile "main-location left"
131131+riverctl map normal Super Down send-layout-cmd rivertile "main-location bottom"
132132+riverctl map normal Super Right send-layout-cmd rivertile "main-location right"
133133+134134+riverctl map normal Super Bracketleft send-layout-cmd rivertile "main-count -1"
135135+riverctl map normal Super Bracketright send-layout-cmd rivertile "main-count +1"
136136+riverctl map normal Super+Control Bracketleft send-layout-cmd rivertile "main-ratio -0.05"
137137+riverctl map normal Super+Control Bracketright send-layout-cmd rivertile "main-ratio +0.05"
138138+139139+riverctl map normal Super Space zoom
140140+riverctl map normal Super Comma focus-view previous
141141+riverctl map normal Super Period focus-view next
142142+riverctl map normal Super+Control Comma swap previous
143143+riverctl map normal Super+Control Period swap next
144144+145145+riverctl rule-add -app-id org.gnome.Nautilus float