Rename file.

Commit
7f93cd8490bc51b505a333f1d77c3299dc42d731
Author
Marius Peter <marius.peter@tutanota.com>
Author date
Committer
Marius Peter <marius.peter@tutanota.com>
Committer date
Changed files
config-herbstluftwm-autostart.org
index 618228b9..00000000 100755..000000
@@ -1,324 +0,0 @@
1 Removed: # -*- mode: org; -*-
2 Removed:
3 Removed: #+TITLE: {{{hl}}} configuration file
4 Removed: #+AUTHOR: Marius Peter
5 Removed: #+DATE: <2021-08-01 Sun>
6 Removed:
7 Removed: #+PROPERTY: header-args :tangle ~/.config/herbstluftwm/autostart :shebang "#!/usr/bin/env bash"
8 Removed:
9 Removed: #+SETUPFILE: ~/.emacs.d/templates/documents/gnu-default.setup
10 Removed: #+INCLUDE: ~/.emacs.d/templates/documents/default-title.org
11 Removed:
12 Removed: #+MACRO: hl Herbstluftwm
13 Removed:
14 Removed: * Introduction
15 Removed:
16 Removed: {{{hl}}} is a manual tiling window manager. It has the particularity
17 Removed: of being configured via the ~herbstclient~ program.
18 Removed:
19 Removed: #+begin_center
20 Removed: \Huge\textbf{Herbstluft}\\
21 Removed: \normalsize\textit{autumn air}
22 Removed: #+end_center
23 Removed:
24 Removed: * Early setup
25 Removed:
26 Removed: ** Definitions
27 Removed:
28 Removed: This is my literate configuration for Herbstluftwm.
29 Removed:
30 Removed: #+BEGIN_SRC shell
31 Removed: hc() {
32 Removed: herbstclient "$@"
33 Removed: }
34 Removed: #+END_SRC
35 Removed:
36 Removed: Choice of Modkey. Mod1 is Alt, Mod4 is Super.
37 Removed:
38 Removed: #+BEGIN_SRC shell
39 Removed: Mod=Mod4
40 Removed: #+END_SRC
41 Removed:
42 Removed: ** ~Plank~ dock
43 Removed:
44 Removed: #+BEGIN_SRC shell
45 Removed: killall plank
46 Removed: plank &
47 Removed: #+END_SRC
48 Removed:
49 Removed: ** TODO Basic
50 Removed:
51 Removed: We make {{{hl}}} execute code associated with the ~reload~ hook.
52 Removed:
53 Removed: #+BEGIN_SRC shell
54 Removed: hc emit_hook reload
55 Removed: #+END_SRC
56 Removed:
57 Removed: We set the color of the default window bar.
58 Removed:
59 Removed: #+BEGIN_SRC shell
60 Removed: xsetroot -solid '#5A8E3A'
61 Removed: #+END_SRC
62 Removed:
63 Removed: We remove all existing keybindings.
64 Removed:
65 Removed: #+BEGIN_SRC shell
66 Removed: hc keyunbind --all
67 Removed: #+END_SRC
68 Removed:
69 Removed: * keybindings
70 Removed:
71 Removed: If you have a super key you will be much happier with Mod set to Mod4.
72 Removed:
73 Removed: ** Basic
74 Removed:
75 Removed: #+BEGIN_SRC shell
76 Removed: hc keybind $Mod-d spawn dmenu_run
77 Removed:
78 Removed: hc keybind $Mod-Shift-q quit
79 Removed: hc keybind $Mod-Shift-r reload
80 Removed: hc keybind $Mod-Shift-c close
81 Removed: #+END_SRC
82 Removed:
83 Removed: ** Spawn a terminal
84 Removed:
85 Removed: We use our $TERMINAL with ~st~ as fallback.
86 Removed:
87 Removed: #+BEGIN_SRC shell
88 Removed: hc keybind $Mod-Return spawn "${TERMINAL:-st}"
89 Removed: #+END_SRC
90 Removed:
91 Removed: ** Movement
92 Removed:
93 Removed: Basic movement in tiling and floating mode focusing clients.
94 Removed:
95 Removed: #+BEGIN_SRC shell
96 Removed: hc keybind $Mod-Left focus left
97 Removed: hc keybind $Mod-Down focus down
98 Removed: hc keybind $Mod-Up focus up
99 Removed: hc keybind $Mod-Right focus right
100 Removed: hc keybind $Mod-h focus left
101 Removed: hc keybind $Mod-j focus down
102 Removed: hc keybind $Mod-k focus up
103 Removed: hc keybind $Mod-l focus right
104 Removed: #+END_SRC
105 Removed:
106 Removed: Moving clients in tiling and floating mode.
107 Removed:
108 Removed: #+BEGIN_SRC shell
109 Removed: hc keybind $Mod-Shift-Left shift left
110 Removed: hc keybind $Mod-Shift-Down shift down
111 Removed: hc keybind $Mod-Shift-Up shift up
112 Removed: hc keybind $Mod-Shift-Right shift right
113 Removed: hc keybind $Mod-Shift-h shift left
114 Removed: hc keybind $Mod-Shift-j shift down
115 Removed: hc keybind $Mod-Shift-k shift up
116 Removed: hc keybind $Mod-Shift-l shift right
117 Removed: #+END_SRC
118 Removed:
119 Removed: ** Splitting frames
120 Removed:
121 Removed: Create an empty frame at the specified direction.
122 Removed:
123 Removed: #+BEGIN_SRC shell
124 Removed: hc keybind $Mod-u split bottom 0.5
125 Removed: hc keybind $Mod-o split left 0.5
126 Removed: #+END_SRC
127 Removed:
128 Removed: We let the current frame explode into subframes.
129 Removed:
130 Removed: #+BEGIN_SRC shell
131 Removed: hc keybind $Mod-Control-space split explode
132 Removed: #+END_SRC
133 Removed:
134 Removed: ** Resizing frames and clients
135 Removed:
136 Removed: Resizing frames and floating clients.
137 Removed:
138 Removed: #+BEGIN_SRC shell
139 Removed: resizestep=0.02
140 Removed: hc keybind $Mod-Control-h resize left +$resizestep
141 Removed: hc keybind $Mod-Control-j resize down +$resizestep
142 Removed: hc keybind $Mod-Control-k resize up +$resizestep
143 Removed: hc keybind $Mod-Control-l resize right +$resizestep
144 Removed: hc keybind $Mod-Control-Left resize left +$resizestep
145 Removed: hc keybind $Mod-Control-Down resize down +$resizestep
146 Removed: hc keybind $Mod-Control-Up resize up +$resizestep
147 Removed: hc keybind $Mod-Control-Right resize right +$resizestep
148 Removed: #+END_SRC
149 Removed:
150 Removed: ** Tags
151 Removed:
152 Removed: *** Basic definitions
153 Removed:
154 Removed: #+BEGIN_SRC shell
155 Removed: # tags
156 Removed: tag_names=( {1..9} )
157 Removed: tag_keys=( {1..9} 0 )
158 Removed:
159 Removed: hc rename default "${tag_names[0]}" || true
160 Removed: for i in "${!tag_names[@]}" ; do
161 Removed: hc add "${tag_names[$i]}"
162 Removed: key="${tag_keys[$i]}"
163 Removed: if ! [ -z "$key" ] ; then
164 Removed: hc keybind "$Mod-$key" use_index "$i"
165 Removed: hc keybind "$Mod-Shift-$key" move_index "$i"
166 Removed: fi
167 Removed: done
168 Removed: #+END_SRC
169 Removed:
170 Removed: *** Cycling
171 Removed:
172 Removed: #+BEGIN_SRC shell
173 Removed: # cycle through tags
174 Removed: hc keybind $Mod-period use_index +1 --skip-visible
175 Removed: hc keybind $Mod-comma use_index -1 --skip-visible
176 Removed:
177 Removed: #+END_SRC
178 Removed:
179 Removed: *** Layouting
180 Removed:
181 Removed: #+BEGIN_SRC shell
182 Removed: hc keybind $Mod-r remove
183 Removed: hc keybind $Mod-s floating toggle # Schwebend = floating!
184 Removed: hc keybind $Mod-f fullscreen toggle
185 Removed: hc keybind $Mod-Shift-f set_attr clients.focus.floating toggle
186 Removed: hc keybind $Mod-Shift-m set_attr clients.focus.minimized true
187 Removed: hc keybind $Mod-Control-m jumpto last-minimized
188 Removed: hc keybind $Mod-p pseudotile toggle
189 Removed: # The following cycles through the available layouts within a frame, but skips
190 Removed: # layouts, if the layout change wouldn't affect the actual window positions.
191 Removed: # I.e. if there are two windows within a frame, the grid layout is skipped.
192 Removed: hc keybind $Mod-space \
193 Removed: or , and . compare tags.focus.curframe_wcount = 2 \
194 Removed: . cycle_layout +1 vertical horizontal max vertical grid \
195 Removed: , cycle_layout +1
196 Removed: #+END_SRC
197 Removed:
198 Removed: *** Mouse bindings
199 Removed:
200 Removed: #+BEGIN_SRC shell
201 Removed: # mouse
202 Removed: hc mouseunbind --all
203 Removed: hc mousebind $Mod-Button1 move
204 Removed: hc mousebind $Mod-Button2 zoom
205 Removed: hc mousebind $Mod-Button3 resize
206 Removed: #+END_SRC
207 Removed:
208 Removed: *** Cycle monitors
209 Removed:
210 Removed: #+BEGIN_SRC shell
211 Removed: # focus
212 Removed: hc keybind $Mod-BackSpace cycle_monitor
213 Removed: hc keybind $Mod-Tab cycle_all +1
214 Removed: hc keybind $Mod-Shift-Tab cycle_all -1
215 Removed: hc keybind $Mod-c cycle
216 Removed: hc keybind $Mod-i jumpto urgent
217 Removed: #+END_SRC
218 Removed:
219 Removed: * Theme
220 Removed:
221 Removed: ** Basic
222 Removed:
223 Removed: #+BEGIN_SRC shell
224 Removed: hc attr theme.tiling.reset 1
225 Removed: hc attr theme.floating.reset 1
226 Removed: #+END_SRC
227 Removed:
228 Removed: ** Frames
229 Removed:
230 Removed: #+BEGIN_SRC shell
231 Removed: hc set frame_border_active_color '#222222cc'
232 Removed: hc set frame_border_normal_color '#101010cc'
233 Removed: hc set frame_bg_normal_color '#565656aa'
234 Removed: hc set frame_bg_active_color '#345F0Caa'
235 Removed: hc set frame_border_width 1
236 Removed: hc set always_show_frame on
237 Removed: hc set frame_bg_transparent on
238 Removed: hc set frame_transparent_width 5
239 Removed: hc set frame_gap 4
240 Removed: #+END_SRC
241 Removed:
242 Removed: ** Windows
243 Removed:
244 Removed: #+BEGIN_SRC shell
245 Removed: hc attr theme.title_height 24
246 Removed: hc attr theme.title_font 'Hack:pixelsize=20' # example using Xft
247 Removed: # hc attr theme.title_font '-*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*'
248 Removed: hc attr theme.padding_top 4 # space below the title's baseline (i.e. text depth)
249 Removed: hc attr theme.active.color '#345F0Cef'
250 Removed: hc attr theme.title_color '#ffffff'
251 Removed: hc attr theme.normal.color '#323232dd'
252 Removed: hc attr theme.urgent.color '#7811A1dd'
253 Removed: hc attr theme.normal.title_color '#898989'
254 Removed: hc attr theme.inner_width 1
255 Removed: hc attr theme.inner_color black
256 Removed: hc attr theme.border_width 3
257 Removed: hc attr theme.floating.border_width 12
258 Removed: hc attr theme.floating.outer_width 1
259 Removed: hc attr theme.floating.outer_color black
260 Removed: hc attr theme.active.inner_color '#789161'
261 Removed: hc attr theme.urgent.inner_color '#9A65B0'
262 Removed: hc attr theme.normal.inner_color '#606060'
263 Removed: # copy inner color to outer_color
264 Removed: for state in active urgent normal ; do
265 Removed: hc substitute C theme.${state}.inner_color \
266 Removed: attr theme.${state}.outer_color C
267 Removed: done
268 Removed: hc attr theme.active.outer_width 1
269 Removed: hc attr theme.background_color '#141414'
270 Removed: #+END_SRC
271 Removed:
272 Removed: ** Window appearance
273 Removed:
274 Removed: #+BEGIN_SRC shell
275 Removed: hc set window_gap 24
276 Removed: hc set frame_padding 0
277 Removed: hc set smart_window_surroundings on
278 Removed: hc set smart_frame_surroundings on
279 Removed: hc set mouse_recenter_gap 0
280 Removed: #+END_SRC
281 Removed:
282 Removed: ** Rules
283 Removed:
284 Removed: #+BEGIN_SRC shell
285 Removed: hc unrule -F
286 Removed: #hc rule class=XTerm tag=3 # move all xterms to tag 3
287 Removed: hc rule focus=on # normally focus new clients
288 Removed: hc rule floatplacement=smart
289 Removed: #hc rule focus=off # normally do not focus new clients
290 Removed: # give focus to most common terminals
291 Removed: #hc rule class~'(.*[Rr]xvt.*|.*[Tt]erm|Konsole)' focus=on
292 Removed: hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' floating=on
293 Removed: hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
294 Removed: hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off
295 Removed:
296 Removed: hc set tree_style '╾│ ├└╼─┐'
297 Removed:
298 Removed: #+END_SRC
299 Removed:
300 Removed: ** Unlock monitors
301 Removed:
302 Removed: #+BEGIN_SRC shell
303 Removed: hc unlock
304 Removed: #+END_SRC
305 Removed:
306 Removed: ** Multi-monitor setup
307 Removed:
308 Removed: #+BEGIN_SRC shell
309 Removed: # do multi monitor setup here, e.g.:
310 Removed: # hc set_monitors 1280x1024+0+0 1280x1024+1280+0
311 Removed: # or simply:
312 Removed: # hc detect_monitors
313 Removed: #+END_SRC
314 Removed:
315 Removed: ** Panel
316 Removed:
317 Removed: #+BEGIN_SRC shell
318 Removed: panel=~/.config/herbstluftwm/panel.sh
319 Removed: [ -x "$panel" ] || panel=/etc/xdg/herbstluftwm/panel.sh
320 Removed: for monitor in $(hc list_monitors | cut -d: -f1) ; do
321 Removed: # start it on each monitor
322 Removed: "$panel" "$monitor" &
323 Removed: done
324 Removed: #+END_SRC
herbstluftwm-autostart.org
index 00000000..e5be784c 000000..100755
@@ -0,0 +1,352 @@
1 Added: # -*- mode: org; -*-
2 Added:
3 Added: #+TITLE: {{{hl}}} configuration file
4 Added: #+AUTHOR: Marius Peter
5 Added: #+DATE: <2021-08-01 Sun>
6 Added:
7 Added: #+PROPERTY: header-args :tangle "~/.config/herbstluftwm/autostart"
8 Added: #+PROPERTY: header-args+ :shebang "#!/usr/bin/env bash"
9 Added:
10 Added: #+SETUPFILE: ~/.emacs.d/templates/documents/gnu-default.setup
11 Added: #+INCLUDE: ~/.emacs.d/templates/documents/default-title.org
12 Added:
13 Added: #+MACRO: hl Herbstluftwm
14 Added:
15 Added: * Introduction
16 Added:
17 Added: This is my literate configuration for {{{hl}}}. It is a manual tiling
18 Added: window manager and has the particularity of being configured via the
19 Added: ~herbstclient~ program.
20 Added:
21 Added: #+begin_center
22 Added: \Huge\textbf{Herbstluft}\\
23 Added: \normalsize\textit{autumn air}
24 Added: #+end_center
25 Added:
26 Added:
27 Added: * Early setup
28 Added:
29 Added:
30 Added: ** Definitions
31 Added:
32 Added: #+BEGIN_SRC shell
33 Added: hc() {
34 Added: herbstclient "$@"
35 Added: }
36 Added: #+END_SRC
37 Added:
38 Added: Choice of Modkey. Mod1 is Alt, Mod4 is Super.
39 Added:
40 Added: #+BEGIN_SRC shell
41 Added: Mod=Mod4
42 Added: #+END_SRC
43 Added:
44 Added:
45 Added: ** ~Plank~ dock
46 Added:
47 Added: #+BEGIN_SRC shell
48 Added: killall plank
49 Added: plank &
50 Added: #+END_SRC
51 Added:
52 Added:
53 Added: ** TODO Basic
54 Added:
55 Added: We make {{{hl}}} execute code associated with the ~reload~ hook.
56 Added:
57 Added: #+BEGIN_SRC shell
58 Added: hc emit_hook reload
59 Added: #+END_SRC
60 Added:
61 Added: We set the color of the default window bar.
62 Added:
63 Added: #+BEGIN_SRC shell
64 Added: xsetroot -solid '#5A8E3A'
65 Added: #+END_SRC
66 Added:
67 Added: We remove all existing keybindings.
68 Added:
69 Added: #+BEGIN_SRC shell
70 Added: hc keyunbind --all
71 Added: #+END_SRC
72 Added:
73 Added:
74 Added: * keybindings
75 Added:
76 Added:
77 Added: ** Open programs interactively
78 Added:
79 Added: #+BEGIN_SRC shell
80 Added: hc keybind $Mod-d spawn dmenu_run
81 Added: #+END_SRC
82 Added:
83 Added:
84 Added: ** Basic interaction with {{{hl}}}
85 Added:
86 Added: #+BEGIN_SRC shell
87 Added: hc keybind $Mod-Shift-q quit
88 Added: hc keybind $Mod-Shift-r reload
89 Added: hc keybind $Mod-Shift-c close
90 Added: #+END_SRC
91 Added:
92 Added: ** Spawn a terminal
93 Added:
94 Added: We use our $TERMINAL with ~st~ as fallback.
95 Added:
96 Added: #+BEGIN_SRC shell
97 Added: hc keybind $Mod-Return spawn "${TERMINAL:-st}"
98 Added: #+END_SRC
99 Added:
100 Added:
101 Added: ** Movement
102 Added:
103 Added: Basic movement in tiling and floating mode focusing clients.
104 Added:
105 Added: #+BEGIN_SRC shell
106 Added: hc keybind $Mod-Left focus left
107 Added: hc keybind $Mod-Down focus down
108 Added: hc keybind $Mod-Up focus up
109 Added: hc keybind $Mod-Right focus right
110 Added: hc keybind $Mod-h focus left
111 Added: hc keybind $Mod-j focus down
112 Added: hc keybind $Mod-k focus up
113 Added: hc keybind $Mod-l focus right
114 Added: #+END_SRC
115 Added:
116 Added: Moving clients in tiling and floating mode.
117 Added:
118 Added: #+BEGIN_SRC shell
119 Added: hc keybind $Mod-Shift-Left shift left
120 Added: hc keybind $Mod-Shift-Down shift down
121 Added: hc keybind $Mod-Shift-Up shift up
122 Added: hc keybind $Mod-Shift-Right shift right
123 Added: hc keybind $Mod-Shift-h shift left
124 Added: hc keybind $Mod-Shift-j shift down
125 Added: hc keybind $Mod-Shift-k shift up
126 Added: hc keybind $Mod-Shift-l shift right
127 Added: #+END_SRC
128 Added:
129 Added:
130 Added: ** Splitting frames
131 Added:
132 Added: Create an empty frame at the specified direction.
133 Added:
134 Added: #+BEGIN_SRC shell
135 Added: hc keybind $Mod-u split bottom 0.5
136 Added: hc keybind $Mod-o split left 0.5
137 Added: #+END_SRC
138 Added:
139 Added: We let the current frame explode into subframes.
140 Added:
141 Added: #+BEGIN_SRC shell
142 Added: hc keybind $Mod-Control-space split explode
143 Added: #+END_SRC
144 Added:
145 Added:
146 Added: ** Resizing frames and clients
147 Added:
148 Added: Resizing frames and floating clients.
149 Added:
150 Added: #+BEGIN_SRC shell
151 Added: resizestep=0.02
152 Added: hc keybind $Mod-Control-h resize left +$resizestep
153 Added: hc keybind $Mod-Control-j resize down +$resizestep
154 Added: hc keybind $Mod-Control-k resize up +$resizestep
155 Added: hc keybind $Mod-Control-l resize right +$resizestep
156 Added: hc keybind $Mod-Control-Left resize left +$resizestep
157 Added: hc keybind $Mod-Control-Down resize down +$resizestep
158 Added: hc keybind $Mod-Control-Up resize up +$resizestep
159 Added: hc keybind $Mod-Control-Right resize right +$resizestep
160 Added: #+END_SRC
161 Added:
162 Added:
163 Added:
164 Added: ** Tags
165 Added:
166 Added:
167 Added: *** Basic definitions
168 Added:
169 Added: #+BEGIN_SRC shell
170 Added: # tags
171 Added: tag_names=( {1..9} )
172 Added: tag_keys=( {1..9} 0 )
173 Added:
174 Added: hc rename default "${tag_names[0]}" || true
175 Added: for i in "${!tag_names[@]}" ; do
176 Added: hc add "${tag_names[$i]}"
177 Added: key="${tag_keys[$i]}"
178 Added: if ! [ -z "$key" ] ; then
179 Added: hc keybind "$Mod-$key" use_index "$i"
180 Added: hc keybind "$Mod-Shift-$key" move_index "$i"
181 Added: fi
182 Added: done
183 Added: #+END_SRC
184 Added:
185 Added:
186 Added: *** Cycling
187 Added:
188 Added: #+BEGIN_SRC shell
189 Added: # cycle through tags
190 Added: hc keybind $Mod-period use_index +1 --skip-visible
191 Added: hc keybind $Mod-comma use_index -1 --skip-visible
192 Added:
193 Added: #+END_SRC
194 Added:
195 Added:
196 Added: *** Layouting
197 Added:
198 Added: #+BEGIN_SRC shell
199 Added: hc keybind $Mod-r remove
200 Added: hc keybind $Mod-s floating toggle # Schwebend = floating!
201 Added: hc keybind $Mod-f fullscreen toggle
202 Added: hc keybind $Mod-Shift-f set_attr clients.focus.floating toggle
203 Added: hc keybind $Mod-Shift-m set_attr clients.focus.minimized true
204 Added: hc keybind $Mod-Control-m jumpto last-minimized
205 Added: hc keybind $Mod-p pseudotile toggle
206 Added: # The following cycles through the available layouts within a frame, but skips
207 Added: # layouts, if the layout change wouldn't affect the actual window positions.
208 Added: # I.e. if there are two windows within a frame, the grid layout is skipped.
209 Added: hc keybind $Mod-space \
210 Added: or , and . compare tags.focus.curframe_wcount = 2 \
211 Added: . cycle_layout +1 vertical horizontal max vertical grid \
212 Added: , cycle_layout +1
213 Added: #+END_SRC
214 Added:
215 Added:
216 Added: *** Mouse bindings
217 Added:
218 Added: #+BEGIN_SRC shell
219 Added: # mouse
220 Added: hc mouseunbind --all
221 Added: hc mousebind $Mod-Button1 move
222 Added: hc mousebind $Mod-Button2 zoom
223 Added: hc mousebind $Mod-Button3 resize
224 Added: #+END_SRC
225 Added:
226 Added:
227 Added: *** Cycle monitors
228 Added:
229 Added: #+BEGIN_SRC shell
230 Added: # focus
231 Added: hc keybind $Mod-BackSpace cycle_monitor
232 Added: hc keybind $Mod-Tab cycle_all +1
233 Added: hc keybind $Mod-Shift-Tab cycle_all -1
234 Added: hc keybind $Mod-c cycle
235 Added: hc keybind $Mod-i jumpto urgent
236 Added: #+END_SRC
237 Added:
238 Added:
239 Added: * Theme
240 Added:
241 Added:
242 Added: ** Basic
243 Added:
244 Added: #+BEGIN_SRC shell
245 Added: hc attr theme.tiling.reset 1
246 Added: hc attr theme.floating.reset 1
247 Added: #+END_SRC
248 Added:
249 Added:
250 Added: ** Frames
251 Added:
252 Added: #+BEGIN_SRC shell
253 Added: hc set frame_border_active_color '#222222cc'
254 Added: hc set frame_border_normal_color '#101010cc'
255 Added: hc set frame_bg_normal_color '#565656aa'
256 Added: hc set frame_bg_active_color '#345F0Caa'
257 Added: hc set frame_border_width 1
258 Added: hc set always_show_frame on
259 Added: hc set frame_bg_transparent on
260 Added: hc set frame_transparent_width 5
261 Added: hc set frame_gap 4
262 Added: #+END_SRC
263 Added:
264 Added:
265 Added: ** Windows
266 Added:
267 Added: #+BEGIN_SRC shell
268 Added: hc attr theme.title_height 24
269 Added: hc attr theme.title_font 'Hack:pixelsize=20' # example using Xft
270 Added: # hc attr theme.title_font '-*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*'
271 Added: hc attr theme.padding_top 4 # space below the title's baseline (i.e. text depth)
272 Added: hc attr theme.active.color '#345F0Cef'
273 Added: hc attr theme.title_color '#ffffff'
274 Added: hc attr theme.normal.color '#323232dd'
275 Added: hc attr theme.urgent.color '#7811A1dd'
276 Added: hc attr theme.normal.title_color '#898989'
277 Added: hc attr theme.inner_width 1
278 Added: hc attr theme.inner_color black
279 Added: hc attr theme.border_width 3
280 Added: hc attr theme.floating.border_width 12
281 Added: hc attr theme.floating.outer_width 1
282 Added: hc attr theme.floating.outer_color black
283 Added: hc attr theme.active.inner_color '#789161'
284 Added: hc attr theme.urgent.inner_color '#9A65B0'
285 Added: hc attr theme.normal.inner_color '#606060'
286 Added: # copy inner color to outer_color
287 Added: for state in active urgent normal ; do
288 Added: hc substitute C theme.${state}.inner_color \
289 Added: attr theme.${state}.outer_color C
290 Added: done
291 Added: hc attr theme.active.outer_width 1
292 Added: hc attr theme.background_color '#141414'
293 Added: #+END_SRC
294 Added:
295 Added:
296 Added: ** Window appearance
297 Added:
298 Added: #+BEGIN_SRC shell
299 Added: hc set window_gap 24
300 Added: hc set frame_padding 0
301 Added: hc set smart_window_surroundings on
302 Added: hc set smart_frame_surroundings on
303 Added: hc set mouse_recenter_gap 0
304 Added: #+END_SRC
305 Added:
306 Added:
307 Added: ** Rules
308 Added:
309 Added: #+BEGIN_SRC shell
310 Added: hc unrule -F
311 Added: #hc rule class=XTerm tag=3 # move all xterms to tag 3
312 Added: hc rule focus=on # normally focus new clients
313 Added: hc rule floatplacement=smart
314 Added: #hc rule focus=off # normally do not focus new clients
315 Added: # give focus to most common terminals
316 Added: #hc rule class~'(.*[Rr]xvt.*|.*[Tt]erm|Konsole)' focus=on
317 Added: hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' floating=on
318 Added: hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
319 Added: hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off
320 Added:
321 Added: hc set tree_style '╾│ ├└╼─┐'
322 Added:
323 Added: #+END_SRC
324 Added:
325 Added:
326 Added: ** Unlock monitors
327 Added:
328 Added: #+BEGIN_SRC shell
329 Added: hc unlock
330 Added: #+END_SRC
331 Added:
332 Added:
333 Added: ** Multi-monitor setup
334 Added:
335 Added: #+BEGIN_SRC shell
336 Added: # do multi monitor setup here, e.g.:
337 Added: # hc set_monitors 1280x1024+0+0 1280x1024+1280+0
338 Added: # or simply:
339 Added: # hc detect_monitors
340 Added: #+END_SRC
341 Added:
342 Added:
343 Added: ** Panel
344 Added:
345 Added: #+BEGIN_SRC shell
346 Added: panel=~/.config/herbstluftwm/panel.sh
347 Added: [ -x "$panel" ] || panel=/etc/xdg/herbstluftwm/panel.sh
348 Added: for monitor in $(hc list_monitors | cut -d: -f1) ; do
349 Added: # start it on each monitor
350 Added: "$panel" "$monitor" &
351 Added: done
352 Added: #+END_SRC