river: Fix riverctl formatting
This commit is contained in:
parent
438547251a
commit
0942c72714
1 changed files with 29 additions and 35 deletions
|
@ -80,12 +80,6 @@ riverctl map normal $mod N spawn "dunstctl close"
|
||||||
riverctl map normal $mod+Shift N spawn "dunstctl close-all"
|
riverctl map normal $mod+Shift N spawn "dunstctl close-all"
|
||||||
riverctl map normal $mod+Control N spawn "dunstctl history-pop"
|
riverctl map normal $mod+Control N spawn "dunstctl history-pop"
|
||||||
|
|
||||||
# # Clear clipboard
|
|
||||||
# riverctl map normal $mod BackSpace spawn 'wl-copy -c && printf ''|xclip -selection c'
|
|
||||||
|
|
||||||
# # PixelColor script
|
|
||||||
# riverctl map normal "Mod1" C spawn 'bash ~/.config/bin/pixelcolor'
|
|
||||||
|
|
||||||
# MOVEMENT
|
# MOVEMENT
|
||||||
# focus the next/previous view in the layout stack
|
# focus the next/previous view in the layout stack
|
||||||
riverctl map normal $mod J focus-view next
|
riverctl map normal $mod J focus-view next
|
||||||
|
@ -152,20 +146,20 @@ riverctl map normal $mod+Shift Comma send-to-output previous
|
||||||
|
|
||||||
# set up 10 tags (with '0' opening the 10th one)
|
# set up 10 tags (with '0' opening the 10th one)
|
||||||
for i in $(seq 0 9); do
|
for i in $(seq 0 9); do
|
||||||
tags=$((1 << (i - 1)))
|
tags=$((1 << (i - 1)))
|
||||||
if [ "$i" -eq 0 ]; then tags=$((1 << 9)); fi
|
if [ "$i" -eq 0 ]; then tags=$((1 << 9)); fi
|
||||||
|
|
||||||
# Mod+[1-9] to focus tag [0-8]
|
# Mod+[1-9] to focus tag [0-8]
|
||||||
riverctl map normal $mod "$i" set-focused-tags $tags
|
riverctl map normal $mod "$i" set-focused-tags $tags
|
||||||
|
|
||||||
# Mod+Shift+[1-9] to tag focused view with tag [0-8]
|
# Mod+Shift+[1-9] to tag focused view with tag [0-8]
|
||||||
riverctl map normal $mod+Shift "$i" set-view-tags $tags
|
riverctl map normal $mod+Shift "$i" set-view-tags $tags
|
||||||
|
|
||||||
# Mod+Ctrl+[1-9] to toggle focus of tag [0-8]
|
# Mod+Ctrl+[1-9] to toggle focus of tag [0-8]
|
||||||
riverctl map normal $mod+Control "$i" toggle-focused-tags $tags
|
riverctl map normal $mod+Control "$i" toggle-focused-tags $tags
|
||||||
|
|
||||||
# Mod+Shift+Ctrl+[1-9] to toggle tag [0-8] of focused view
|
# Mod+Shift+Ctrl+[1-9] to toggle tag [0-8] of focused view
|
||||||
riverctl map normal $mod+Shift+Control "$i" toggle-view-tags $tags
|
riverctl map normal $mod+Shift+Control "$i" toggle-view-tags $tags
|
||||||
done
|
done
|
||||||
|
|
||||||
# focus all tags
|
# focus all tags
|
||||||
|
@ -177,22 +171,22 @@ riverctl map normal $mod+Shift equal set-view-tags $all_tags
|
||||||
# Various media key mapping examples for both normal and locked mode which do
|
# Various media key mapping examples for both normal and locked mode which do
|
||||||
# not have a modifier
|
# not have a modifier
|
||||||
for mode in normal locked; do
|
for mode in normal locked; 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'
|
||||||
|
|
||||||
riverctl map $mode None XF86AudioRaiseVolume spawn 'pactl set-sink-volume @DEFAULT_SINK@ +5%'
|
riverctl map $mode None XF86AudioRaiseVolume spawn 'pactl set-sink-volume @DEFAULT_SINK@ +5%'
|
||||||
riverctl map $mode None XF86AudioLowerVolume spawn 'pactl set-sink-volume @DEFAULT_SINK@ -5%'
|
riverctl map $mode None XF86AudioLowerVolume spawn 'pactl set-sink-volume @DEFAULT_SINK@ -5%'
|
||||||
riverctl map $mode None XF86AudioMute spawn 'pactl set-sink-mute @DEFAULT_SINK@ toggle'
|
riverctl map $mode None XF86AudioMute spawn 'pactl set-sink-mute @DEFAULT_SINK@ toggle'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
||||||
# You can control screen backlight brighness with light (https://github.com/haikarainen/light); but we prefer brightnessctl
|
# You can control screen backlight brighness with light (https://github.com/haikarainen/light); but we prefer brightnessctl
|
||||||
riverctl map $mode None XF86MonBrightnessUp spawn 'brightnessctl set 10%+'
|
riverctl map $mode None XF86MonBrightnessUp spawn 'brightnessctl set 10%+'
|
||||||
riverctl map $mode None XF86MonBrightnessDown spawn 'brightnessctl set 10%-'
|
riverctl map $mode None XF86MonBrightnessDown spawn 'brightnessctl set 10%-'
|
||||||
done
|
done
|
||||||
|
|
||||||
# The scratchpad will live on an unused tag. Which tags are used depends on your
|
# The scratchpad will live on an unused tag. Which tags are used depends on your
|
||||||
|
@ -216,14 +210,14 @@ riverctl spawn-tagmask ${all_but_scratch_tag}
|
||||||
# device (touchscreen)
|
# device (touchscreen)
|
||||||
# enable touch clicking for touchpads
|
# enable touch clicking for touchpads
|
||||||
for pad in $(riverctl list-inputs | grep -i touchpad); do
|
for pad in $(riverctl list-inputs | grep -i touchpad); do
|
||||||
riverctl input "$pad" events enabled
|
riverctl input "$pad" events enabled
|
||||||
riverctl input "$pad" tap enabled
|
riverctl input "$pad" tap enabled
|
||||||
done
|
done
|
||||||
for pad in $(riverctl list-inputs | grep -i touchscreen); do
|
for pad in $(riverctl list-inputs | grep -i touchscreen); do
|
||||||
riverctl input "$pad" events enabled
|
riverctl input "$pad" events enabled
|
||||||
riverctl input "$pad" tap enabled
|
riverctl input "$pad" tap enabled
|
||||||
riverctl input "$pad" drag enabled
|
riverctl input "$pad" drag enabled
|
||||||
riverctl input "$pad" pointer-accel 0.5
|
riverctl input "$pad" pointer-accel 0.5
|
||||||
done
|
done
|
||||||
|
|
||||||
setxkbmap -option "compose:menu"
|
setxkbmap -option "compose:menu"
|
||||||
|
|
Loading…
Reference in a new issue