summaryrefslogtreecommitdiff
path: root/herbstluftwm-autostart.org
diff options
context:
space:
mode:
Diffstat (limited to 'herbstluftwm-autostart.org')
-rwxr-xr-xherbstluftwm-autostart.org84
1 files changed, 59 insertions, 25 deletions
diff --git a/herbstluftwm-autostart.org b/herbstluftwm-autostart.org
index 75516ed..8c5ae0f 100755
--- a/herbstluftwm-autostart.org
+++ b/herbstluftwm-autostart.org
@@ -75,6 +75,9 @@ We set the color of the default window bar.
xsetroot -solid '#5A8E3A'
#+END_SRC
+
+* Keybindings
+
We remove all existing keybindings.
#+BEGIN_SRC shell
@@ -82,9 +85,6 @@ We remove all existing keybindings.
#+END_SRC
-* keybindings
-
-
** Open programs interactively
#+BEGIN_SRC shell
@@ -144,8 +144,8 @@ Moving clients in tiling and floating mode.
Create an empty frame at the specified direction.
#+BEGIN_SRC shell
- hc keybind $Mod-u split bottom 0.5
- hc keybind $Mod-o split left 0.5
+ hc keybind $Mod-u split bottom 0.5
+ hc keybind $Mod-o split left 0.5
#+END_SRC
We let the current frame explode into subframes.
@@ -161,14 +161,14 @@ Resizing frames and floating clients.
#+BEGIN_SRC shell
resizestep=0.02
- hc keybind $Mod-Control-h resize left +$resizestep
- hc keybind $Mod-Control-j resize down +$resizestep
- hc keybind $Mod-Control-k resize up +$resizestep
- hc keybind $Mod-Control-l resize right +$resizestep
- hc keybind $Mod-Control-Left resize left +$resizestep
- hc keybind $Mod-Control-Down resize down +$resizestep
- hc keybind $Mod-Control-Up resize up +$resizestep
- hc keybind $Mod-Control-Right resize right +$resizestep
+ hc keybind $Mod-Control-h resize left +$resizestep
+ hc keybind $Mod-Control-j resize down +$resizestep
+ hc keybind $Mod-Control-k resize up +$resizestep
+ hc keybind $Mod-Control-l resize right +$resizestep
+ hc keybind $Mod-Control-Left resize left +$resizestep
+ hc keybind $Mod-Control-Down resize down +$resizestep
+ hc keybind $Mod-Control-Up resize up +$resizestep
+ hc keybind $Mod-Control-Right resize right +$resizestep
#+END_SRC
@@ -179,7 +179,6 @@ Resizing frames and floating clients.
*** Basic definitions
#+BEGIN_SRC shell
- # tags
tag_names=( {1..9} )
tag_keys=( {1..9} 0 )
@@ -283,18 +282,32 @@ different tag!
hc set frame_border_width 1
hc set always_show_frame on
hc set frame_bg_transparent on
- hc set frame_transparent_width 5
- hc set frame_gap 0
+ hc set frame_transparent_width 3
+#+END_SRC
+
+We have a grand total of 4 pixels dedicated to the frame borders, per
+frame---so six pixels wasted at most.
+
+
+** Gap between frames
+
+We set no gap between frames and other frames/monitors.
+
+#+BEGIN_SRC shell
+ hc set frame_gap 0
#+END_SRC
** Windows
+
+*** Basic
+
#+BEGIN_SRC shell
hc attr theme.title_height 24
hc attr theme.title_font 'Hack:pixelsize=20' # example using Xft
# hc attr theme.title_font '-*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*'
- hc attr theme.padding_top 4 # space below the title's baseline (i.e. text depth)
+ hc attr theme.padding_top 10 # space below the title's baseline (i.e. text depth)
hc attr theme.active.color '#345F0Cef'
hc attr theme.title_color '#ffffff'
hc attr theme.normal.color '#323232dd'
@@ -302,7 +315,7 @@ different tag!
hc attr theme.normal.title_color '#898989'
hc attr theme.inner_width 1
hc attr theme.inner_color black
- hc attr theme.border_width 3
+ hc attr theme.border_width 1
hc attr theme.floating.border_width 12
hc attr theme.floating.outer_width 1
hc attr theme.floating.outer_color black
@@ -323,28 +336,39 @@ Copy ~inner_color~ to ~outer_color~.
#+END_SRC
-** Window appearance
+*** Appearance
Gap between windows, tiled in a frame.
#+BEGIN_SRC shell
- hc set window_gap 24
+ hc set window_gap 32
#+END_SRC
-We could reserve extra room on the edges of a given frame.
+We could reserve extra room on the edges common to all the tiled
+windows. (Despite being a frame parameter, it really applies to the
+sum total of tiled windows in a given frame, so it belongs to this
+section).
#+BEGIN_SRC shell
hc set frame_padding 0
#+END_SRC
-If only one window exists in a given frame, no border gap is added. If
-only one frame exists on a given monitor, no border gap is added.
+If only one frame exists on a given monitor, no border gap is added to
+the unique frame. But since we set the frame gap to 0, this has no
+effect.
+
+#+BEGIN_SRC shell
+ hc set smart_frame_surroundings off
+#+END_SRC
+
+If only one window exists in a given frame, the border gap between the
+window and the frame may be omitted.
#+BEGIN_SRC shell
hc set smart_window_surroundings off
- hc set smart_frame_surroundings on
#+END_SRC
+
#+BEGIN_SRC shell
hc set mouse_recenter_gap 0
#+END_SRC
@@ -390,7 +414,17 @@ First, we cancel all previously bound rules.
** Panel
-#+BEGIN_SRC shell :tangle no
+So nice
+
+
+** TODO Vanilla shell panel
+# Add panel in here, literally
+
+#+BEGIN_SRC shell
+
+#+END_SRC
+
+#+BEGIN_SRC shell
panel=~/.config/herbstluftwm/panel.sh
[ -x "$panel" ] || panel=/etc/xdg/herbstluftwm/panel.sh
for monitor in $(hc list_monitors | cut -d: -f1) ; do
Copyright 2019--2024 Marius PETER