-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.ratpoisonrc
92 lines (71 loc) · 2.53 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
# rudeness is a bitwise or of the following values: ###############
# 1 Transient windows may raise.
# 2 Normal windows may raise.
# 4 New transient windows end up in the foreground.
# 8 New normal windows end up in the foreground.
rudeness 12
###################################################################
startup_message off
defborder 0
defpadding 0 0 0 0
defbarpadding 0 0
#set padding 0 14 0 0
set bargravity nw
set fgcolor #99ff00
set bgcolor #222222
set barborder 0
set winname title
exec $(sh ~/.ratpoison/font_fix montecarlo)
set padding 0
set barpadding 10 5
msgwait 0
exec xsetroot -cursor_name left_ptr
#volume up/down
definekey top s-Up exec amixer set 'Master Front' 5%+
definekey top s-Down exec amixer set 'Master Front' 5%-
definekey top s-m exec amixer set 'Master Front' toggle > /dev/null
definekey top M-s exec xclip -o -selection "clipboard" | xclip
definekey top s-n exec mpc --format "np: [[[%artist%] - ][%title%][ - #[[%album%] ##[%track%]#]]]|[%file%]" | head -n 1 | xclip
definekey top s-j exec mpc toggle
definekey top s-q exec mpc prev
definekey top s-k exec mpc next
# overriding CTRL+t 'c' to start aterm instead of xterm
bind c exec urxvt
# Switch between screens
definekey top M-n nextscreen
definekey top M-p prevscreen
# Take a screenshot and move it to the right dir
definekey top s-Print exec scrot -m -e 'mv $f ~/screenshots/'
definekey top Print exec scrot -s -e 'mv $f ~/screenshots/'
# Workspaces ####################
definekey top C-1 exec rpws 1
definekey top C-2 exec rpws 2
definekey top C-3 exec rpws 3
definekey top C-4 exec rpws 4
definekey top C-5 exec rpws 5
definekey top C-6 exec rpws 6
definekey top C-7 exec rpws 7
exec $(sh ~/.ratpoison/ratbind)
#################################
# Script for undefining and defining keys
bind M-8 exec sh ~/.ratpoison/ratbind
bind M-9 exec sh ~/.ratpoison/ratbind unbind
# Window management
definekey top M-Down resize 0 -10
definekey top M-Up resize 0 10
definekey top M-Right resize 10 0
definekey top M-Left resize -10 0
definekey top M-Tab focus
definekey top M-j focusdown
definekey top M-k focusup
definekey top M-l focusright
definekey top M-h focusleft
bind d dedicate
bind w exec ~/.ratpoison/window_select
bind M-m exec $(dmenu_path_c | dmenu -nb "#222222" -nf "#eeeeee" -sb "#222222" -sf "#ff9900" -fn '-*-terminus-medium-*-normal-*-12-*-*-*-*-*-*-*')
bind m exec ~/.ratpoison/menu
# Startup ############################################
## Init nine workspaces
exec rpws init 7
## Select first workspace on start
exec ratpoison -c "rpws 1"