diff options
Diffstat (limited to 'dotfiles/system/.local/bin/touchpad-indicator-start')
| -rwxr-xr-x | dotfiles/system/.local/bin/touchpad-indicator-start | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dotfiles/system/.local/bin/touchpad-indicator-start b/dotfiles/system/.local/bin/touchpad-indicator-start new file mode 100755 index 0000000..1ca9096 --- /dev/null +++ b/dotfiles/system/.local/bin/touchpad-indicator-start @@ -0,0 +1,12 @@ +#!/bin/sh +# attempts to launch touchpad-indicator + +logdir="$HOME/.local/var/log/" +[ -d $logdir ] || mkdir -p "$logdir" +logfile="$logdir/$(date +%Y-%m-%d_%H-%M-%S-%3N.touchpad-indicator.log)" + +# for whatever reason, it has to be run twice? +echo "$(date): Starting touchpad-indicator" >> "$logfile" 2>&1 +sleep 5 && touchpad-indicator >> $logfile 2>&1 +echo "$(date): Starting touchpad-indicator again" >> "$logfile" 2>&1 +sleep 5 && touchpad-indicator >> $logfile 2>&1 |
