Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- riverctl spawn "dbus-update-activation-environment SEATD_SOCK DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river"
- #-- defaults
- mod='Mod4'
- touchpad='2:7:SynPS/2_Synaptics_TouchPad'
- nipple='2:10:TPPS/2_Elan_TrackPoint'
- dev=
- m() { riverctl map normal $mod $@; }
- ms() { riverctl map normal $mod+Shift $@; }
- mc() { riverctl map normal $mod+Control $@; }
- ma() { riverctl map normal $mod+Mod1 $@; }
- msc() { riverctl map normal $mod+Shift+Control $@; }
- msa() { riverctl map normal $mod+Shift+Mod1 $@; }
- t() { riverctl map normal $mod $1 spawn "tilers $2"; }
- ts() { riverctl map normal $mod+Shift $1 spawn "tilers $2"; }
- tc() { riverctl map normal $mod+Control $1 spawn "tilers $2"; }
- input() { riverctl input $dev "$@"; }
- run_shot() { riverctl map shot $mod $@; }
- riverctl focus-follows-cursor normal
- riverctl default-layout rivertile
- riverctl attach-mode bottom
- riverctl xcursor-theme 'McMojave Cursors'
- riverctl declare-mode shot
- riverctl declare-mode stacktile
- #-- inputs
- riverctl set-repeat 40 300
- dev=$touchpad
- input pointer-accel 0.7
- input accel-profile adaptive
- input disable-while-type enabled
- input natural-scroll enabled
- input tap enabled
- input tap-button-map left-right-middle
- input middle-emulation enabled
- dev=$nipple
- input pointer-accel 0.7
- #-- mappings
- m Return spawn foot
- m D spawn bemenu-run
- ms D spawn passmenu
- msc Q exit
- m Q close
- ms R spawn "~/.config/river/init"
- m J focus-view next
- m K focus-view previous
- ms J swap next
- ms K swap previous
- m F toggle-float
- ms F toggle-fullscreen
- ma H move left 100
- ma J move down 100
- ma K move up 100
- ma L move right 100
- msa H snap left
- msa J snap down
- msa K snap up
- msa L snap right
- ms S enter-mode shot
- run_shot F spawn "screenshot -f"
- run_shot S spawn "screenshot -s"
- #-- tilers
- # ratios
- t U u
- ts U U
- t I i
- ts I I
- # counts
- t N n
- ts N N
- t M m
- ts M M
- # locations
- tc H H
- tc J J
- tc K K
- tc L L
- #-- mouse
- riverctl map-pointer normal $mod BTN_LEFT move-view
- riverctl map-pointer normal $mod BTN_RIGHT resize-view
- # map it to acpi cmon...
- for mode in normal locked; do
- riverctl map $mode None XF86AudioRaiseVolume spawn 'volume +5'
- riverctl map $mode None XF86AudioLowerVolume spawn 'volume -5'
- riverctl map $mode None XF86AudioMute spawn 'volume -m'
- done
- #-- tags
- for i in $(seq 1 9); do
- tags=$((1 << ($i - 1)))
- # focus tag
- m $i set-focused-tags $tags
- # set tag to focused view
- ms $i set-view-tags $tags
- # toggle focus of tag
- mc $i toggle-focused-tags $tags
- # toggle tag of focused view
- msc $i toggle-view-tags $tags
- done
- # show all tags/move to all tags
- all_tags=$(((1 << 32) - 1))
- m 0 set-focused-tags $all_tags
- ms 0 set-view-tags $all_tags
- #-- default layout(errr)
- riverctl spawn 'rivertile -view-padding 6 -outer-padding 6'
- #-- start progams
- riverctl spawn 'autostart'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement