river config
This commit is contained in:
parent
c5d50dfb57
commit
461ff88f90
3 changed files with 164 additions and 0 deletions
44
.config/river/init
Executable file
44
.config/river/init
Executable file
|
@ -0,0 +1,44 @@
|
|||
#!/bin/sh
|
||||
|
||||
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river
|
||||
riverctl spawn "pipewire"
|
||||
riverctl spawn "/usr/libexec/xdg-desktop-portal-wlr"
|
||||
|
||||
~/.config/river/load-colors
|
||||
|
||||
brillo -I
|
||||
riverctl spawn "foot --server"
|
||||
riverctl spawn "mako"
|
||||
riverctl spawn "gammastep -l -34.5:-58.4"
|
||||
riverctl spawn "syncthing -no-browser"
|
||||
riverctl spawn "river-tag-overlay"
|
||||
# yambar spawned by load-colors
|
||||
riverctl spawn "kanshi"
|
||||
|
||||
riverctl spawn 'swayidle -w \
|
||||
timeout 250 "brillo -O; brillo -S 5" resume "brillo -I" \
|
||||
timeout 300 "lock" \
|
||||
timeout 500 "lock && doas pm-suspend" \
|
||||
before-sleep "lock" \
|
||||
after-resume "brillo -I" \
|
||||
lock "lock"'
|
||||
|
||||
# riverctl spawn "swaybg -m fill -i ~/Pictures/flower.jpg"
|
||||
|
||||
riverctl set-repeat 30 190
|
||||
|
||||
riverctl xcursor-theme Adwaita
|
||||
|
||||
riverctl input "2:10:TPPS/2_IBM_TrackPoint" pointer-accel 0.5
|
||||
|
||||
riverctl float-filter-add "float"
|
||||
riverctl float-filter-add "popup"
|
||||
riverctl float-filter-add "info"
|
||||
|
||||
riverctl float-filter-add title Picture-in-Picture
|
||||
riverctl float-filter-add title "Firefox — Sharing Indicator"
|
||||
|
||||
~/.config/river/keys
|
||||
|
||||
riverctl default-layout stacktile
|
||||
exec stacktile --per-tag-config --drop-empty-configs --outer-padding=0 --inner-padding=5 --primary-sublayout=stack
|
112
.config/river/keys
Executable file
112
.config/river/keys
Executable file
|
@ -0,0 +1,112 @@
|
|||
#!/bin/sh
|
||||
|
||||
mod="Mod4"
|
||||
|
||||
riverctl map normal $mod Q close
|
||||
|
||||
riverctl map normal $mod+Shift E exit
|
||||
|
||||
riverctl map normal $mod J focus-view next
|
||||
riverctl map normal $mod K focus-view previous
|
||||
|
||||
riverctl map normal $mod+Shift J swap next
|
||||
riverctl map normal $mod+Shift K swap previous
|
||||
|
||||
# Mod+Period and Mod+Comma to focus the next/previous output
|
||||
#riverctl map normal $mod Period focus-output next
|
||||
#riverctl map normal $mod Comma focus-output previous
|
||||
|
||||
# Mod+Shift+{Period,Comma} to send the focused view to the next/previous output
|
||||
#riverctl map normal $mod+Shift Period send-to-output next
|
||||
#riverctl map normal $mod+Shift Comma send-to-output previous
|
||||
|
||||
riverctl map normal $mod Return zoom
|
||||
|
||||
riverctl map normal $mod H send-layout-cmd stacktile "primary_ratio -0.05"
|
||||
riverctl map normal $mod L send-layout-cmd stacktile "primary_ratio +0.05"
|
||||
riverctl map normal $mod+Shift H send-layout-cmd stacktile "primary_count +1"
|
||||
riverctl map normal $mod+Shift L send-layout-cmd stacktile "primary_count -1"
|
||||
|
||||
riverctl declare-mode move-resize
|
||||
riverctl map normal $mod R enter-mode move-resize
|
||||
|
||||
riverctl map move-resize $mod R enter-mode normal
|
||||
riverctl map move-resize None Escape enter-mode normal
|
||||
riverctl map move-resize None Return enter-mode normal
|
||||
|
||||
riverctl map move-resize None H move left 100
|
||||
riverctl map move-resize None J move down 100
|
||||
riverctl map move-resize None K move up 100
|
||||
riverctl map move-resize None L move right 100
|
||||
|
||||
riverctl map move-resize Control H snap left
|
||||
riverctl map move-resize Control J snap down
|
||||
riverctl map move-resize Control K snap up
|
||||
riverctl map move-resize Control L snap right
|
||||
|
||||
riverctl map move-resize Shift H resize horizontal -100
|
||||
riverctl map move-resize Shift J resize vertical 100
|
||||
riverctl map move-resize Shift K resize vertical -100
|
||||
riverctl map move-resize Shift L resize horizontal 100
|
||||
|
||||
riverctl map-pointer normal $mod BTN_LEFT move-view
|
||||
riverctl map-pointer normal $mod BTN_RIGHT resize-view
|
||||
|
||||
define_tag() {
|
||||
riverctl map normal $mod $2 set-focused-tags $1
|
||||
riverctl map normal $mod+Shift $2 set-view-tags $1
|
||||
riverctl map normal $mod+Control $2 toggle-focused-tags $1
|
||||
riverctl map normal $mod+Shift+Control $2 toggle-view-tags $1
|
||||
}
|
||||
|
||||
define_tag $((1 << 0)) U
|
||||
define_tag $((1 << 1)) I
|
||||
define_tag $((1 << 2)) O
|
||||
define_tag $((1 << 3)) P
|
||||
define_tag $((1 << 4)) Y
|
||||
define_tag $((1 << 5)) Comma
|
||||
define_tag $((1 << 6)) Period
|
||||
define_tag $((1 << 7)) Slash
|
||||
|
||||
all_tags=$(((1 << 32) - 1))
|
||||
riverctl map normal $mod 0 set-focused-tags $all_tags
|
||||
riverctl map normal $mod+Shift 0 set-view-tags $all_tags
|
||||
|
||||
riverctl map normal $mod Space toggle-float
|
||||
riverctl map normal $mod F toggle-fullscreen
|
||||
|
||||
riverctl map normal $mod Up send-layout-cmd stacktile "primary_position top"
|
||||
riverctl map normal $mod Right send-layout-cmd stacktile "primary_position right"
|
||||
riverctl map normal $mod Down send-layout-cmd stacktile "primary_position bottom"
|
||||
riverctl map normal $mod Left send-layout-cmd stacktile "primary_position left"
|
||||
riverctl map normal $mod M send-layout-cmd stacktile "all_primary toggle"
|
||||
|
||||
riverctl declare-mode passthrough
|
||||
riverctl map normal $mod F11 enter-mode passthrough
|
||||
|
||||
riverctl map passthrough $mod F11 enter-mode normal
|
||||
|
||||
for mode in normal locked
|
||||
do
|
||||
# https://github.com/cdemoulins/pamixer
|
||||
riverctl map $mode None XF86AudioRaiseVolume spawn 'pamixer -i 5'
|
||||
riverctl map $mode None XF86AudioLowerVolume spawn 'pamixer -d 5'
|
||||
riverctl map $mode None XF86AudioMute spawn 'pamixer --toggle-mute'
|
||||
riverctl map $mode None XF86AudioMicMute spawn 'pamixer --default-source --toggle-mute'
|
||||
|
||||
# https://github.com/altdesktop/playerctl
|
||||
riverctl map $mode None XF86AudioMedia spawn 'playerctl play-pause'
|
||||
riverctl map $mode None XF86AudioPlay spawn 'playerctl play-pause'
|
||||
riverctl map $mode None XF86AudioPrev spawn 'playerctl previous'
|
||||
riverctl map $mode None XF86AudioNext spawn 'playerctl next'
|
||||
|
||||
riverctl map $mode None XF86MonBrightnessUp spawn 'brillo -A 5; brillo -O'
|
||||
riverctl map $mode None XF86MonBrightnessDown spawn 'brillo -U 5; brillo -O'
|
||||
done
|
||||
|
||||
riverctl map normal $mod+Shift N spawn lock
|
||||
riverctl map normal $mod+Shift M spawn 'lock && doas pm-suspend'
|
||||
riverctl map normal $mod+Shift T spawn footclient
|
||||
riverctl map normal $mod+Shift Return spawn fuzzel-run
|
||||
riverctl map normal None Print spawn 'grimshot copy area'
|
||||
|
8
.config/river/load-colors
Executable file
8
.config/river/load-colors
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
. ~/.config/river/colors
|
||||
|
||||
riverctl background-color 0x$bg
|
||||
riverctl border-color-focused 0x$hl
|
||||
riverctl border-color-unfocused 0x$bg2
|
||||
|
||||
riverctl spawn yambar-run
|
Loading…
Reference in a new issue