-
Notifications
You must be signed in to change notification settings - Fork 0
/
ratpoisonrc
99 lines (86 loc) · 2.35 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
# .ratpoisonrc - ratpoison runtime configuration
#
# Randy Morris ([email protected])
#
# CREATED: 2009-09-30 22:17
# MODIFIED: 2011-04-18 19:11
#
# globals
startup_message off
msgwait 3
escape F14
# settings
set bargravity c
set barborder 2
set barpadding 4 4
set fgcolor #808080
set fwcolor #808080
set bgcolor #1c1c1c
set bwcolor #000000
set font Monaco:11
set inputwidth 420
set border 1
set resizeunit 25
set winname class
set wingravity c
# general
bind c delete
bind Escape banish
bind u undo
bind C-r redo
# screens
bind Right nextscreen
bind Left prevscreen
# groups
bind s-backslash groups
bind F1 exec ratpoison -c "gselect 0" -c "select -" -c "next"
bind F2 exec ratpoison -c "gselect 1" -c "select -" -c "next"
bind F3 exec ratpoison -c "gselect 2" -c "select -" -c "next"
bind F4 exec ratpoison -c "gselect 3" -c "select -" -c "next"
# windows
bind backslash windows
bind 1 select 0
bind 2 select 1
bind 3 select 2
bind 4 select 3
bind 5 select 4
bind 6 select 5
bind 7 select 6
bind 8 select 7
bind 9 select 8
bind 0 select 9
# frames
bind O only
bind R remove
bind f fselect
bind F curframe
bind k focusup
bind l focusright
bind j focusdown
bind h focusleft
bind K exchangeup
bind L exchangeright
bind J exchangedown
bind H exchangeleft
bind N focus
# commands
bind colon colon
bind semicolon colon exec
bind s-semicolon colon exec term -e
# aliases
alias sp split
alias vsp hsplit
# unbind stuff
exec ratpoison -c 'source .ratpoisonrc.unbinds' &
# auto exec
exec unclutter -idle 5 -jitter 2 -root &
exec xsetroot -solid '#1c1c1c' -cursor_name left_ptr &
exec ratpoison -c 'gnew two' -c 'gnew three' -c 'gnew four' -c 'gselect 0' -c 'banish' -c 'exec term' -c 'next' &
# multimedia keys
definekey top XF86AudioRaiseVolume exec amixer set Master 3%+ && ratpoison -c "echo Master: $(amixer get Master | tail -1 | cut -d ' ' -f 7)"
definekey top XF86AudioMute exec amixer set Master toggle
definekey top XF86AudioLowerVolume exec amixer set Master 3%- && ratpoison -c "echo Master: $(amixer get Master | tail -1 | cut -d ' ' -f 7)"
definekey top S-XF86AudioRaiseVolume exec amixer set PCM 3%+ && ratpoison -c "echo PCM: $(amixer get PCM | tail -1 | cut -d ' ' -f 7)"
definekey top S-XF86AudioMute exec amixer set PCM toggle
definekey top S-XF86AudioLowerVolume exec amixer set PCM 3%- && ratpoison -c "echo PCM: $(amixer get PCM | tail -1 | cut -d ' ' -f 7)"
# vim:foldlevel=1