blob: 70feb70dc83eb94d8c63dc3666b2b6ab7ff31f4d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/bin/sh
set -e
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
conf="$XDG_CONFIG_HOME/river/padding_conf"
if ! [ -e "$conf" ] ; then
cat > "$conf" <<EOF
outer=8
inner=8
EOF
fi
. "$conf"
outer_inc="$1"; shift;
inner_inc="$1"; shift;
outer=$((outer + outer_inc))
inner=$((inner + inner_inc))
if [ "$outer" -lt 0 ] ; then
outer=0
fi
if [ "$inner" -lt 0 ] ; then
inner=0
fi
cat > "$conf" <<EOF
outer=$outer
inner=$inner
EOF
pkill rivertile || echo ""
rivertile -view-padding "$outer" -outer-padding "$inner" &
|