Add Conky/stat glances support, more logging
This commit is contained in:
parent
e3cb7b6cb0
commit
3d5fde695a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user