summaryrefslogtreecommitdiff
path: root/.ratpoisonrc
diff options
context:
space:
mode:
Diffstat (limited to '.ratpoisonrc')
-rw-r--r--.ratpoisonrc108
1 files changed, 108 insertions, 0 deletions
diff --git a/.ratpoisonrc b/.ratpoisonrc
new file mode 100644
index 0000000..300f7c6
--- /dev/null
+++ b/.ratpoisonrc
@@ -0,0 +1,108 @@
+set rudeness 15
+
+# set info style
+set winname class
+set wingravity center
+set transgravity center
+set border 0
+set bgcolor #000000
+set fgcolor #c4c4c4
+
+# Set the escape key to the ctrl-z
+escape C-z
+
+# ALIASES
+
+# store frames
+alias store-fs1 exec ratpoison -c "setenv fs1 `ratpoison -c 'fdump'`"
+alias restore-fs1 exec ratpoison -c "frestore `ratpoison -c 'getenv fs1'`"
+alias store-fs2 exec ratpoison -c "setenv fs2 `ratpoison -c 'fdump'`"
+alias restore-fs2 exec ratpoison -c "frestore `ratpoison -c 'getenv fs2'`"
+alias store-fs3 exec ratpoison -c "setenv fs3 `ratpoison -c 'fdump'`"
+alias restore-fs3 exec ratpoison -c "frestore `ratpoison -c 'getenv fs3'`"
+alias store-fs4 exec ratpoison -c "setenv fs4 `ratpoison -c 'fdump'`"
+alias restore-fs4 exec ratpoison -c "frestore `ratpoison -c 'getenv fs4'`"
+alias store-fs5 exec ratpoison -c "setenv fs5 `ratpoison -c 'fdump'`"
+alias restore-fs5 exec ratpoison -c "frestore `ratpoison -c 'getenv fs5'`"
+
+## KEYBINDS
+
+# unbind defaults
+unbind b
+unbind C-b
+unbind a
+unbind C-a
+unbind p
+unbind C-p
+unbind n
+unbind C-n
+unbind f
+unbind C-f
+unbind m
+unbind C-m
+unbind l
+unbind C-l
+unbind c
+unbind C-c
+unbind exclam
+unbind C-exclam
+unbind Return
+unbind C-Return
+unbind N
+unbind P
+
+
+# switch between windows and monitors
+definekey top s-n next
+definekey top s-p prev
+definekey top s-Left nextscreen
+definekey top s-Right nextscreen
+
+# manage frames and windows
+definekey top s-h focusleft
+definekey top s-j focusdown
+definekey top s-k focusup
+definekey top s-l focusright
+definekey top s-H exchangeleft
+definekey top s-J exchangedown
+definekey top s-K exchangeup
+definekey top s-L exchangeright
+definekey top s-C delete
+
+bind M-exclam store-fs1
+bind M-1 restore-fs1
+bind M-at store-fs2
+bind M-2 restore-fs2
+bind M-numbersign store-fs3
+bind M-3 restore-fs3
+bind M-dollar store-fs4
+bind M-4 restore-fs4
+bind M-percent store-fs5
+bind M-5 restore-fs5
+
+# volume and media control
+definekey top XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
+definekey top XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
+definekey top XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
+definekey top XF86AudioPrev exec mpc prev && exec ratpoison -c "echo $(mpc status)"
+definekey top XF86AudioNext exec mpc next && exec ratpoison -c "echo $(mpc status)"
+definekey top XF86AudioPlay exec mpc toggle && exec ratpoison -c "echo $(mpc status)"
+
+# Information
+bind C-v exec ratpoison -c "echo $(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{ print $3,$1,$2*100 }')%"
+bind C-a exec ratpoison -c "echo `date +'%A, %F - %H:%M'` `cal | tail -n +2 | sed -e 's/^Su/\n\n Su/' -e 's/.*/ & /' -e \"s/\ $(date +%e) /\<$(date +%e)\>/\"`"
+bind C-d exec ratpoison -c "echo $(date +'%A, %F - %H:%M')"
+bind C-t exec ratpoison -c "echo $(sensors | sed -n /Tctl/p | sed 's/Tctl: *+/Temp: /')"
+
+# application keybinds
+definekey top s-Return exec urxvtc
+definekey top s-z exec boomer
+definekey top s-Print exec scrot -s -e 'mv $f ~/pics/'
+definekey top Print exec scrot -u -e 'mv $f ~/pics/'
+definekey top s-b exec bm -o
+definekey top s-B exec bm -y
+bind C-f exec firefox -P default-release
+bind C-F exec firefox -P less-strict
+bind C-e exec emacsclient -c -a ""
+bind C-m exec mpdmenu
+bind C-p exec dmenu_run -m 0 -fn "xft:Hack Nerd Font:size=11" -nb "#222222" -nf "#bbbbbb" -sb "#005577" -sf "#eeeeee"