Use read detection, not file, add wallpaper setters
This commit is contained in:
parent
2a3ecca2dc
commit
ab0382553d
15
firestarter
15
firestarter
@ -68,7 +68,7 @@ EOF
|
|||||||
cat << EOF > "$_configdir/bar"
|
cat << EOF > "$_configdir/bar"
|
||||||
command -v tint2
|
command -v tint2
|
||||||
tint2
|
tint2
|
||||||
command -v polybar && [ -f "$HOME/.config/polybar/launch.sh" ]
|
command -v polybar && [ -r "$HOME/.config/polybar/launch.sh" ]
|
||||||
"$HOME/.config/polybar/launch.sh"
|
"$HOME/.config/polybar/launch.sh"
|
||||||
command -v lxpanel
|
command -v lxpanel
|
||||||
lxpanel
|
lxpanel
|
||||||
@ -162,8 +162,17 @@ EOF
|
|||||||
cat << EOF > "$_configdir/stat-glances"
|
cat << EOF > "$_configdir/stat-glances"
|
||||||
[ -z "\$DISPLAY" ]
|
[ -z "\$DISPLAY" ]
|
||||||
:
|
:
|
||||||
command -v conky && [ -f "\${XDG_CONFIG_HOME:-$HOME/.config}/conky/conky.conf" ]
|
command -v conky && [ -r "\${XDG_CONFIG_HOME:-$HOME/.config}/conky/conky.conf" ]
|
||||||
conky
|
conky
|
||||||
|
EOF
|
||||||
|
# Wallpaper setters
|
||||||
|
cat << EOF > "$_configdir/wallpaper"
|
||||||
|
[ -z "\$DISPLAY" ]
|
||||||
|
:
|
||||||
|
command -v feh && [ -r "$HOME/.fehbg" ]
|
||||||
|
~/.fehbg
|
||||||
|
command -v nitrogen
|
||||||
|
nitrogen --restore
|
||||||
EOF
|
EOF
|
||||||
# Window managers
|
# Window managers
|
||||||
cat << EOF > "$_configdir/wm"
|
cat << EOF > "$_configdir/wm"
|
||||||
@ -324,7 +333,7 @@ step_preexecute() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# xresources
|
# xresources
|
||||||
if [ -n "$DISPLAY" ] && command -v xrdb && [ -f "$HOME/.Xresources" ]; then
|
if [ -n "$DISPLAY" ] && command -v xrdb && [ -r "$HOME/.Xresources" ]; then
|
||||||
if xrdb "$HOME/.Xresources" > /dev/null 2>&1; then
|
if xrdb "$HOME/.Xresources" > /dev/null 2>&1; then
|
||||||
log "Loaded in .Xresources"
|
log "Loaded in .Xresources"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user