Skip to content

Instantly share code, notes, and snippets.

@schlueter
Created February 19, 2017 21:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schlueter/62724457546f61e907797aa2d7ca0c6c to your computer and use it in GitHub Desktop.
Save schlueter/62724457546f61e907797aa2d7ca0c6c to your computer and use it in GitHub Desktop.
The contents of my .ratpoisonrc. Unmaintained and unused.
escape C-p
bind Escape abort
bind u undo
bind b exec firefox
bind c slack
bind m spotify
set border 0
set barpadding 0 0 0 0
set padding 0 0 0 0
# Media / Brightness Keys
definekey top XF86AudioRaiseVolume exec amixer -q set Master 5+ unmute; ratpoison -c "echo `amixer get Master | awk 'END{print \"Volume: \" $4}'`"
definekey top XF86AudioLowerVolume exec amixer -q set Master 5- unmute; ratpoison -c "echo `amixer get Master | awk 'END{print \"Volume: \" $4}'`"
definekey top XF86AudioMute exec amixer -q set PCM toggle; ratpoison -c "echo [ MUTE ]"
definekey top XF86MonBrightnessUp exec xbacklight -inc 10;
definekey top XF86MonBrightnessDown exec xbacklight -dec 10;
definekey top M-Tab next
definekey top C-M-Tab prev
definekey top C-M-r restart
definekey top C-M-x quit
alias screenshot exec import -window root screenshot-$(date +%Y%m%d%H%M%S).png
alias dscreenshot exec sleep 5; import -window root screenshot-$(date +%Y%m
exec firefox
exec terminology -e 'tmux attach || tmux new -s default'
exec slack
exec spotify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment