From 0a40e2ec7db819f37e356475d56425df5daacf97 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 9 Jun 2025 11:42:47 -0500 Subject: get all startup applications working --- dotfiles/system/.local/bin/startdwm | 14 ++++++-------- dotfiles/system/.local/bin/touchpad-app | 5 ----- dotfiles/system/.local/bin/touchpad-indicator-start | 12 ++++++++++++ dotfiles/system/.local/bin/warpinator-start | 11 +++++++++++ 4 files changed, 29 insertions(+), 13 deletions(-) delete mode 100755 dotfiles/system/.local/bin/touchpad-app create mode 100755 dotfiles/system/.local/bin/touchpad-indicator-start create mode 100755 dotfiles/system/.local/bin/warpinator-start 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 -- cgit v1.2.3