diff options
Diffstat (limited to 'herbstluftwm/.config')
| -rwxr-xr-x | herbstluftwm/.config/herbstluftwm/autostart | 15 | ||||
| -rw-r--r-- | herbstluftwm/.config/herbstluftwm/hlwm-keybindings | 2 | ||||
| -rwxr-xr-x | herbstluftwm/.config/herbstluftwm/start_panel.sh | 32 | ||||
| -rw-r--r-- | herbstluftwm/.config/herbstluftwm/themes/mountain-forest | 32 | ||||
| -rw-r--r-- | herbstluftwm/.config/herbstluftwm/themes/purpur | 1 | ||||
| -rw-r--r-- | herbstluftwm/.config/herbstluftwm/themes/template | 32 | ||||
| -rw-r--r-- | herbstluftwm/.config/herbstluftwm/wallpapers/mountain-forest.jpg | bin | 0 -> 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 | ||
| 12 | source "$HLWM_CONF_DIR/hlwm-theming" | 12 | source "$HLWM_CONF_DIR/hlwm-theming" |
| 13 | 13 | ||
| 14 | #Panel and HLWM_WINDOW_PADDING | 14 | #Dmenu opts |
| 15 | monitor_w=($(hc list_monitors | sed 's/^[0-9]: \([0-9]*\)x.*$/\1/')) | 15 | dmenu_screen=0 |
| 16 | panel_w=$(echo "$monitor_w - (2 * $HLWM_WINDOW_PADDING)" | bc) | 16 | dmenu_width=400 |
| 17 | dmenu_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" | 17 | dmenu_height=30 |
| 18 | dmenu_lines=9 | ||
| 19 | dmenu_title="Run:" | ||
| 20 | |||
| 21 | geometry=($(hc monitor_rect $dmenu_screen)) | ||
| 22 | |||
| 23 | dmenu_x=$(echo "(${geometry[2]} / 2) - ($dmenu_width / 2)" | bc) | ||
| 24 | dmenu_y="${geometry[1]}" | ||
| 18 | 25 | ||
| 19 | # Tags | 26 | # Tags |
| 20 | tag_names=() | 27 | tag_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 | |||
| 10 | hc keybind $Mod-Shift-r chain , spawn echo "!! HLWM reload config !!" , reload | 10 | hc keybind $Mod-Shift-r chain , spawn echo "!! HLWM reload config !!" , reload |
| 11 | hc keybind $Mod-Shift-c close | 11 | hc keybind $Mod-Shift-c close |
| 12 | hc keybind $Mod-Return spawn xterm | 12 | hc keybind $Mod-Return spawn xterm |
| 13 | hc keybind $Mod-grave spawn dmenu_run $dmenu_opts | 13 | hc 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 |
| 14 | hc keybind XF86AudioLowerVolume spawn amixer set Master 1%- | 14 | hc keybind XF86AudioLowerVolume spawn amixer set Master 1%- |
| 15 | hc keybind XF86AudioRaiseVolume spawn amixer set Master 1%+ | 15 | hc 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 |
| 11 | fi | 11 | fi |
| 12 | 12 | ||
| 13 | monitor_x=${geometry[0]} | ||
| 14 | monitor_y=${geometry[1]} | ||
| 15 | monitor_w=${geometry[2]} | ||
| 16 | monitor_h=${geometry[3]} | ||
| 17 | |||
| 13 | # Make sure only one instanve per monitor is running | 18 | # Make sure only one instanve per monitor is running |
| 14 | pids=$(ps x | grep "$0 $monitor" | awk '{print $1}') | 19 | pids=$(ps x | grep "$0 $monitor" | awk '{print $1}') |
| 15 | for pid in $pids; do | 20 | for pid in $pids; do |
| @@ -18,13 +23,30 @@ for pid in $pids; do | |||
| 18 | fi | 23 | fi |
| 19 | done | 24 | done |
| 20 | 25 | ||
| 21 | # Geometry has the format W H X Y | 26 | padding=(0 0 0 0) |
| 22 | x=$(echo "${geometry[0]} + $HLWM_WINDOW_PADDING" | bc) | 27 | |
| 23 | y=$(echo "${geometry[1]} + $HLWM_WINDOW_PADDING" | bc) | 28 | if [ -n "$HLWM_PANEL_MARGIN" ]; then |
| 24 | panel_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]}) | ||
| 32 | else | ||
| 33 | panel_td_margin=$HLWM_WINDOW_PADDING | ||
| 34 | panel_lr_margin=$HLWM_WINDOW_PADDING | ||
| 35 | fi | ||
| 36 | |||
| 37 | x=$(echo "$monitor_x + $panel_lr_margin" | bc) | ||
| 38 | panel_width=$(echo "$monitor_w - (2 * $panel_lr_margin)" | bc) | ||
| 39 | |||
| 40 | if $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) | ||
| 43 | else | ||
| 44 | y=$(echo "$monitor_y + $panel_td_margin" | bc) | ||
| 45 | padding[0]=$(echo "$HLWM_PANEL_HEIGHT + $panel_td_margin" | bc) | ||
| 46 | fi | ||
| 25 | 47 | ||
| 26 | # Apply padding to make room for the panel | 48 | # Apply padding to make room for the panel |
| 27 | hc pad $monitor $(echo "$HLWM_PANEL_HEIGHT + $HLWM_WINDOW_PADDING" | bc) | 49 | hc 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 | |||
| 3 | declare -A colors | ||
| 4 | colors=(["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 | ||
| 15 | export HLWM_WALLPAPER="$HLWM_CONF_DIR/wallpapers/mountain-forest.jpg" | ||
| 16 | |||
| 17 | # Shadow | ||
| 18 | export HLWM_COMPOSITING=true | ||
| 19 | |||
| 20 | # Padding | ||
| 21 | export HLWM_WINDOW_PADDING=20 | ||
| 22 | |||
| 23 | # Panel | ||
| 24 | export HLWM_PANEL_HEIGHT=25 | ||
| 25 | export HLWM_PANEL_FONT="DejaVu Sans Mono-10" | ||
| 26 | export HLWM_PANEL_BOTTOM=true | ||
| 27 | export HLWM_PANEL_MARGIN="0 0" # Up/Down Left/Right (-1 is respects $HLWM_WINDOW_PADDING) | ||
| 28 | |||
| 29 | # Colors | ||
| 30 | export HLWM_FG_COLOR=${colors["foreground"]} | ||
| 31 | export HLWM_ACCENT_COLOR=${colors["color6"]} | ||
| 32 | export 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 |
| 24 | export HLWM_PANEL_HEIGHT=25 | 24 | export HLWM_PANEL_HEIGHT=25 |
| 25 | export HLWM_PANEL_FONT="DejaVu Sans Mono-10" | 25 | export HLWM_PANEL_FONT="DejaVu Sans Mono-10" |
| 26 | export HLWM_PANEL_BOTTOM=false | ||
| 26 | 27 | ||
| 27 | # Colors | 28 | # Colors |
| 28 | export HLWM_FG_COLOR=${colors["foreground"]} | 29 | export 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 | |||
| 3 | declare -A colors | ||
| 4 | colors=(["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 | ||
| 15 | export HLWM_WALLPAPER="$HLWM_CONF_DIR/wallpapers/wallpaper.png" | ||
| 16 | |||
| 17 | # Shadow | ||
| 18 | export HLWM_COMPOSITING=true | ||
| 19 | |||
| 20 | # Padding | ||
| 21 | export HLWM_WINDOW_PADDING=20 | ||
| 22 | |||
| 23 | # Panel | ||
| 24 | export HLWM_PANEL_HEIGHT=25 | ||
| 25 | export HLWM_PANEL_FONT="DejaVu Sans Mono-10" | ||
| 26 | export HLWM_PANEL_BOTTOM=false | ||
| 27 | export HLWM_PANEL_MARGIN="-1 -1" # Up/Down Left/Right (-1 is respects $HLWM_WINDOW_PADDING) | ||
| 28 | |||
| 29 | # Colors | ||
| 30 | export HLWM_FG_COLOR=${colors["foreground"]} | ||
| 31 | export HLWM_ACCENT_COLOR=${colors["color6"]} | ||
| 32 | export 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 | |||
