Add Conky/stat glances support, more logging

This commit is contained in:
Salt 2019-06-21 08:12:16 -05:00
parent e3cb7b6cb0
commit 3d5fde695a

View File

@ -57,6 +57,7 @@ startfile() {
# Traps # Traps
trap_exit() { trap_exit() {
log "Logging out"
if command -v loginctl > /dev/null 2>&1; then if command -v loginctl > /dev/null 2>&1; then
# Use loginctl if possible # Use loginctl if possible
local sessionid="$(< /proc/self/sessionid)" local sessionid="$(< /proc/self/sessionid)"
@ -174,6 +175,13 @@ command -v dunst
dunst dunst
command -v lxqt-notificationd command -v lxqt-notificationd
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 EOF
# X window managers # X window managers
cat << EOF > "$g_configdir/x-wm" cat << EOF > "$g_configdir/x-wm"
@ -383,6 +391,7 @@ step_execute() {
step_wait() { step_wait() {
[ "$dryrun" = "1" ] && exit 0 [ "$dryrun" = "1" ] && exit 0
log "Waiting for programs to exit" log "Waiting for programs to exit"
log "Send any termination signal to firestarter to log out"
wait wait
exit 0 exit 0
} }