Something went wrong. Try again.
my dotfiles!
Something went wrong. Try again.
4.2 kB · 127 lines
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128#!/usr/bin/env fish
riverctl background-color 0xfaf4edriverctl spawn swaylock
# fix some environment issuesdbus-update-activation-environment --systemd XCURSOR_THEME XCURSOR_SIZE DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
riverctl map normal None Print spawn 'grim -l 0 -g "$(slurp)" - | wl-copy --type image/png'riverctl map normal Super R spawn fuzzelriverctl map normal Super+Shift Return spawn foot
riverctl map normal Super Q closeriverctl map normal Control+Shift Escape spawn "systemctl suspend && swaylock"riverctl map normal Control+Alt Escape exit
riverctl map normal Super J focus-view nextriverctl map normal Super K focus-view previous
riverctl map normal Super+Shift J swap nextriverctl map normal Super+Shift K swap previous
riverctl map normal Super Period focus-output nextriverctl map normal Super Comma focus-output previous
riverctl map normal Super+Shift Period send-to-output nextriverctl map normal Super+Shift Comma send-to-output previous
riverctl map normal Super Return zoom
riverctl map normal Super H send-layout-cmd wideriver "--ratio -0.05"riverctl map normal Super L send-layout-cmd wideriver "--ratio +0.05"
riverctl map normal Super+Shift L send-layout-cmd wideriver "--count +1"riverctl map normal Super+Shift H send-layout-cmd wideriver "--count -1"
riverctl map-pointer normal Super BTN_LEFT move-view
riverctl map-pointer normal Super BTN_RIGHT resize-view
riverctl map-pointer normal Super BTN_MIDDLE toggle-float
for i in (seq 1 10) set -l tags (echo "print(1 << ($i - 1))" | lua) echo $tags set -l name $i if test $i -eq 10 set name "S" end
# Super+[1-9] -> focus tag [0-8] riverctl map normal Super $name spawn "riverctl set-focused-tags $tags & ~/.config/scripts/set-background.fish $i"
# Super+Shift+[1-9] -> tag focused view with tag [0-8] riverctl map normal Super+Shift $name set-view-tags $tags
# Super+Control+[1-9] -> toggle focus of tag [0-8] riverctl map normal Super+Control $name toggle-focused-tags $tags
# Super+Shift+Control+[1-9] -> toggle tag [0-8] of focused view riverctl map normal Super+Shift+Control $name toggle-view-tags $tagsend
# Super+0 -> focus all tags# Super+Shift+0 -> tag focused view with all tags# (1 << 32) - 1set -l all_tags 4294967295riverctl map normal Super 0 set-focused-tags $all_tagsriverctl map normal Super+Shift 0 set-view-tags $all_tags
riverctl map normal Super Space toggle-floatriverctl map normal Super F toggle-fullscreen
riverctl map normal Super Up send-layout-cmd rivertile "main-location top"riverctl map normal Super Right send-layout-cmd rivertile "main-location right"riverctl map normal Super Down send-layout-cmd rivertile "main-location bottom"riverctl map normal Super Left send-layout-cmd rivertile "main-location left"
for mode in normal locked # volume control riverctl map $mode None XF86AudioRaiseVolume spawn "wpctl set-volume @DEFAULT_SINK@ 5%+" riverctl map $mode None XF86AudioLowerVolume spawn "wpctl set-volume @DEFAULT_SINK@ 5%-" riverctl map $mode None XF86AudioMute spawn "wpctl set-mute @DEFAULT_SINK@ toggle"
# 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-pointer $mode Super BTN_SIDE spawn "playerctld shift" riverctl map-pointer $mode Super BTN_EXTRA spawn "playerctld unshift"end
riverctl focus-follows-cursor alwaysriverctl set-cursor-warp on-focus-changeriverctl set-repeat 50 300riverctl rule-add ssd
# wideriver layout generatorriverctl default-layout wideriver
# kill old processespkill awww-daemonpkill fnottpkill playerctldpkill yambarpkill kanshipkill mpd-mprispkill wideriver
# spawn new onesriverctl spawn "awww-daemon --format xrgb"riverctl spawn fnottriverctl spawn "playerctld daemon"riverctl spawn kanshiriverctl spawn mpd-mprisriverctl spawn "wideriver \ --layout left \ --stack dwindle \ --count 1 \ --ratio 0.55 \ --inner-gaps 14 \ --border-width 0 \ --outer-gaps 14"
# set initial bg~/.config/scripts/set-background.fish 1