Add bluelight filter, xresources, tweak log messages
This commit is contained in:
parent
c82053c53f
commit
2fa1af11ac
18
firestarter
18
firestarter
@ -124,6 +124,13 @@ command -v fbautostart
|
|||||||
fbautostart
|
fbautostart
|
||||||
command -v xdg-autostart
|
command -v xdg-autostart
|
||||||
xdg-autostart "\${XDG_CURRENT_DESKTOP:-firestarter}"
|
xdg-autostart "\${XDG_CURRENT_DESKTOP:-firestarter}"
|
||||||
|
EOF
|
||||||
|
# X blue light filter
|
||||||
|
cat << EOF > "$g_configdir/x-blue-light-filter"
|
||||||
|
command -v redshift-gtk
|
||||||
|
redshift-gtk
|
||||||
|
command -v redshift
|
||||||
|
redshift
|
||||||
EOF
|
EOF
|
||||||
# X compositor
|
# X compositor
|
||||||
cat << EOF > "$g_configdir/x-compositor"
|
cat << EOF > "$g_configdir/x-compositor"
|
||||||
@ -291,6 +298,15 @@ step_preexecute() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# xresources
|
||||||
|
if [ -n "$DISPLAY" ] && command -v xrdb && [ -f "$HOME/.Xresources" ]; then
|
||||||
|
if xrdb "$HOME/.Xresources" > /dev/null 2>&1; then
|
||||||
|
log "Loaded in .Xresources"
|
||||||
|
else
|
||||||
|
log "Failed to load .Xresources"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# xset
|
# xset
|
||||||
if command -v xset > /dev/null 2>&1; then
|
if command -v xset > /dev/null 2>&1; then
|
||||||
log "Disabling bell"
|
log "Disabling bell"
|
||||||
@ -316,7 +332,7 @@ step_execute() {
|
|||||||
log "Would have sourced in .xsessionrc"
|
log "Would have sourced in .xsessionrc"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
log "Could not read .xsessionrc"
|
log "Failed to read .xsessionrc"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
for file in "$g_configdir"/*; do
|
for file in "$g_configdir"/*; do
|
||||||
|
Loading…
Reference in New Issue
Block a user