-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathratpoisonrc
215 lines (197 loc) · 6.36 KB
/
ratpoisonrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
#startup_message off
set fgcolor orange
set bgcolor black
set border 0
set font -misc-fixed-medium-r-*-*-13-*-*-*-*-60-iso10646-1
set resizeunit 1
set bargravity c
set wingravity n
set winname title
set maxsizegravity c
set historyexpansion 1
set historycompaction 1
set historysize 100
# Problematic with xterms with disabled AllowSendEvents
#escape C-z
#bind c exec uxterm
#bind C-c exec uxterm
bind C exec urxvt
bind d exec /home/abe/.ratpoison/bin/dmenu-for-ratpoison.sh
bind C-d exec /home/abe/.ratpoison/bin/dmenu-abe.pl
#bind slash exec if [ -x /usr/bin/xscreensaver-command ]; then /usr/bin/xscreensaver-command -lock || xtrlock; else xtrlock; fi
#bind C-slash exec if [ -x /usr/bin/xscreensaver-command ]; then /usr/bin/xscreensaver-command -lock || xtrlock; else xtrlock; fi
#bind backslash exec if [ -x /usr/bin/xscreensaver-command ]; then /usr/bin/xscreensaver-command -lock || xtrlock; else xtrlock; fi
#bind C-backslash exec if [ -x /usr/bin/xscreensaver-command ]; then /usr/bin/xscreensaver-command -lock || xtrlock; else xtrlock; fi
bind x exec if [ -x /usr/bin/xscreensaver-command ]; then /usr/bin/xscreensaver-command -lock || xtrlock; else xtrlock; fi
bind C-x exec if [ -x /usr/bin/xscreensaver-command ]; then /usr/bin/xscreensaver-command -lock || xtrlock; else xtrlock; fi
bind X exec /home/abe/.ratpoison/bin/xrandr-vga-off.sh
bind h describekey root
bind C-h describekey root
bind w exec /home/abe/.ratpoison/bin/ratpoison-interactive-window-list.pl
bind C-w exec /home/abe/.ratpoison/bin/ratpoison-interactive-window-list.pl
bind W windows
bind e exec emacsclient -e '(raise-frame)' || emacs
bind C-e exec emacsclient -e '(raise-frame)' || emacs
#bind E exec emacsclient.emacs22 -e '(raise-frame)' || emacs22
bind L exec lxrandr
#bind l lxpanelctl menu
#bind . exec /etc/X11/ratpoison/ratpoisonmenu debian.menu
bind C-b banishrel
bind bar hsplit
bind Print exec cd ~/Screenshots; scrot
bind D dedicate
bind y ratclick 2
bind C-y exec sensible-browser "`xclip -o`"
bind C-n cnext
bind C-p cprev
bind N inext
bind P iprev
bind S-tab focusprev
bind M shrink
bind z swap
bind q only
bind T number
bind numbersign exec /home/abe/.ratpoison/bin/renumber-ratpoison-windows.pl
bind grave select 10
bind F1 select 11
bind F2 select 12
bind F3 select 13
bind F4 select 14
bind F5 select 15
bind F6 select 16
bind F7 select 17
bind F8 select 18
bind F9 select 19
bind F10 select 20
bind F11 select 21
bind F12 select 22
bind C-0 select 10
bind C-1 select 11
bind C-2 select 12
bind C-3 select 13
bind C-4 select 14
bind C-5 select 15
bind C-6 select 16
bind C-7 select 17
bind C-8 select 18
bind C-9 select 19
bind M-0 select 20
bind M-1 select 21
bind M-2 select 22
bind M-3 select 23
bind M-4 select 24
bind M-5 select 25
bind M-6 select 26
bind M-7 select 27
bind M-8 select 28
bind M-9 select 29
bind C-M-0 select 30
bind C-M-1 select 31
bind C-M-2 select 32
bind C-M-3 select 33
bind C-M-4 select 34
bind C-M-5 select 35
bind C-M-6 select 36
bind C-M-7 select 37
bind C-M-8 select 38
bind C-M-9 select 39
# xv doesn't make sense to be resized
unmanage xv 3.10a(PNG) <unregistered>
# ProcMeter even fights with ratpoison
unmanage ProcMeter V3.5a
unmanage XBomb V2.1a
# Let ratpoison ignore the trayer / lxpanel
#set padding 0 0 0 26
#set padding 0 0 0 34
set padding 0 0 0 11
unmanage panel
# Grub Choose Default doesn't work good with ratpoison
unmanage grub choose default
# GNOME MouseTrap
#unmanage mouseTrap
#unmanage mouseTrap Preferences
unmanage Clicks Panel
# MPlayer
unmanage MPlayer
# Grouping
bind g exec /home/abe/.ratpoison/bin/ratpoison-interactive-window-list.pl -g
bind s-n gnext
bind s-p gprev
bind G gmove
bind s-c gnew
bind s-g gnew
addhook switchgroup next
# Some toplevel keybindings in the style of awesome, i3 and scrotwm
definekey top s-0 select 0
definekey top s-1 select 1
definekey top s-2 select 2
definekey top s-3 select 3
definekey top s-4 select 4
definekey top s-5 select 5
definekey top s-6 select 6
definekey top s-7 select 7
definekey top s-8 select 8
definekey top s-9 select 9
definekey top s-grave select 10
definekey top s-F1 select 11
definekey top s-F2 select 12
definekey top s-F3 select 13
definekey top s-F4 select 14
definekey top s-F5 select 15
definekey top s-F6 select 16
definekey top s-F7 select 17
definekey top s-F8 select 18
definekey top s-F9 select 19
definekey top s-F10 select 20
definekey top s-F11 select 21
definekey top s-F12 select 22
definekey top s-Tab focus
definekey top s-M-Tab focuslast
definekey top s-C-Left exchangeleft
definekey top s-C-Right exchangeright
definekey top s-C-Up exchangeup
definekey top s-C-Down exchangedown
definekey top s-Left focusleft
definekey top s-Right focusright
definekey top s-Up focusup
definekey top s-Down focusdown
definekey top s-Q only
definekey top s-q only
definekey top s-n next
definekey top s-p prev
definekey top s-j next
definekey top s-k prev
definekey top s-N inext
definekey top s-P iprev
definekey top s-J inext
definekey top s-K iprev
definekey top s-C-n cnext
definekey top s-C-p cprev
definekey top s-z swap
definekey top s-s split
definekey top s-S hsplit
definekey top s-bar hsplit
definekey top s-t other
definekey top s-h describekey top
definekey top s-w exec /home/abe/.ratpoison/bin/ratpoison-interactive-window-list.pl
definekey top s-C-w exec /home/abe/.ratpoison/bin/ratpoison-interactive-window-list.pl
definekey top s-W windows
definekey top s-g exec /home/abe/.ratpoison/bin/ratpoison-interactive-window-list.pl -g
definekey top s-Return exec x-terminal-emulator
definekey top s-c exec x-terminal-emulator
definekey top s-space dedicate
definekey top s-Insert dedicate
definekey top s-e exec emacsclient -e '(raise-frame)' || emacs
# Keymap for cpufreq
newkmap cpufreq
definekey cpufreq 1 exec /home/abe/.ratpoison/bin/eeepc-701-setfreq.sh 1
definekey cpufreq 2 exec /home/abe/.ratpoison/bin/eeepc-701-setfreq.sh 2
definekey cpufreq 3 exec /home/abe/.ratpoison/bin/eeepc-701-setfreq.sh 3
definekey cpufreq 4 exec /home/abe/.ratpoison/bin/eeepc-701-setfreq.sh 4
definekey cpufreq 5 exec /home/abe/.ratpoison/bin/eeepc-701-setfreq.sh 5
definekey cpufreq 6 exec /home/abe/.ratpoison/bin/eeepc-701-setfreq.sh 6
definekey cpufreq 7 exec /home/abe/.ratpoison/bin/eeepc-701-setfreq.sh 7
definekey cpufreq 9 exec /home/abe/.ratpoison/bin/eeepc-701-setfreq.sh 9
bind H readkey cpufreq
# Helper for nawm stuff
#addhook switchwin exec if which nawm > /dev/null && [ `ratpoison -c fdump | fgrep -o "frame" | wc -l` -gt 1 ]; then ratpoison -c banish; fi