summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryushyin <yushyin@saga>2019-06-11 10:23:50 +0200
committeryushyin <yushyin@saga>2019-06-11 10:23:50 +0200
commitbd75e47f7137693dc3e021218c9ba1acf61f9dda (patch)
treef73dcd43d15d11e1dda2a9cc76445f9a803ccbc9
parent614eb79f5271b3c2a5f1c62e57dd8a5be161d76c (diff)
downloaddotfiles-igor-bd75e47f7137693dc3e021218c9ba1acf61f9dda.tar.gz
dotfiles-igor-bd75e47f7137693dc3e021218c9ba1acf61f9dda.tar.xz
hlwm config
-rwxr-xr-xherbstluftwm/files/autostart77
1 files changed, 47 insertions, 30 deletions
diff --git a/herbstluftwm/files/autostart b/herbstluftwm/files/autostart
index 31269d8..edb2d9a 100755
--- a/herbstluftwm/files/autostart
+++ b/herbstluftwm/files/autostart
@@ -8,8 +8,6 @@ hc() {
hc emit_hook reload
-xsetroot -solid '#5A8E3A'
-
# remove all existing keybindings
hc keyunbind --all
@@ -64,7 +62,7 @@ hc keybind $Mod-Control-Up resize up +$resizestep
hc keybind $Mod-Control-Right resize right +$resizestep
# tags
-tag_names=( {1..9} )
+tag_names=( eins zwei drei vier )
tag_keys=( {1..9} 0 )
hc rename default "${tag_names[0]}" || true
@@ -72,7 +70,7 @@ for i in ${!tag_names[@]} ; do
hc add "${tag_names[$i]}"
key="${tag_keys[$i]}"
if ! [ -z "$key" ] ; then
- hc keybind "$Mod-$key" use_index "$i"
+ hc keybind "$Mod-$key" substitute PRE tags.focus.index chain + use_index "$i" + or , compare tags.focus.index != PRE , use_previous
hc keybind "$Mod-Shift-$key" move_index "$i"
fi
done
@@ -107,43 +105,61 @@ hc keybind $Mod-Shift-Tab cycle_all -1
hc keybind $Mod-c cycle
hc keybind $Mod-i jumpto urgent
-# theme
-hc attr theme.tiling.reset 1
-hc attr theme.floating.reset 1
-hc set frame_border_active_color '#222222'
-hc set frame_border_normal_color '#101010'
-hc set frame_bg_normal_color '#565656'
-hc set frame_bg_active_color '#345F0C'
+# colors
hc set frame_border_width 1
+hc set window_border_width 3
+hc set window_border_inner_width 1
hc set always_show_frame 1
hc set frame_bg_transparent 1
hc set frame_transparent_width 5
hc set frame_gap 4
-
-hc attr theme.active.color '#9fbc00'
-hc attr theme.normal.color '#454545'
-hc attr theme.urgent.color orange
-hc attr theme.inner_width 1
-hc attr theme.inner_color black
-hc attr theme.border_width 3
-hc attr theme.floating.border_width 4
-hc attr theme.floating.outer_width 1
-hc attr theme.floating.outer_color black
-hc attr theme.active.inner_color '#3E4A00'
-hc attr theme.active.outer_color '#3E4A00'
-hc attr theme.background_color '#141414'
-
-hc set window_gap 0
-hc set frame_padding 0
+hc set window_gap -2
+hc set frame_padding 2
hc set smart_window_surroundings 0
hc set smart_frame_surroundings 1
hc set mouse_recenter_gap 0
+hc set auto_detect_monitors 1
+
+base16_monokai() {
+ local base00="#272822"
+ local base01="#383830"
+ local base02="#49483e"
+ local base03="#75715e"
+ local base04="#a59f85"
+ local base05="#f8f8f2"
+ local base06="#f5f4f1"
+ local base07="#f9f8f5"
+ local base08="#f92672"
+ local base09="#fd971f"
+ local base0a="#f4bf75"
+ local base0b="#a6e22e"
+ local base0c="#a1efe4"
+ local base0d="#66d9ef"
+ local base0e="#ae81ff"
+ local base0f="#cc6633"
+
+ hc set frame_bg_normal_color $base02
+ hc set frame_bg_active_color $base0a
+ hc set frame_border_normal_color $base00
+ hc set frame_border_active_color $base03
+
+ hc set_attr theme.color $base00
+ hc set_attr theme.background_color $base02
+ hc set_attr theme.normal.color $base01
+ hc set_attr theme.active.color $base09
+ hc set_attr theme.active.background_color $base0a
+ hc set_attr theme.urgent.color $base08
+ hc set_attr theme.floating.active.color $base0d
+ hc set_attr theme.floating.urgent.color $base0e
+ hc set_attr theme.floating.background_color $base0c
+}
+
+base16_monokai
# rules
hc unrule -F
#hc rule class=XTerm tag=3 # move all xterms to tag 3
-hc rule focus=on # normally focus new clients
-#hc rule focus=off # normally do not focus new clients
+hc rule focus=off # normally do not focus new clients
# give focus to most common terminals
#hc rule class~'(.*[Rr]xvt.*|.*[Tt]erm|Konsole)' focus=on
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' pseudotile=on
@@ -158,7 +174,8 @@ hc unlock
# do multi monitor setup here, e.g.:
# hc set_monitors 1280x1024+0+0 1280x1024+1280+0
# or simply:
-# hc detect_monitors
+
+hc detect_monitors
# find the panel
panel=~/.config/herbstluftwm/panel.sh