From 3d5fde695a6d2f286d6663ee6acfb42c343e5baa Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 21 Jun 2019 08:12:16 -0500 Subject: [PATCH] Add Conky/stat glances support, more logging --- firestarter | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/firestarter b/firestarter index 094a72f..eeff9a4 100755 --- a/firestarter +++ b/firestarter @@ -57,6 +57,7 @@ startfile() { # Traps trap_exit() { + log "Logging out" if command -v loginctl > /dev/null 2>&1; then # Use loginctl if possible local sessionid="$(< /proc/self/sessionid)" @@ -174,6 +175,13 @@ command -v dunst dunst command -v lxqt-notificationd notificationd +EOF + # X system statistics glances + cat << EOF > "$g_configdir/x-stat-glances" +[ -z "\$DISPLAY" ] +: +command -v conky && [ -f "\${XDG_CONFIG_HOME}/conky/conky.conf" ] +conky EOF # X window managers cat << EOF > "$g_configdir/x-wm" @@ -383,6 +391,7 @@ step_execute() { step_wait() { [ "$dryrun" = "1" ] && exit 0 log "Waiting for programs to exit" + log "Send any termination signal to firestarter to log out" wait exit 0 }