aboutsummaryrefslogtreecommitdiffstats
path: root/config/herbstluftwm
diff options
context:
space:
mode:
Diffstat (limited to 'config/herbstluftwm')
-rwxr-xr-xconfig/herbstluftwm/autostart193
-rw-r--r--config/herbstluftwm/dependencylist15
-rwxr-xr-xconfig/herbstluftwm/lock.sh7
-rwxr-xr-xconfig/herbstluftwm/notify.sh19
-rwxr-xr-xconfig/herbstluftwm/panel.sh160
-rw-r--r--config/herbstluftwm/panel_indicators.sh127
-rw-r--r--config/herbstluftwm/poligons.pngbin4592375 -> 0 bytes
-rwxr-xr-xconfig/herbstluftwm/popup.sh46
-rwxr-xr-xconfig/herbstluftwm/start.sh13
-rw-r--r--config/herbstluftwm/theme.sh33
10 files changed, 0 insertions, 613 deletions
diff --git a/config/herbstluftwm/autostart b/config/herbstluftwm/autostart
deleted file mode 100755
index 683fbf1..0000000
--- a/config/herbstluftwm/autostart
+++ /dev/null
@@ -1,193 +0,0 @@
1#!/bin/bash
2
3# this is a simple config for herbstluftwm
4
5hc() {
6 herbstclient "$@"
7}
8
9#Include the theming script
10dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
11source "$dir/theme.sh"
12
13#Detect monitors
14hc set auto_detect_monitors 1
15hc detect_monitors
16
17#Panel and window_p
18monitor_w=($(hc list_monitors | sed 's/^[0-9]: \([0-9]*\)x.*$/\1/'))
19panel_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"
21
22# remove all existing keybindings
23hc keyunbind --all
24
25# keybindings
26Mod=Mod4 # Use the super key as the main modifier
27
28hc keybind $Mod-Shift-q quit
29hc keybind $Mod-Shift-r reload
30hc keybind $Mod-Shift-c close
31hc keybind $Mod-Return spawn xterm
32hc keybind $Mod-grave spawn dmenu_run $dmenu_opts
33hc keybind XF86AudioLowerVolume spawn amixer set Master 1%-
34hc keybind XF86AudioRaiseVolume spawn amixer set Master 1%+
35
36# basic movement
37# focusing clients
38#hc keybind $Mod-Left focus left
39#hc keybind $Mod-Down focus down
40#hc keybind $Mod-Up focus up
41#hc keybind $Mod-Right focus right
42hc keybind $Mod-h focus left
43hc keybind $Mod-j focus down
44hc keybind $Mod-k focus up
45hc keybind $Mod-l focus right
46
47# moving clients
48#hc keybind $Mod-Shift-Left shift left
49#hc keybind $Mod-Shift-Down shift down
50#hc keybind $Mod-Shift-Up shift up
51#hc keybind $Mod-Shift-Right shift right
52hc keybind $Mod-Shift-h shift left
53hc keybind $Mod-Shift-j shift down
54hc keybind $Mod-Shift-k shift up
55hc keybind $Mod-Shift-l shift right
56
57# splitting frames
58# create an empty frame at the specified direction
59hc keybind $Mod-u split bottom 0.5
60hc keybind $Mod-o split right 0.5
61# let the current frame explode into subframes
62hc keybind $Mod-Control-space split explode
63
64# resizing frames
65resizestep=0.05
66hc keybind $Mod-Control-h resize left +$resizestep
67hc keybind $Mod-Control-j resize down +$resizestep
68hc keybind $Mod-Control-k resize up +$resizestep
69hc keybind $Mod-Control-l resize right +$resizestep
70#hc keybind $Mod-Control-Left resize left +$resizestep
71#hc keybind $Mod-Control-Down resize down +$resizestep
72#hc keybind $Mod-Control-Up resize up +$resizestep
73#hc keybind $Mod-Control-Right resize right +$resizestep
74
75# tags
76tag_names=( I II III IV V VI VII VIII IX X )
77tag_keys=( {1..9} 0 )
78
79# Selecting workspaces
80#hc keybind Alt-Control-Left use_index -1
81#hc keybind Alt-Control-Right use_index +1
82hc keybind Alt-Control-h use_index -1
83hc keybind Alt-Control-l use_index +1
84hc rename default "${tag_names[0]}" || true
85for i in ${!tag_names[@]} ; do
86 hc add "${tag_names[$i]}"
87 key="${tag_keys[$i]}"
88 if ! [ -z "$key" ] ; then
89 hc keybind "$Mod-$key" use_index "$i"
90 hc keybind "$Mod-Shift-$key" move_index "$i"
91 fi
92done
93
94# cycle through tags
95hc keybind $Mod-period use_index +1 --skip-visible
96hc keybind $Mod-comma use_index -1 --skip-visible
97
98# layouting
99hc keybind $Mod-r remove
100hc keybind $Mod-space cycle_layout 1
101hc keybind $Mod-s floating toggle
102hc keybind $Mod-f fullscreen toggle
103hc keybind $Mod-p pseudotile toggle
104
105# mouse
106hc mouseunbind --all
107hc mousebind $Mod-Button1 move
108hc mousebind $Mod-Button2 zoom
109hc mousebind $Mod-Button3 resize
110
111# focus
112hc keybind $Mod-BackSpace cycle_monitor
113hc keybind $Mod-Tab cycle_all +1
114hc keybind $Mod-Shift-Tab cycle_all -1
115hc keybind $Mod-c cycle
116hc keybind $Mod-i jumpto urgent
117hc set focus_follows_mouse 1
118
119# theme
120hc attr theme.tiling.reset 1
121hc attr theme.floating.reset 1
122hc set frame_border_width 0
123hc set always_show_frame 0
124hc set frame_bg_transparent 1
125hc set frame_normal_opacity 0
126hc set frame_active_opacity 0
127hc set frame_transparent_width 0
128hc set frame_gap 0
129
130hc attr theme.active.color $color_accent
131hc attr theme.normal.color $color_bg
132hc attr theme.urgent.color orange
133hc attr theme.inner_width 1
134hc attr theme.inner_color $color_bg
135hc attr theme.border_width 3
136hc attr theme.floating.border_width 4
137hc attr theme.floating.outer_width 1
138hc attr theme.floating.outer_color $color_bg
139hc attr theme.active.inner_color $color_bg
140hc attr theme.active.outer_color $color_bg
141hc attr theme.background_color $color_bg
142
143hc set window_gap $window_p
144hc set frame_padding 0
145hc set smart_window_surroundings 0
146hc set smart_frame_surroundings 1
147hc set mouse_recenter_gap 1
148
149# rules
150hc unrule -F
151hc rule focus=on # normally focus new clients
152
153#hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' pseudotile=on
154hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
155hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off
156
157hc rule --class~'(.*[Ss]team.*)' --tag=IX --focus=off
158hc rule --class~'(.*[Hh]exchat.*)' --tag=X --focus=off
159hc rule --class~'(.*[Ss]potify.*)' --tag=X --focus=off
160hc rule --class~'(.*[Ss]kype.*)' --tag=VIII --focus=off
161
162# unlock, just to be sure
163hc unlock
164
165herbstclient set tree_style '╾│ ├└╼─┐'
166
167#Start panel in all monitors
168start_panel() {
169 for monitor in $(herbstclient list_monitors | cut -d: -f1) ; do
170 "$1" $monitor&
171 done
172}
173
174# find the panel
175panel=$dir/panel.sh
176[ -x "$panel" ] || panel=/etc/xdg/herbstluftwm/panel.sh
177if pgrep panel.sh >> /dev/null
178then
179 kill $(pgrep panel.sh)
180 start_panel $panel
181else
182 start_panel $panel
183fi
184
185pulseaudio --start
186
187$dir/start.sh "xautolock -time 5 -locker $dir/lock.sh"
188$dir/start.sh "feh --bg-fill $wallpaper"
189$dir/start.sh "compton --config $HOME/.compton"
190$dir/start.sh "xrdb -load $HOME/.Xresources"
191$dir/start.sh "xset +fp /usr/share/fonts/local"
192$dir/start.sh "xset fp rehash"
193#$dir/start.sh "$dir/notify.sh $dir/popup.sh"
diff --git a/config/herbstluftwm/dependencylist b/config/herbstluftwm/dependencylist
deleted file mode 100644
index 7d3babf..0000000
--- a/config/herbstluftwm/dependencylist
+++ /dev/null
@@ -1,15 +0,0 @@
1alsa-utils
2bar-aint-recursive
3bc
4compton
5dmenu2
6feh
7i3lock
8playerctl
9pulseaudio
10pulseaudio-alsa
11scrot
12sed
13stlarch_font
14wireless_tools
15xautolock
diff --git a/config/herbstluftwm/lock.sh b/config/herbstluftwm/lock.sh
deleted file mode 100755
index 04c4638..0000000
--- a/config/herbstluftwm/lock.sh
+++ /dev/null
@@ -1,7 +0,0 @@
1#!/bin/bash
2
3SCREENCAP="/tmp/lock.png"
4scrot $SCREENCAP
5convert -gaussian-blur "12x3" $SCREENCAP $SCREENCAP
6i3lock -i $SCREENCAP
7rm $SCREENCAP
diff --git a/config/herbstluftwm/notify.sh b/config/herbstluftwm/notify.sh
deleted file mode 100755
index 40c5330..0000000
--- a/config/herbstluftwm/notify.sh
+++ /dev/null
@@ -1,19 +0,0 @@
1#!/bin/bash
2
3while true; do
4
5 bat_lvl=$(cat /sys/class/power_supply/BAT1/capacity)
6 bat_stat=$(cat /sys/class/power_supply/BAT1/status)
7
8 if [[ $bat_lvl -le 5 && $bat_stat == "Discharging" ]]; then
9 $1 -m "Battery level critical: $bat_lvl%%" -u "high"
10 elif [[ $bat_lvl -eq 10 && $bat_stat == "Discharging" ]]; then
11 $1 -m "Battery level low: $bat_lvl%%"