summaryrefslogtreecommitdiff
path: root/dotfiles/system/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/system/.local/bin')
-rwxr-xr-xdotfiles/system/.local/bin/startdwm14
-rwxr-xr-xdotfiles/system/.local/bin/touchpad-app5
-rwxr-xr-xdotfiles/system/.local/bin/touchpad-indicator-start12
-rwxr-xr-xdotfiles/system/.local/bin/warpinator-start11
4 files changed, 29 insertions, 13 deletions
diff --git a/dotfiles/system/.local/bin/startdwm b/dotfiles/system/.local/bin/startdwm
index 6e25ab0..8d6a2e1 100755
--- a/dotfiles/system/.local/bin/startdwm
+++ b/dotfiles/system/.local/bin/startdwm
@@ -6,12 +6,10 @@
dbus-update-activation-environment &
-logdir="$HOME/.local/var/logs"
-logfile="$logdir/$(date +%Y-%m-%d_%H.dwm.log)"
-
-if ! [ -d "$logdir" ]; then
- mkdir -p "$logdir"
-fi
+# set logfile
+logdir="$HOME/.local/var/log"
+[ -d "$logdir" ] || mkdir -p "$logdir"
+logfile="$logdir/$(date +%Y-%m-%d_%H-%M-%S-%3N.dwm.log)"
# X Org
export XAUTHORITY=$HOME/.Xauthority
@@ -50,10 +48,10 @@ dunst &
sudo powertop --auto-tune &
flameshot &
# dropbox &
-touchpad-app &
+touchpad-indicator-start &
signal-desktop --start-in-tray &
protonmail-bridge --no-window &
-warpinator &
+warpinator-start &
# start dwm
echo "$(date): Starting dwm" >> "$logfile" 2>&1
diff --git a/dotfiles/system/.local/bin/touchpad-app b/dotfiles/system/.local/bin/touchpad-app
deleted file mode 100755
index 7b7949c..0000000
--- a/dotfiles/system/.local/bin/touchpad-app
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-# for whatever reason, it has to be run twice?
-/usr/bin/touchpad-indicator &
-/usr/bin/touchpad-indicator &
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
diff --git a/dotfiles/system/.local/bin/warpinator-start b/dotfiles/system/.local/bin/warpinator-start
new file mode 100755
index 0000000..2d1798c
--- /dev/null
+++ b/dotfiles/system/.local/bin/warpinator-start
@@ -0,0 +1,11 @@
+#!/bin/sh
+# attempts to launch warpinator
+
+logdir="$HOME/.local/var/log/"
+[ -d $logdir ] || mkdir -p "$logdir"
+logfile="$logdir/$(date +%Y-%m-%d_%H-%M-%S-%3N.warpinator.log)"
+
+echo "$(date): Starting warpinator" >> "$logfile" 2>&1
+sleep 20 && warpinator >> "$logfile" 2>&1
+echo "$(date): Starting warpinator again" >> "$logfile" 2>&1
+sleep 20 && warpinator >> "$logfile" 2>&1