-
Notifications
You must be signed in to change notification settings - Fork 0
/
sdorfehsrc-x1
230 lines (184 loc) · 6.65 KB
/
sdorfehsrc-x1
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
# vim:ft=ratpoison:
escape C-f
# auto-move windows to the dedicated vscreen
# addhook newwindow exec autovscreen
#---------------------------------------------------------------------------
# main options
# https://www.japh.se/2021/03/21/ratpoison-urxvt-and-borders.html
#---------------------------------------------------------------------------
set barbordercolor #121212
set barinpadding 1
set barpadding 2 0
set barsticky 1
set bgcolor black
set bwcolor #242424
set border 1
set fgcolor #af875f
set font "Anonymous Pro:style=Regular:pixelsize=10:antialias=1:hinting=1:hintstyle=3"
#set font "Terminus:pixelsize=32"
set framefmt frame %f (%Wx%H)
#set framemsgwait 3
set framemsgwait -1
set fwcolor #484848
set gap 0
set historysize 100
set ignoreresizehints 1
set maxsizegravity c
set maxundos 20
set msgwait 1
set onlyborder 0
set padding 0 4 0 0
#set padding 1 1 1 0
set resizefmt resize (%Wx%H)
set resizeunit 50
#set rudeness 15
set startupmessage 0
set stickyfmt %t
set topkmap top
set transgravity c
set vscreens 4
set warp 0
set waitcursor 0
set winfmt %n%s%t
set wingravity nw
set winliststyle column
set winname title
#---------------------------------------------------------------------------
# unbind useless or dangerous defaults
#---------------------------------------------------------------------------
unbind k
unbind n
unbind v
unbind w
unbind C-w
unbind C-k
unbind C-n
unbind C-l
unbind C-space
#---------------------------------------------------------------------------
# applications
#---------------------------------------------------------------------------
bind a exec battery_date
bind c exec kitty -o font_family="Anonymous Pro" -o font_size=8 -o bold_font="Anonymous Pro Bold" -o italic_font="Anonymous Pro Italic" -o bold_italic_font="Anonymous Pro Bold Italic"
#bind c exec urxvt -fg white -bg black -sbg +sb
# weird bug in rxvt where the PS1 shows at the bottom, solved by using -geometry flag
#bind c exec urxvt -geometry 400x400
bind C exec kitty
bind x exec xterm
# scratch buffer for temp things
#bind Return exec urxvt -fg white -bg black -sbg +sb -e vim -c 'call Scratch()'
#bind C-Return exec urxvt -fg white -bg black -sbg +sb -e vim -c 'call Scratch()'
bind Return exec kitty -e nvim -c 'call Scratch()'
bind C-Return exec kitty -e nvim -c 'call Scratch()'
#---------------------------------------------------------------------------
# workspaces/vscreens - win+n
#---------------------------------------------------------------------------
#addhook switchvscreen vscreens
definekey top s-1 vselect 1
definekey top s-2 vselect 2
definekey top s-3 vselect 3
definekey top s-4 vselect 4
definekey top s-5 vselect 5
definekey top s-6 vselect 6
definekey top s-7 vselect 7
definekey top s-8 vselect 8
definekey top s-9 vselect 9
definekey top s-0 vselect 0
# win+l, win+h
#definekey top s-l vnext
#definekey top s-h vprev
definekey top s-l exec vnextbugfix
definekey top s-h exec vprevbugfix
# move window to another screen
definekey top s-Left smove 0
definekey top s-Right smove 2
definekey top s-Up smove 3
definekey top s-Down smove 2
definekey top s-s exec flameshot gui
#---------------------------------------------------------------------------
# monitor brightness
#---------------------------------------------------------------------------
definekey top XF86MonBrightnessDown exec brightness_down
definekey top XF86MonBrightnessUp exec brightness_up
definekey top XF86AudioRaiseVolume exec pulse_raise_volume
definekey top XF86AudioLowerVolume exec pulse_lower_volume
definekey top XF86AudioMute exec pulse_mute_toggle
definekey top XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
#---------------------------------------------------------------------------
# mpd haxx
#---------------------------------------------------------------------------
#bind n exec mpc --host 192.168.1.12 prev
#bind p exec mpc --host 192.168.1.12 next && mpd-cp-coverart-to-tmp
#bind o exec mpc --host 192.168.1.12 toggle
#---------------------------------------------------------------------------
# plexamp haxx
# https://github.com/trapd00r/hass-mpd-ikea
#---------------------------------------------------------------------------
bind p exec xdotool key ctrl+p
bind o exec xdotool key ctrl+o
bind exclam exec fzfbinselect
# # show coverart of the currently playing song
# # (win+Return)
# definekey top s-Return exec mpd-show-coverart
#
# # open a new terminal in the currently playing artist directory
# # (alt+Return)
# definekey top M-Return exec mpd-goto-artist-dir
#
# # open a new terminal in the currently playing album directory
# # (alt+backspace)
# definekey top M-BackSpace exec mpd-goto-album-dir
#---------------------------------------------------------------------------
# window management
#---------------------------------------------------------------------------
bind s split
bind S hsplit
bind h focusleft
bind j focusdown
bind k focusup
bind l focusright
# left monitor == 0
bind H sselect 0
#bind H exec sselect_skip_top_monitor left
# laptop internal == 3
#bind L exec sselect_skip_top_monitor right
bind L sselect 3
# middle monitor == 0
bind J sselect 1
# top monitor == 2
bind K sselect 2
bind C-K kill
# move window to another named vscreen
bind G vmove
# move window to another monitor
#definekey top M-Return smove
# move windows around
definekey top M-l exchangeright
definekey top M-h exchangeleft
definekey top M-k exchangeup
definekey top M-j exchangeup
# select vscreens and windows with fzf and st
bind v exec fzfvselect
bind w exec fzfselect
# dbeaver doesn't behave and ignores the primary buffer
bind Escape exec clipboard-to-primary
# bind Tab exec sdorfehs -c "set barbordercolor black" -c "set bgcolor #d3ceb9" -c "set barborder 6" -c "set barpadding 24 14" -c "set border 6" -c "set fgcolor #444444" -c "set padding 40 40 40 40" -c "set onlyborder 1"
bind ISO_Left_Tab restart
# dmenu-like 'select and run', but using fzf (thank you for the inspiration wassberg)
bind b exec st -e sh -c $(ls ~/dev/utils /usr/bin /bin |fzfmenu)
# web development view, split firefox and a terminal
bind W exec sdorfehs -c "hsplit" -c "resize 200 0"
#---------------------------------------------------------------------------
# init and startup
#---------------------------------------------------------------------------
unmanage polybar-example_DP-3-1-5
vselect 0
vrename db
vselect 1
vrename code
vselect 2
vrename chat
vselect 3
vrename ftp
#vselect 4
#vrename www