aboutsummaryrefslogtreecommitdiffstats
path: root/herbstluftwm/.config
diff options
context:
space:
mode:
Diffstat (limited to 'herbstluftwm/.config')
-rwxr-xr-xherbstluftwm/.config/herbstluftwm/autostart15
-rw-r--r--herbstluftwm/.config/herbstluftwm/hlwm-keybindings2
-rwxr-xr-xherbstluftwm/.config/herbstluftwm/start_panel.sh32
-rw-r--r--herbstluftwm/.config/herbstluftwm/themes/mountain-forest32
-rw-r--r--herbstluftwm/.config/herbstluftwm/themes/purpur1
-rw-r--r--herbstluftwm/.config/herbstluftwm/themes/template32
-rw-r--r--herbstluftwm/.config/herbstluftwm/wallpapers/mountain-forest.jpgbin0 -> 933489 bytes
7 files changed, 104 insertions, 10 deletions
diff --git a/herbstluftwm/.config/herbstluftwm/autostart b/herbstluftwm/.config/herbstluftwm/autostart
index a436283..6d39725 100755
--- a/herbstluftwm/.config/herbstluftwm/autostart
+++ b/herbstluftwm/.config/herbstluftwm/autostart
@@ -11,10 +11,17 @@ export HLWM_CONF_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
11 11
12source "$HLWM_CONF_DIR/hlwm-theming" 12source "$HLWM_CONF_DIR/hlwm-theming"
13 13
14#Panel and HLWM_WINDOW_PADDING 14#Dmenu opts
15monitor_w=($(hc list_monitors | sed 's/^[0-9]: \([0-9]*\)x.*$/\1/')) 15dmenu_screen=0
16panel_w=$(echo "$monitor_w - (2 * $HLWM_WINDOW_PADDING)" | bc) 16dmenu_width=400
17dmenu_opts="-h $HLWM_PANEL_HEIGHT -w $panel_w -x $HLWM_WINDOW_PADDING -y $HLWM_WINDOW_PADDING -p Run: -nb $HLWM_BG_COLOR -nf $HLWM_FG_COLOR -sb $HLWM_ACCENT_COLOR -sf $HLWM_BG_COLOR" 17dmenu_height=30
18dmenu_lines=9
19dmenu_title="Run:"
20
21geometry=($(hc monitor_rect $dmenu_screen))
22
23dmenu_x=$(echo "(${geometry[2]} / 2) - ($dmenu_width / 2)" | bc)
24dmenu_y="${geometry[1]}"
18 25
19# Tags 26# Tags
20tag_names=() 27tag_names=()
diff --git a/herbstluftwm/.config/herbstluftwm/hlwm-keybindings b/herbstluftwm/.config/herbstluftwm/hlwm-keybindings
index cc40515..2843a89 100644
--- a/herbstluftwm/.config/herbstluftwm/hlwm-keybindings
+++ b/herbstluftwm/.config/herbstluftwm/hlwm-keybindings
@@ -10,7 +10,7 @@ hc keybind $Mod-Shift-q quit
10hc keybind $Mod-Shift-r chain , spawn echo "!! HLWM reload config !!" , reload 10hc keybind $Mod-Shift-r chain , spawn echo "!! HLWM reload config !!" , reload
11hc keybind $Mod-Shift-c close 11hc keybind $Mod-Shift-c close
12hc keybind $Mod-Return spawn xterm 12hc keybind $Mod-Return spawn xterm
13hc keybind $Mod-grave spawn dmenu_run $dmenu_opts 13hc keybind $Mod-grave spawn dmenu_run -h $dmenu_height -w $dmenu_width -x $dmenu_x -y $dmenu_y -p $dmenu_title -s $dmenu_screen -l $dmenu_lines -fn "$HLWM_PANEL_FONT" -nb $HLWM_BG_COLOR -nf $HLWM_FG_COLOR -sb $HLWM_ACCENT_COLOR -sf $HLWM_BG_COLOR
14hc keybind XF86AudioLowerVolume spawn amixer set Master 1%- 14hc keybind XF86AudioLowerVolume spawn amixer set Master 1%-
15hc keybind XF86AudioRaiseVolume spawn amixer set Master 1%+ 15hc keybind XF86AudioRaiseVolume spawn amixer set Master 1%+
16 16
diff --git a/herbstluftwm/.config/herbstluftwm/start_panel.sh b/herbstluftwm/.config/herbstluftwm/start_panel.sh
index 13ea6e2..4ec4f72 100755
--- a/herbstluftwm/.config/herbstluftwm/start_panel.sh
+++ b/herbstluftwm/.config/herbstluftwm/start_panel.sh
@@ -10,6 +10,11 @@ if [ -z "$geometry" ] ;then
10 exit 1 10 exit 1
11fi 11fi
12 12
13monitor_x=${geometry[0]}
14monitor_y=${geometry[1]}
15monitor_w=${geometry[2]}
16monitor_h=${geometry[3]}
17
13# Make sure only one instanve per monitor is running 18# Make sure only one instanve per monitor is running
14pids=$(ps x | grep "$0 $monitor" | awk '{print $1}') 19pids=$(ps x | grep "$0 $monitor" | awk '{print $1}')
15for pid in $pids; do 20for pid in $pids; do
@@ -18,13 +23,30 @@ for pid in $pids; do
18 fi 23 fi
19done 24done
20 25
21# Geometry has the format W H X Y 26padding=(0 0 0 0)
22x=$(echo "${geometry[0]} + $HLWM_WINDOW_PADDING" | bc) 27
23y=$(echo "${geometry[1]} + $HLWM_WINDOW_PADDING" | bc) 28if [ -n "$HLWM_PANEL_MARGIN" ]; then
24panel_width=$(echo "${geometry[2]} - (2 * $HLWM_WINDOW_PADDING)" | bc) 29 margins=($HLWM_PANEL_MARGIN)
30 panel_td_margin=$([ ${margins[0]} -eq -1 ] && echo $HLWM_WINDOW_PADDING || echo ${margins[0]})
31 panel_lr_margin=$([ ${margins[1]} -eq -1 ] && echo $HLWM_WINDOW_PADDING || echo ${margins[1]})
32else
33 panel_td_margin=$HLWM_WINDOW_PADDING
34 panel_lr_margin=$HLWM_WINDOW_PADDING
35fi
36
37x=$(echo "$monitor_x + $panel_lr_margin" | bc)
38panel_width=$(echo "$monitor_w - (2 * $panel_lr_margin)" | bc)
39
40if $HLWM_PANEL_BOTTOM; then
41 y=$(echo "$monitor_h - $HLWM_PANEL_HEIGHT - $panel_td_margin" | bc)
42 padding[2]=$(echo "$HLWM_PANEL_HEIGHT + $panel_td_margin" | bc)
43else
44 y=$(echo "$monitor_y + $panel_td_margin" | bc)
45 padding[0]=$(echo "$HLWM_PANEL_HEIGHT + $panel_td_margin" | bc)
46fi
25 47
26# Apply padding to make room for the panel 48# Apply padding to make room for the panel
27hc pad $monitor $(echo "$HLWM_PANEL_HEIGHT + $HLWM_WINDOW_PADDING" | bc) 49hc pad $monitor ${padding[@]}
28 50
29# Start the panel 51# Start the panel
30$HLWM_CONF_DIR/populate_panel.sh $monitor | 52$HLWM_CONF_DIR/populate_panel.sh $monitor |
diff --git a/herbstluftwm/.config/herbstluftwm/themes/mountain-forest b/herbstluftwm/.config/herbstluftwm/themes/mountain-forest
new file mode 100644
index 0000000..6e02eca
--- /dev/null
+++ b/herbstluftwm/.config/herbstluftwm/themes/mountain-forest
@@ -0,0 +1,32 @@
1#!/usr/bin/env bash
2
3declare -A colors
4colors=(["background"]="#1d1f21" ["foreground"]="#c5c8c6" # Fore- and Background
5 ["color0"]="#282a2e" ["color8"]="#373b41" # Blacks
6 ["color1"]="#a54242" ["color9"]="#cc6666" # Reds
7 ["color2"]="#8c9440" ["color10"]="#b5bd68" # Greens
8 ["color3"]="#de935f" ["color11"]="#f0c674" # Yellows
9 ["color4"]="#5f819d" ["color12"]="#81a2be" # Blues
10 ["color5"]="#85678f" ["color13"]="#b294bb" # Magentas
11 ["color6"]="#5e8d87" ["color14"]="#8abeb7" # Cyanes
12 ["color7"]="#707880" ["color15"]="#c5c8c6") # Whites
13
14# Wallpaper
15export HLWM_WALLPAPER="$HLWM_CONF_DIR/wallpapers/mountain-forest.jpg"
16
17# Shadow
18export HLWM_COMPOSITING=true
19
20# Padding
21export HLWM_WINDOW_PADDING=20
22
23# Panel
24export HLWM_PANEL_HEIGHT=25
25export HLWM_PANEL_FONT="DejaVu Sans Mono-10"
26export HLWM_PANEL_BOTTOM=true
27export HLWM_PANEL_MARGIN="0 0" # Up/Down Left/Right (-1 is respects $HLWM_WINDOW_PADDING)
28
29# Colors
30export HLWM_FG_COLOR=${colors["foreground"]}
31export HLWM_ACCENT_COLOR=${colors["color6"]}
32export HLWM_BG_COLOR=${colors["background"]}
diff --git a/herbstluftwm/.config/herbstluftwm/themes/purpur b/herbstluftwm/.config/herbstluftwm/themes/purpur
index ee55cb7..a050fcd 100644
--- a/herbstluftwm/.config/herbstluftwm/themes/purpur
+++ b/herbstluftwm/.config/herbstluftwm/themes/purpur
@@ -23,6 +23,7 @@ export HLWM_WINDOW_PADDING=20
23# Panel 23# Panel
24export HLWM_PANEL_HEIGHT=25 24export HLWM_PANEL_HEIGHT=25
25export HLWM_PANEL_FONT="DejaVu Sans Mono-10" 25export HLWM_PANEL_FONT="DejaVu Sans Mono-10"
26export HLWM_PANEL_BOTTOM=false
26 27
27# Colors 28# Colors
28export HLWM_FG_COLOR=${colors["foreground"]} 29export HLWM_FG_COLOR=${colors["foreground"]}
diff --git a/herbstluftwm/.config/herbstluftwm/themes/template b/herbstluftwm/.config/herbstluftwm/themes/template
new file mode 100644
index 0000000..f38520d
--- /dev/null
+++ b/herbstluftwm/.config/herbstluftwm/themes/template
@@ -0,0 +1,32 @@
1#!/usr/bin/env bash
2
3declare -A colors
4colors=(["background"]="#1d1f21" ["foreground"]="#c5c8c6" # Fore- and Background
5 ["color0"]="#282a2e" ["color8"]="#373b41" # Blacks
6 ["color1"]="#a54242" ["color9"]="#cc6666" # Reds
7 ["color2"]="#8c9440" ["color10"]="#b5bd68" # Greens
8 ["color3"]="#de935f" ["color11"]="#f0c674" # Yellows
9 ["color4"]="#5f819d" ["color12"]="#81a2be" # Blues
10 ["color5"]="#85678f" ["color13"]="#b294bb" # Magentas
11 ["color6"]="#5e8d87" ["color14"]="#8abeb7" # Cyanes
12 ["color7"]="#707880" ["color15"]="#c5c8c6") # Whites
13
14# Wallpaper
15export HLWM_WALLPAPER="$HLWM_CONF_DIR/wallpapers/wallpaper.png"
16
17# Shadow
18export HLWM_COMPOSITING=true
19
20# Padding
21export HLWM_WINDOW_PADDING=20
22
23# Panel
24export HLWM_PANEL_HEIGHT=25
25export HLWM_PANEL_FONT="DejaVu Sans Mono-10"
26export HLWM_PANEL_BOTTOM=false
27export HLWM_PANEL_MARGIN="-1 -1" # Up/Down Left/Right (-1 is respects $HLWM_WINDOW_PADDING)
28
29# Colors
30export HLWM_FG_COLOR=${colors["foreground"]}
31export HLWM_ACCENT_COLOR=${colors["color6"]}
32export HLWM_BG_COLOR=${colors["background"]}
diff --git a/herbstluftwm/.config/herbstluftwm/wallpapers/mountain-forest.jpg b/herbstluftwm/.config/herbstluftwm/wallpapers/mountain-forest.jpg
new file mode 100644
index 0000000..f44753f
--- /dev/null
+++ b/herbstluftwm/.config/herbstluftwm/wallpapers/mountain-forest.jpg
Binary files differ