From 247bcfe668d6c86b2441c272b5fc31dcde1b07cf Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Sun, 15 Aug 2021 19:14:20 -0700 Subject: Pretty alignment. --- herbstluftwm-autostart.org | 69 ++++++++++++++++++++++++++++------------------ 1 file 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 -- cgit v1.2.3