summaryrefslogtreecommitdiff
path: root/dotfiles/system/.local/bin/touchpad-indicator-start
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-06-09 11:42:47 -0500
committerCraig Jennings <c@cjennings.net>2025-06-09 11:42:47 -0500
commit0a40e2ec7db819f37e356475d56425df5daacf97 (patch)
treea257cf84f66ec13a80f9a88c963a68767a9821a0 /dotfiles/system/.local/bin/touchpad-indicator-start
parentc545375306180583d2b96e060d5e06ced96ca014 (diff)
get all startup applications working
Diffstat (limited to 'dotfiles/system/.local/bin/touchpad-indicator-start')
-rwxr-xr-xdotfiles/system/.local/bin/touchpad-indicator-start12
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