From 01349a3763cc5ecb3a251be4b580eb16d100cdfe Mon Sep 17 00:00:00 2001 From: zachir Date: Fri, 24 Feb 2023 01:31:39 -0600 Subject: add more keybindings/settings to river --- river/init | 49 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/river/init b/river/init index 9b699fb..40c09aa 100755 --- a/river/init +++ b/river/init @@ -10,8 +10,8 @@ # Note: the "$mod1" modifier is also known as Logo, GUI, Windows, Mod4, etc. -mod1="Super" -mod2="Alt" +mod1="Alt" +mod2="Super" # $mod1+Shift+Return to start an instance of foot (https://codeberg.org/dnkl/foot) riverctl map normal $mod1 Return spawn foot @@ -77,6 +77,10 @@ riverctl map-pointer normal $mod1 BTN_RIGHT resize-view # $mod1 + Middle Mouse Button to toggle float riverctl map-pointer normal $mod1 BTN_MIDDLE toggle-float +# Mouse rules +riverctl set-cursor-warp on-output-change +riverctl focus-follors-cursor normal + for i in $(seq 1 9) do tags=$((1 << ($i - 1))) @@ -96,10 +100,14 @@ done # $mod1+0 to focus all tags # $mod1+Shift+0 to tag focused view with all tags -all_tags=$(((1 << 32) - 1)) +all_tags=$(((1 << 9) - 1)) riverctl map normal $mod1 0 set-focused-tags $all_tags riverctl map normal $mod1+Shift 0 set-view-tags $all_tags +# scratchpad tags +riverctl map normal $mod1+$mod2+Control z spawn "river_sp -n z" +riverctl map normal $mod1+Control z spawn "river_sp -s z" + # $mod1+Space to toggle float riverctl map normal $mod1+Control Space toggle-float @@ -146,6 +154,28 @@ do riverctl map $mode None XF86MonBrightnessDown spawn 'bl -d 5' done +# add browser shortcuts +riverctl map normal $mod1+$mod2 1 spawn "bm -w" +riverctl map normal $mod1+$mod2 q spawn "qbc -w" +riverctl map normal $mod1+$mod2 w spawn "lwc -w" +riverctl map normal $mod1+$mod2 e spawn "ffc -w" + +# add other menu shortcuts +riverctl map normal $mod1+$mod2 p spawn passmenu +riverctl map normal $mod1 r spawn 'exec $(tofi-drun)' +riverctl map normal $mod1 d spawn 'exec $(tofi-run)' +riverctl map normal $mod1+$mod2+Control u spawn 'dmenuunicode -w' +riverctl map normal $mod1+$mod2 Comma spawn 'dmenumount -w' +riverctl map normal $mod1+$mod2 Period spawn 'dmenuumount -w' +riverctl map normal $mod1+$mod2 b spawn 'dmenu_books -w' +riverctl map normal $mod1+$mod2 u spawn 'mprisctl -w' + +# add other shortcuts +riverctl map normal $mod1 q spawn 'loginctl lock-session self' +riverctl map normal $mod1+$mod2 f spawn 'foot lfrun' +riverctl map normal $mod1+$mod2 m spawn 'volsv -t' +riverctl map normal $mod1+$mod2+Shift m spawn 'volsv -m' + # Set background and border color riverctl background-color 0x000000 riverctl border-color-focused 0x535d6c @@ -156,6 +186,17 @@ riverctl set-repeat 50 300 # Make certain views start floating riverctl float-filter-add app-id float +riverctl float-filter-add app-id "sphtop" +riverctl float-filter-add app-id "spterm" +riverctl float-filter-add app-id "sppmxr" +riverctl float-filter-add app-id "spblue" +riverctl float-filter-add app-id "spncmp" +riverctl float-filter-add app-id "spmutt" +riverctl float-filter-add app-id "spprof" +riverctl float-filter-add app-id "spirss" +riverctl float-filter-add app-id "sptodo" +riverctl float-filter-add app-id "sptrmc" +riverctl float-filter-add app-id "qpwgraph" riverctl float-filter-add title "popup title with spaces" # Set app-ids and titles of views which should use client side decorations @@ -165,3 +206,5 @@ riverctl csd-filter-add app-id "gedit" # River will send the process group of the init executable SIGTERM on exit. riverctl default-layout rivertile rivertile -view-padding 6 -outer-padding 6 & + +sh ~/.config/autostart.sh & -- cgit v1.2.3