aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xherbstluftwm/.config/herbstluftwm/autostart9
-rwxr-xr-xherbstluftwm/code/sys/herbstluftwm-add-gap11
-rwxr-xr-xherbstluftwm/code/sys/herbstluftwm-remove-gap13
3 files changed, 19 insertions, 14 deletions
diff --git a/herbstluftwm/.config/herbstluftwm/autostart b/herbstluftwm/.config/herbstluftwm/autostart
index 7d512e2..9f38750 100755
--- a/herbstluftwm/.config/herbstluftwm/autostart
+++ b/herbstluftwm/.config/herbstluftwm/autostart
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# ██ ██ ██ ██ ████ ██
# ░██ ░██ ░██ ░██ ░██░ ░██
@@ -26,7 +26,7 @@ killall stalonetray
killall conky
# gap counter
-echo 30 > /tmp/herbstluftwm-gap
+echo 35 > /tmp/herbstluftwm-gap
# keybindings
Mod=Mod4
@@ -147,7 +147,7 @@ hc attr theme.active.inner_color '#272822'
hc attr theme.active.outer_color '#000000'
hc attr theme.background_color '#141414'
-hc set window_gap 30
+hc set window_gap 35
hc set frame_padding 0
hc set smart_window_surroundings 0
hc set smart_frame_surroundings 1
@@ -178,7 +178,8 @@ hc detect_monitors
#panel=~/.config/herbstluftwm/conkypanel
panel=~/.config/herbstluftwm/panel.sh
[ -x "$panel" ] || panel=/etc/xdg/herbstluftwm/panel.sh
-for monitor in $(herbstclient list_monitors | cut -d: -f1) ; do
+for monitor in $(herbstclient list_monitors | cut -d: -f1)
+do
# start it on each monitor
"$panel" $monitor &
done
diff --git a/herbstluftwm/code/sys/herbstluftwm-add-gap b/herbstluftwm/code/sys/herbstluftwm-add-gap
index 08b5a03..cc5492c 100755
--- a/herbstluftwm/code/sys/herbstluftwm-add-gap
+++ b/herbstluftwm/code/sys/herbstluftwm-add-gap
@@ -1,9 +1,12 @@
-#!/bin/bash
+#!/bin/sh
filename="/tmp/herbstluftwm-gap"
while read -r line
do
gap=$line
- gap=$((gap+10))
- herbstclient set window_gap $gap
- echo $gap > $filename
+ if [ "$gap" -le 90 ]
+ then
+ gap=$((gap+7))
+ herbstclient set window_gap $gap
+ echo $gap > $filename
+ fi
done < "$filename"
diff --git a/herbstluftwm/code/sys/herbstluftwm-remove-gap b/herbstluftwm/code/sys/herbstluftwm-remove-gap
index 65c397a..b30b3eb 100755
--- a/herbstluftwm/code/sys/herbstluftwm-remove-gap
+++ b/herbstluftwm/code/sys/herbstluftwm-remove-gap
@@ -1,11 +1,12 @@
-#!/bin/bash
+#!/bin/sh
filename="/tmp/herbstluftwm-gap"
while read -r line
do
gap=$line
- if [ "$gap" -ge 0 ]; then
- gap=$((gap-10))
- herbstclient set window_gap $gap
- fi
- echo $gap > $filename
+ if [ "$gap" -ge 7 ]
+ then
+ gap=$((gap-7))
+ herbstclient set window_gap $gap
+ echo $gap > $filename
+ fi
done < "$filename"