diff options
author | NeodarZ <neodarz@neodarz.ovh> | 2016-11-22 09:22:54 +0100 |
---|---|---|
committer | NeodarZ <neodarz@neodarz.ovh> | 2016-11-22 09:22:54 +0100 |
commit | 73f3c5561a418bc0730afe15c23c8d1ba03e25d8 (patch) | |
tree | de6bef726cd69d3225e4204bf60e88a889f35209 /conky/start.sh | |
parent | e2c27186535345ea89556f06691fedd9bdc16bdc (diff) | |
download | dotfiles-73f3c5561a418bc0730afe15c23c8d1ba03e25d8.tar.xz dotfiles-73f3c5561a418bc0730afe15c23c8d1ba03e25d8.zip |
update
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 |