diff options
Diffstat (limited to '')
-rwxr-xr-x | conky/start.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/conky/start.sh b/conky/start.sh new file mode 100755 index 0000000..6bbc6cc --- /dev/null +++ b/conky/start.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +screens=$(xrandr | grep -cw connected); + +if [[ "$screens" -eq 2 ]];then + sed -i.bak 's/gap_x .*/gap_x = -1262,/' conkyrc.txt + sed -i.bak 's/gap_y .*/gap_y = 120,/' conkyrc.txt +else + sed -i.bak 's/gap_x .*/gap_x = 10,/' conkyrc.txt + sed -i.bak 's/gap_y .*/gap_y = 20,/' conkyrc.txt +fi + +killall -9 conky +conky -c conkyrc.txt |