Skip to content

Instantly share code, notes, and snippets.

@misterhat
Last active January 16, 2022 00:48
Show Gist options
  • Save misterhat/15736f9692f44000114c09e757e59041 to your computer and use it in GitHub Desktop.
Save misterhat/15736f9692f44000114c09e757e59041 to your computer and use it in GitHub Desktop.
set padding 0 0 0 0
set border 0
set bargravity n
set barborder 1
alias syncboard exec sh -c 'xclip -o | xclip -selection clipboard'
alias screenshot exec sh -c 'cd ~/Pictures/screenshots; scrot -s'
alias volume exec volume="$(ratpoison -c prompt\ volume:\ )%"; pacmd list-sinks | awk -F ': ' '/index/ {print $2}' | xargs -I{} pactl set-sink-volume {} $volume
bind asciitilde exec sh -c 'import png:- | xclip -selection c -t image/png'
bind B exec sh -c 'ratpoison -c echo\ "$(acpi)"'
bind BackSpace prev
bind C exec sh -c 'ratpoison -c echo\ "$(perl -e "print($(ratpoison -c prompt\ calculator:\ ))")"'
bind C-BackSpace prev
bind C-h exchangeleft
bind C-j exchangedown
bind C-k exchangeup
bind C-l exchangeright
bind C-y syncboard
bind I exec xcalib -d :0 -invert -alter
bind J exec qjoypad --notray
bind L exec sh -c 'xdotool type --delay 50 "doublesfrogs" && xdotool key Return'
bind M exec sh -c 'ratpoison -c echo\ "$(xdotool getmouselocation)"'
bind T exec thunar
bind V exec pavucontrol
bind c exec x-terminal-emulator
bind grave screenshot
bind h focusleft
bind j focusdown
bind k focusup
bind l focusright
bind m exec sh -c 'mpv "$(xclip -o)"'
bind q delete
bind v volume
bind y syncboard
exec wmname LG3D
exec pkill redshift; redshift -x && redshift
nextscreen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment