diff options
| author | 2015-08-25 21:40:38 +0200 | |
|---|---|---|
| committer | 2015-08-25 21:40:38 +0200 | |
| commit | 7b2dae6bbe96dcad354fe8cd88bdf736e84aa19c (patch) | |
| tree | a0c14a490d6105d3ac7ac2a0d41ec1dfe29dc647 /herbstluftwm | |
| parent | 3d6f9d261ecee8805c763d5fc3aba7af5ed9610b (diff) | |
| download | dotfiles-7b2dae6bbe96dcad354fe8cd88bdf736e84aa19c.tar.gz dotfiles-7b2dae6bbe96dcad354fe8cd88bdf736e84aa19c.tar.bz2 dotfiles-7b2dae6bbe96dcad354fe8cd88bdf736e84aa19c.zip | |
Added more geeky tag names
Diffstat (limited to 'herbstluftwm')
| -rwxr-xr-x | herbstluftwm/.config/herbstluftwm/autostart | 18 | ||||
| -rwxr-xr-x | herbstluftwm/.config/herbstluftwm/panel.sh | 5 | ||||
| -rw-r--r-- | herbstluftwm/.config/herbstluftwm/theme (renamed from herbstluftwm/.config/herbstluftwm/theme.sh) | 0 |
3 files changed, 17 insertions, 6 deletions
diff --git a/herbstluftwm/.config/herbstluftwm/autostart b/herbstluftwm/.config/herbstluftwm/autostart index 416c38a..7a80b1c 100755 --- a/herbstluftwm/.config/herbstluftwm/autostart +++ b/herbstluftwm/.config/herbstluftwm/autostart | |||
| @@ -2,13 +2,16 @@ | |||
| 2 | 2 | ||
| 3 | # this is a simple config for herbstluftwm | 3 | # this is a simple config for herbstluftwm |
| 4 | 4 | ||
| 5 | # The current directory | ||
| 6 | dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
| 7 | |||
| 8 | # Herbstclient shortcut | ||
| 5 | hc() { | 9 | hc() { |
| 6 | herbstclient "$@" | 10 | herbstclient "$@" |
| 7 | } | 11 | } |
| 8 | 12 | ||
| 9 | #Include the theming script | 13 | #Include the theming script |
| 10 | dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | 14 | source "$dir/theme" |
| 11 | source "$dir/theme.sh" | ||
| 12 | 15 | ||
| 13 | #Detect monitors | 16 | #Detect monitors |
| 14 | hc set auto_detect_monitors 1 | 17 | hc set auto_detect_monitors 1 |
| @@ -20,8 +23,15 @@ panel_w=$(echo "$monitor_w - (2 * $window_p)" | bc) | |||
| 20 | dmenu_opts="-h $panel_h -w $panel_w -x $window_p -y $window_p -p Run: -nb $color_bg -nf $color_fg -sb $color_accent -sf $color_bg" | 23 | dmenu_opts="-h $panel_h -w $panel_w -x $window_p -y $window_p -p Run: -nb $color_bg -nf $color_fg -sb $color_accent -sf $color_bg" |
| 21 | 24 | ||
| 22 | # Tags | 25 | # Tags |
| 23 | tag_names=( I II III IV V VI VII VIII IX X ) | 26 | tag_names=() |
| 24 | tag_keys=( {1..9} 0 ) | 27 | tag_keys=({1..9} 0) |
| 28 | for key in ${tag_keys[@]}; do | ||
| 29 | if [ $key -eq 0 ]; then key=10; fi | ||
| 30 | key=$(echo "$key - 1" | bc) | ||
| 31 | echo $key | ||
| 32 | name=$(echo "obase=2;$key" | bc | awk '{ printf "%04d", $0 }') | ||
| 33 | tag_names+=($name) | ||
| 34 | done; | ||
| 25 | 35 | ||
| 26 | # Source hlwm-config-files | 36 | # Source hlwm-config-files |
| 27 | source "$dir/hlwm-keybindings" | 37 | source "$dir/hlwm-keybindings" |
diff --git a/herbstluftwm/.config/herbstluftwm/panel.sh b/herbstluftwm/.config/herbstluftwm/panel.sh index 41952a6..b1ecebe 100755 --- a/herbstluftwm/.config/herbstluftwm/panel.sh +++ b/herbstluftwm/.config/herbstluftwm/panel.sh | |||
| @@ -1,11 +1,12 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | 2 | ||
| 3 | dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
| 4 | |||
| 3 | hc() { | 5 | hc() { |
| 4 | "${herbstclient_command[@]:-herbstclient}" "$@" ; | 6 | "${herbstclient_command[@]:-herbstclient}" "$@" ; |
| 5 | } | 7 | } |
| 6 | 8 | ||
| 7 | dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | 9 | source "$dir/theme" |
| 8 | source "$dir/theme.sh" | ||
| 9 | source "$dir/panel_indicators.sh" | 10 | source "$dir/panel_indicators.sh" |
| 10 | 11 | ||
| 11 | monitor=${1:-0} | 12 | monitor=${1:-0} |
diff --git a/herbstluftwm/.config/herbstluftwm/theme.sh b/herbstluftwm/.config/herbstluftwm/theme index 3192abb..3192abb 100644 --- a/herbstluftwm/.config/herbstluftwm/theme.sh +++ b/herbstluftwm/.config/herbstluftwm/theme | |||
