/
.ratpoisonrc
157 lines (114 loc) · 5.77 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
escape less
msgwait 2
exec xinput --test-xi2 --root > /home/guru/$(date +"%Y%m%d_%H%M").events
exec xrandr --output DVI-0 --rotate left
# somehow the configuration in xessionrc doesn't get executed
# it seems to get executed now so I comment the following line
#exec xmodmap /home/guru/.xmodmaprc
exec unclutter &
exec xbindkeys &
exec tmuxinator start regular &
# exec tmuxinator start r4ds &
alias random-wallpaper exec find ~/wp | shuf -n 2 | feh --bg-scale -f -
definekey top Print random-wallpaper
alias select-then-copy-to-clipboard exec /home/guru/bin/select-image-copy-clipboard.sh
definekey top C-Print select-then-copy-to-clipboard
definekey top F13 other
bind f exec /home/guru/bin/rp-enhanced-window-switcher run-or-raise firefox firefox
definekey top H-f exec firefox -private
# bind b exec /home/guru/bin/rp-run-or-raise.sh Zathura zathura
# alias most-frecent-book exec /home/guru/bin/rp-run-or-raise.sh Zathura /home/guru/bin/open-frecent-book.sh
alias most-frecent-book exec /home/guru/bin/rp-enhanced-window-switcher run-or-raise Zathura /home/guru/bin/orfalgen zathura pdf
alias second-most-frecent-book exec /home/guru/bin/rp-enhanced-window-switcher run-or-raise Zathura /home/guru/bin/open-frecent-book.sh 1
# alias most-recent-book exec /home/guru/bin/rp-run-or-raise.sh Zathura "fasd -e zathura -f pdf -tR"
bind b most-frecent-book
bind B second-most-frecent-book
# bind e exec /home/guru/bin/rp-run-or-raise.sh jetbrains-studio /opt/android-studio/bin/studio.sh
alias term-most-frecent-directory exec /home/guru/bin/rp-enhanced-window-switcher run-or-raise Alacritty /home/guru/bin/open-frecent-directory-term.sh
#alias term-most-frecent-directory exec /home/guru/bin/rp-run-or-raise.sh Lxterminal lxterminal
bind C term-most-frecent-directory
bind c exec /home/guru/bin/rp-enhanced-window-switcher run-or-raise URxvt /home/guru/bin/open-regular-tmux-session.sh
#exec xmodmap -e 'remove Lock = Caps_Lock' -e 'keysym Caps_Lock = F13' &
definekey top F13 other
#I defined it in .xbinkeysrc
#definekey top S-F13 exec xdotool key Caps_Lock
#exec numlockx on
##so as to make run-or-raise executable.... FIXME
#set winname class
#to disable touchpad when typing
#exec syndaemon -d -K -i 0.4
#to make java swing applications run in ratpoison
exec wmname LG3D
random-wallpaper
#I found it a better thing to modify synaptic vertScrolldelta ... to hava natural scrolling
#exec xinput set-button-map 10 1 2 3 5 4 6 7 8 9 10 11 12
alias mediumBrightness exec xrandr --output eDP1 --brightness 0.7
alias brightnessDown exec xbacklight -dec 10
alias brightnessUp exec xbacklight -inc 10
alias nightLevelBrightness exec xrandr --output DVI-0 --brightness 0.8 --output HDMI-0 --brightness 0.8
alias normalBrightness exec xrandr --output DVI-0 --brightness 1 --output HDMI-0 --brightness 1
bind s-F11 nightLevelBrightness
bind s-F12 normalBrightness
#I redefined it in xbindkeys
#definekey top XF86MonBrightnessDown brightnessDown
#definekey top XF86MonBrightnessUp brightnessUp
alias astudio exec /opt/android-studio/bin/studio.sh
alias batteryStatus exec /home/guru/bin/rpBatStatus.sh
bind s-F1 batteryStatus
alias halt exec sudo shutdown now
definekey top C-M-k halt
alias pwd exec xdotool type password
alias show-date-time exec /home/guru/bin/show-date-time.sh
bind a show-date-time
#definekey top s-Right nextscreen
#definekey top s-Left prevscreen
#later make this more robust AND what is sdump and sfdump ... can they be used to create a eterm scratchpad and then return to that previous `blissful :-)` state
definekey top s-Right sselect 1
definekey top s-Left sselect 0
alias reader-page-up exec ~/bin/page-turner prior
alias reader-page-down exec ~/bin/page-turner next
bind space reader-page-down
bind BackSpace reader-page-up
set fwcolor limegreen
bind r exec xdotool key Ctrl+F5
alias close-tab exec xdotool key --clearmodifiers ctrl+w
bind KP_0 select 0
bind KP_1 select 1
bind KP_2 select 2
bind KP_3 select 3
bind KP_4 select 4
bind KP_5 select 5
bind KP_6 select 6
bind KP_7 select 7
bind KP_8 select 8
bind KP_9 select 9
alias ramda-console exec urxvt -e /home/guru/bin/ramda-console.sh
"alias python-console exec urxvt -e /home/guru/bin/python-console.sh
alias python-console exec urxvt -e /home/guru/bin/tmux_ipython.sh
definekey top H-c ramda-console
definekey top H-p python-console
alias borderless set border 0
bind C-KP_0 borderless
kefinekey top C-KP_0 borderless
#alias one-line-vim-slime exec ratpoison -c 'meta Escape' -c 'meta S-v' -c 'meta C-c' -c 'meta C-c'
#alias one-line-vim-slime exec xdotool key V key Ctrl+c key Ctrl+c
alias one-line-vim-slime exec /home/guru/bin/exec_vim_slime_one_line.py
alias one-paragraph-vim-slime exec /home/guru/bin/exec_vim_slime_paragraph.py
definekey top H-e one-line-vim-slime
definekey top H-E one-paragraph-vim-slime
#echo as 'nop' temporarily until the program can be made to just select or do nothing
alias select-video exec /home/guru/bin/rp-enhanced-window-switcher run-or-raise Vlc echo
alias run-or-raise-video exec /home/guru/bin/rp-enhanced-window-switcher run-or-raise Vlc /home/guru/bin/open-frecent-and-related-with-video-player.sh
bind v run-or-raise-video
alias show-vlc-details exec /home/guru/bin/show-vlc-details.sh
# use it with R graphs
#select graph
bind g exec /home/guru/bin/rp-enhanced-window-switcher run-or-raise R_x11 echo
alias open-recent-books-menu exec /home/guru/bin/open-with-book-reader.sh
alias open-frecent-and-related-books-menu exec /home/guru/bin/open-frecent-and-related-with-book-reader.sh
bind C-b open-frecent-and-related-books-menu
alias open-recent-media-menu exec /home/guru/bin/open-with-vlc.sh
alias open-frecent-and-related-videos-menu exec /home/guru/bin/open-frecent-and-related-with-video-player.sh
bind C-v open-frecent-and-related-videos-menu
definekey top XF86HomePage open-recent-media-menu
bind C-w exec rp-window-chooser