summaryrefslogtreecommitdiff
path: root/herbstluftwm-autostart.org
diff options
context:
space:
mode:
Diffstat (limited to 'herbstluftwm-autostart.org')
-rwxr-xr-xherbstluftwm-autostart.org69
1 files changed, 42 insertions, 27 deletions
diff --git a/herbstluftwm-autostart.org b/herbstluftwm-autostart.org
index 7e605ba..a9df8e1 100755
--- a/herbstluftwm-autostart.org
+++ b/herbstluftwm-autostart.org
@@ -12,6 +12,7 @@
#+MACRO: hl Herbstluftwm
+
* Introduction
This is my literate configuration for {{{hl}}}. It is a manual tiling
@@ -29,6 +30,8 @@ window manager and has the particularity of being configured via the
** Definitions
+We begin by defining a shorthand name for the ~herbstclient~ program:
+
#+BEGIN_SRC shell
hc() {
herbstclient "$@"
@@ -89,6 +92,7 @@ We remove all existing keybindings.
hc keybind $Mod-Shift-c close
#+END_SRC
+
** Spawn a terminal
We use our $TERMINAL with ~xfce4-terminal~ as fallback.
@@ -240,6 +244,11 @@ This is a ``shorter'' shortcut.
#+END_SRC
+*** Jump to to next urgent program
+
+Super useful when getting prompted for permissions in a browser on a
+different tag!
+
#+BEGIN_SRC shell
hc keybind $Mod-i jumpto urgent
#+END_SRC
@@ -251,7 +260,7 @@ This is a ``shorter'' shortcut.
** Basic
#+BEGIN_SRC shell
- hc attr theme.tiling.reset 1
+ hc attr theme.tiling.reset 1
hc attr theme.floating.reset 1
#+END_SRC
@@ -261,38 +270,42 @@ This is a ``shorter'' shortcut.
#+BEGIN_SRC shell
hc set frame_border_active_color '#222222cc'
hc set frame_border_normal_color '#101010cc'
- hc set frame_bg_normal_color '#565656aa'
- hc set frame_bg_active_color '#345F0Caa'
- 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_bg_normal_color '#565656aa'
+ hc set frame_bg_active_color '#345F0Caa'
+ 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
#+END_SRC
** Windows
#+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.active.color '#345F0Cef'
- hc attr theme.title_color '#ffffff'
- hc attr theme.normal.color '#323232dd'
- hc attr theme.urgent.color '#7811A1dd'
- 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.floating.border_width 12
- hc attr theme.floating.outer_width 1
- hc attr theme.floating.outer_color black
- hc attr theme.active.inner_color '#789161'
- hc attr theme.urgent.inner_color '#9A65B0'
- hc attr theme.normal.inner_color '#606060'
- # copy inner color to outer_color
+ 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.active.color '#345F0Cef'
+ hc attr theme.title_color '#ffffff'
+ hc attr theme.normal.color '#323232dd'
+ hc attr theme.urgent.color '#7811A1dd'
+ 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.floating.border_width 12
+ hc attr theme.floating.outer_width 1
+ hc attr theme.floating.outer_color black
+ hc attr theme.active.inner_color '#789161'
+ hc attr theme.urgent.inner_color '#9A65B0'
+ hc attr theme.normal.inner_color '#606060'
+#+END_SRC
+
+Copy ~inner_color~ to ~outer_color~.
+
+#+BEGIN_SRC shell
for state in active urgent normal ; do
hc substitute C theme.${state}.inner_color \
attr theme.${state}.outer_color C
@@ -331,6 +344,8 @@ only one frame exists on a given monitor, no border gap is added.
** Rules
+First, we cancel all previously bound rules.
+
#+BEGIN_SRC shell
hc unrule -F
#hc rule class=XTerm tag=3 # move all xterms to tag 3
Copyright 2019--2024 Marius PETER