mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-28 10:18:25 -05:00
river: update config
This commit is contained in:
parent
b0d2122117
commit
c933bc279c
@ -12,7 +12,7 @@ riverctl spawn 'mpd'
|
|||||||
riverctl spawn 'start_notify'
|
riverctl spawn 'start_notify'
|
||||||
riverctl spawn 'wl-paste -t text --watch clipman store'
|
riverctl spawn 'wl-paste -t text --watch clipman store'
|
||||||
riverctl spawn 'waybar'
|
riverctl spawn 'waybar'
|
||||||
riverctl spawn 'swayidle -w before-sleep swaylock'
|
# riverctl spawn 'swayidle -w before-sleep swaylock'
|
||||||
riverctl spawn 'mpDris2'
|
riverctl spawn 'mpDris2'
|
||||||
riverctl spawn 'wlwpp'
|
riverctl spawn 'wlwpp'
|
||||||
# riverctl spawn '/usr/libexec/xdg-desktop-portal-wlr'
|
# riverctl spawn '/usr/libexec/xdg-desktop-portal-wlr'
|
||||||
@ -57,32 +57,32 @@ riverctl map normal $mod Return spawn alacritty
|
|||||||
riverctl map normal $mod+Shift Return spawn foot
|
riverctl map normal $mod+Shift Return spawn foot
|
||||||
|
|
||||||
# Launcher
|
# Launcher
|
||||||
riverctl map normal $mod D spawn wofi --show=drun
|
riverctl map normal $mod D spawn 'wofi --show=drun'
|
||||||
riverctl map normal $mod+Control D spawn wofi --show=run
|
riverctl map normal $mod+Control D spawn 'wofi --show=run'
|
||||||
|
|
||||||
# Web search
|
# Web search
|
||||||
riverctl map normal $mod+Mod1 S spawn searchmenu --wofi
|
riverctl map normal $mod+Mod1 S spawn 'searchmenu --wofi'
|
||||||
riverctl map normal $mod+Control S spawn bukumenu --wofi
|
riverctl map normal $mod+Control S spawn 'bukumenu --wofi'
|
||||||
|
|
||||||
# Manga
|
# Manga
|
||||||
riverctl map normal $mod+Mod1 M spawn mangamenu --wofi
|
riverctl map normal $mod+Mod1 M spawn 'mangamenu --wofi'
|
||||||
|
|
||||||
# Clipboard manager
|
# Clipboard manager
|
||||||
riverctl map normal $mod+Mod1 D spawn clipboard --wofi
|
riverctl map normal $mod+Mod1 D spawn 'clipboard --wofi'
|
||||||
riverctl map normal $mod+Mod1 C spawn clipboard --clear
|
riverctl map normal $mod+Mod1 C spawn 'clipboard --clear'
|
||||||
riverctl map normal $mod C spawn clipman clear --tool wofi
|
riverctl map normal $mod C spawn 'clipman clear --tool wofi'
|
||||||
|
|
||||||
# Dismiss notifications
|
# Dismiss notifications
|
||||||
riverctl map normal $mod+Mod1 N spawn dismiss_notify
|
riverctl map normal $mod+Mod1 N spawn dismiss_notify
|
||||||
|
|
||||||
# Emacs
|
# Emacs
|
||||||
riverctl map normal $mod+Mod1 E spawn emacsclient -c -a emacs
|
riverctl map normal $mod+Mod1 E spawn 'emacsclient -c -a emacs'
|
||||||
|
|
||||||
# Screenshot
|
# Screenshot
|
||||||
riverctl map normal $mod Print spawn screenshot --full
|
riverctl map normal $mod Print spawn 'screenshot --full'
|
||||||
riverctl map normal None Print spawn screenshot --region
|
riverctl map normal None Print spawn 'screenshot --region'
|
||||||
riverctl map normal Mod1 Print spawn screenshot --region-optional
|
riverctl map normal Mod1 Print spawn 'screenshot --region-optional'
|
||||||
riverctl map normal Control Print spawn screeshot --full-optional
|
riverctl map normal Control Print spawn 'screeshot --full-optional'
|
||||||
|
|
||||||
# Mod+Q to close the focused view
|
# Mod+Q to close the focused view
|
||||||
riverctl map normal $mod Q close
|
riverctl map normal $mod Q close
|
||||||
@ -114,12 +114,12 @@ riverctl map normal $mod+Shift Comma send-to-output previous
|
|||||||
riverctl map normal $mod E zoom
|
riverctl map normal $mod E zoom
|
||||||
|
|
||||||
# Mod+H and Mod+L to decrease/increase the main_factor value of rivertile by 0.02
|
# Mod+H and Mod+L to decrease/increase the main_factor value of rivertile by 0.02
|
||||||
riverctl map normal $mod H mod-layout-value rivertile fixed main_factor -0.02
|
riverctl map normal $mod H send-layout-cmd rivertile 'main-ratio -0.02'
|
||||||
riverctl map normal $mod L mod-layout-value rivertile fixed main_factor +0.02
|
riverctl map normal $mod L send-layout-cmd rivertile 'main-ratio +0.02'
|
||||||
|
|
||||||
# Mod+Shift+H and Mod+Shift+L to increment/decrement the main_count value of rivertile
|
# Mod+Shift+H and Mod+Shift+L to increment/decrement the main_count value of rivertile
|
||||||
riverctl map normal $mod+Shift H mod-layout-value rivertile int main_count +1
|
riverctl map normal $mod+Shift H send-layout-cmd rivertile 'main-count +1'
|
||||||
riverctl map normal $mod+Shift L mod-layout-value rivertile int main_count -1
|
riverctl map normal $mod+Shift L send-layout-cmd rivertile 'main-count -1'
|
||||||
|
|
||||||
# Mod+Alt+{H,J,K,L} to move views
|
# Mod+Alt+{H,J,K,L} to move views
|
||||||
riverctl map normal $mod+Mod1 H move left 100
|
riverctl map normal $mod+Mod1 H move left 100
|
||||||
@ -145,54 +145,28 @@ riverctl map-pointer normal $mod BTN_LEFT move-view
|
|||||||
# Mod + Right Mouse Button to resize views
|
# Mod + Right Mouse Button to resize views
|
||||||
riverctl map-pointer normal $mod BTN_RIGHT resize-view
|
riverctl map-pointer normal $mod BTN_RIGHT resize-view
|
||||||
|
|
||||||
# Mod+[1-9] to focus tag [0-8]
|
for i in $(seq 1 9)
|
||||||
riverctl map normal $mod 1 set-focused-tags 1
|
do
|
||||||
riverctl map normal $mod 2 set-focused-tags 2
|
tags=$((1 << (i - 1)))
|
||||||
riverctl map normal $mod 3 set-focused-tags 4
|
|
||||||
riverctl map normal $mod 4 set-focused-tags 8
|
|
||||||
riverctl map normal $mod 5 set-focused-tags 16
|
|
||||||
riverctl map normal $mod 6 set-focused-tags 32
|
|
||||||
riverctl map normal $mod 7 set-focused-tags 64
|
|
||||||
riverctl map normal $mod 8 set-focused-tags 128
|
|
||||||
riverctl map normal $mod 9 set-focused-tags 256
|
|
||||||
|
|
||||||
# Mod+Shift+[1-9] to tag focused view with tag [0-8]
|
# Mod+[1-9] to focus tag [0-8]
|
||||||
riverctl map normal $mod+Shift 1 set-view-tags 1
|
riverctl map normal $mod $i set-focused-tags $tags
|
||||||
riverctl map normal $mod+Shift 2 set-view-tags 2
|
|
||||||
riverctl map normal $mod+Shift 3 set-view-tags 4
|
|
||||||
riverctl map normal $mod+Shift 4 set-view-tags 8
|
|
||||||
riverctl map normal $mod+Shift 5 set-view-tags 16
|
|
||||||
riverctl map normal $mod+Shift 6 set-view-tags 32
|
|
||||||
riverctl map normal $mod+Shift 7 set-view-tags 64
|
|
||||||
riverctl map normal $mod+Shift 8 set-view-tags 128
|
|
||||||
riverctl map normal $mod+Shift 9 set-view-tags 256
|
|
||||||
|
|
||||||
# Mod+Ctrl+[1-9] to toggle focus of tag [0-8]
|
# Mod+Shift+[1-9] to tag focused view with tag [0-8]
|
||||||
riverctl map normal $mod+Control 1 toggle-focused-tags 1
|
riverctl map normal $mod+Shift $i set-view-tags $tags
|
||||||
riverctl map normal $mod+Control 2 toggle-focused-tags 2
|
|
||||||
riverctl map normal $mod+Control 3 toggle-focused-tags 4
|
|
||||||
riverctl map normal $mod+Control 4 toggle-focused-tags 8
|
|
||||||
riverctl map normal $mod+Control 5 toggle-focused-tags 16
|
|
||||||
riverctl map normal $mod+Control 6 toggle-focused-tags 32
|
|
||||||
riverctl map normal $mod+Control 7 toggle-focused-tags 64
|
|
||||||
riverctl map normal $mod+Control 8 toggle-focused-tags 128
|
|
||||||
riverctl map normal $mod+Control 9 toggle-focused-tags 256
|
|
||||||
|
|
||||||
# Mod+Shift+Ctrl+[1-9] to toggle tag [0-8] of focused view
|
# Mod+Ctrl+[1-9] to toggle focus of tag [0-8]
|
||||||
riverctl map normal $mod+Shift+Control 1 toggle-view-tags 1
|
riverctl map normal $mod+Control $i toggle-focused-tags $tags
|
||||||
riverctl map normal $mod+Shift+Control 2 toggle-view-tags 2
|
|
||||||
riverctl map normal $mod+Shift+Control 3 toggle-view-tags 4
|
# Mod+Shift+Ctrl+[1-9] to toggle tag [0-8] of focused view
|
||||||
riverctl map normal $mod+Shift+Control 4 toggle-view-tags 8
|
riverctl map normal $mod+Shift+Control $i toggle-view-tags $tags
|
||||||
riverctl map normal $mod+Shift+Control 5 toggle-view-tags 16
|
done
|
||||||
riverctl map normal $mod+Shift+Control 6 toggle-view-tags 32
|
|
||||||
riverctl map normal $mod+Shift+Control 7 toggle-view-tags 64
|
|
||||||
riverctl map normal $mod+Shift+Control 8 toggle-view-tags 128
|
|
||||||
riverctl map normal $mod+Shift+Control 9 toggle-view-tags 256
|
|
||||||
|
|
||||||
# Mod+0 to focus all tags
|
# Mod+0 to focus all tags
|
||||||
riverctl map normal $mod 0 set-focused-tags 511
|
|
||||||
# Mod+Shift+0 to tag focused view with all tags
|
# Mod+Shift+0 to tag focused view with all tags
|
||||||
riverctl map normal $mod+Shift 0 set-view-tags 511
|
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
|
||||||
|
|
||||||
# Mod+Space to toggle float
|
# Mod+Space to toggle float
|
||||||
riverctl map normal $mod Space toggle-float
|
riverctl map normal $mod Space toggle-float
|
||||||
@ -201,10 +175,10 @@ riverctl map normal $mod Space toggle-float
|
|||||||
riverctl map normal $mod F toggle-fullscreen
|
riverctl map normal $mod F toggle-fullscreen
|
||||||
|
|
||||||
# Control+Alt+{H,J,K,L} to change layout orientation
|
# Control+Alt+{H,J,K,L} to change layout orientation
|
||||||
riverctl map normal Mod1+Control H set-layout-value rivertile string main_location left
|
riverctl map normal Mod1+Control H send-layout-cmd rivertile 'main-location left'
|
||||||
riverctl map normal Mod1+Control J set-layout-value rivertile string main_location bottom
|
riverctl map normal Mod1+Control J send-layout-cmd rivertile 'main-location bottom'
|
||||||
riverctl map normal Mod1+Control K set-layout-value rivertile string main_location top
|
riverctl map normal Mod1+Control K send-layout-cmd rivertile 'main-location top'
|
||||||
riverctl map normal Mod1+Control L set-layout-value rivertile string main_location right
|
riverctl map normal Mod1+Control L send-layout-cmd rivertile 'main-location right'
|
||||||
|
|
||||||
# Declare a passthrough mode. This mode has only a single mapping to return to
|
# Declare a passthrough mode. This mode has only a single mapping to return to
|
||||||
# normal mode. This makes it useful for testing a nested wayland compositor
|
# normal mode. This makes it useful for testing a nested wayland compositor
|
||||||
@ -221,7 +195,7 @@ riverctl map passthrough $mod F11 enter-mode normal
|
|||||||
for mode in normal locked
|
for mode in normal locked
|
||||||
do
|
do
|
||||||
# Eject the optical drive
|
# Eject the optical drive
|
||||||
riverctl map $mode None XF86Eject spawn eject -T
|
riverctl map $mode None XF86Eject spawn 'eject -T'
|
||||||
|
|
||||||
# Control pulse audio volume
|
# Control pulse audio volume
|
||||||
riverctl map $mode None XF86AudioRaiseVolume spawn 'volumecontrol increase && pkill -x -RTMIN+11 waybar'
|
riverctl map $mode None XF86AudioRaiseVolume spawn 'volumecontrol increase && pkill -x -RTMIN+11 waybar'
|
||||||
@ -229,14 +203,14 @@ do
|
|||||||
riverctl map $mode None XF86AudioMute spawn 'volumecontrol toggle && pkill -x -RTMIN+11 waybar'
|
riverctl map $mode None XF86AudioMute spawn 'volumecontrol toggle && pkill -x -RTMIN+11 waybar'
|
||||||
|
|
||||||
# Control MPRIS aware media players with playerctl (https://github.com/altdesktop/playerctl)
|
# Control MPRIS aware media players with playerctl (https://github.com/altdesktop/playerctl)
|
||||||
riverctl map $mode None XF86AudioMedia spawn playerctl play-pause
|
riverctl map $mode None XF86AudioMedia spawn 'playerctl play-pause'
|
||||||
riverctl map $mode None XF86AudioPlay 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 XF86AudioPrev spawn 'playerctl previous'
|
||||||
riverctl map $mode None XF86AudioNext spawn playerctl next
|
riverctl map $mode None XF86AudioNext spawn 'playerctl next'
|
||||||
|
|
||||||
# Control screen backlight brighness
|
# Control screen backlight brighness
|
||||||
riverctl map $mode None XF86MonBrightnessUp spawn brightness up
|
riverctl map $mode None XF86MonBrightnessUp spawn 'brightness up'
|
||||||
riverctl map $mode None XF86MonBrightnessDown spawn brightness down
|
riverctl map $mode None XF86MonBrightnessDown spawn 'brightness down'
|
||||||
done
|
done
|
||||||
|
|
||||||
# Rules ────────────────────────────────────────────────────────────────────────
|
# Rules ────────────────────────────────────────────────────────────────────────
|
||||||
@ -262,4 +236,4 @@ riverctl csd-filter-add "swappy"
|
|||||||
|
|
||||||
# Default layout
|
# Default layout
|
||||||
riverctl default-layout rivertile
|
riverctl default-layout rivertile
|
||||||
exec rivertile -view-padding 4 -outer-padding 4 -main-location left -main-count 1 -main-factor 0.54
|
exec rivertile -view-padding 4 -outer-padding 4 -main-location left -main-count 1 -main-ratio 0.54
|
||||||
|
Loading…
Reference in New Issue
Block a user