aboutsummaryrefslogtreecommitdiffstats
path: root/herbstluftwm
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2015-08-25 21:40:38 +0200
committerGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2015-08-25 21:40:38 +0200
commit7b2dae6bbe96dcad354fe8cd88bdf736e84aa19c (patch)
treea0c14a490d6105d3ac7ac2a0d41ec1dfe29dc647 /herbstluftwm
parent3d6f9d261ecee8805c763d5fc3aba7af5ed9610b (diff)
downloaddotfiles-7b2dae6bbe96dcad354fe8cd88bdf736e84aa19c.tar.gz
dotfiles-7b2dae6bbe96dcad354fe8cd88bdf736e84aa19c.tar.bz2
dotfiles-7b2dae6bbe96dcad354fe8cd88bdf736e84aa19c.zip
Added more geeky tag names
Diffstat (limited to 'herbstluftwm')
-rwxr-xr-xherbstluftwm/.config/herbstluftwm/autostart18
-rwxr-xr-xherbstluftwm/.config/herbstluftwm/panel.sh5
-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
6dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
7
8# Herbstclient shortcut
5hc() { 9hc() {
6 herbstclient "$@" 10 herbstclient "$@"
7} 11}
8 12
9#Include the theming script 13#Include the theming script
10dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 14source "$dir/theme"
11source "$dir/theme.sh"
12 15
13#Detect monitors 16#Detect monitors
14hc set auto_detect_monitors 1 17hc set auto_detect_monitors 1
@@ -20,8 +23,15 @@ panel_w=$(echo "$monitor_w - (2 * $window_p)" | bc)
20dmenu_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" 23dmenu_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
23tag_names=( I II III IV V VI VII VIII IX X ) 26tag_names=()
24tag_keys=( {1..9} 0 ) 27tag_keys=({1..9} 0)
28for 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)
34done;
25 35
26# Source hlwm-config-files 36# Source hlwm-config-files
27source "$dir/hlwm-keybindings" 37source "$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
3dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
4
3hc() { 5hc() {
4 "${herbstclient_command[@]:-herbstclient}" "$@" ; 6 "${herbstclient_command[@]:-herbstclient}" "$@" ;
5} 7}
6 8
7dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 9source "$dir/theme"
8source "$dir/theme.sh"
9source "$dir/panel_indicators.sh" 10source "$dir/panel_indicators.sh"
10 11
11monitor=${1:-0} 12monitor=${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