Firestarter: Stop hardcoding directories

This commit is contained in:
2020-09-16 12:51:43 -05:00
parent b1351da872
commit fb36639d48
3 changed files with 9 additions and 9 deletions
.config/firestarter

@@ -1,8 +1,8 @@
#.fsdefaults #.fsdefaults
command -v tint2 command -v tint2
tint2 tint2
command -v polybar && [ -r "/home/salt/.config/polybar/launch.sh" ] command -v polybar && [ -r "$HOME/.config/polybar/launch.sh" ]
sleep 5 && "/home/salt/.config/polybar/launch.sh" sleep 5 && "$HOME/.config/polybar/launch.sh"
command -v lxpanel command -v lxpanel
lxpanel lxpanel
command -v lxqt-panel command -v lxqt-panel

@@ -3,7 +3,7 @@
: :
# Note: the dumb sleep hack is because Conky crashes with window_type override if the WM hasn't loaded yet # Note: the dumb sleep hack is because Conky crashes with window_type override if the WM hasn't loaded yet
# This gives the WM ample time to load up # This gives the WM ample time to load up
command -v conky && [ -r "${XDG_CONFIG_HOME:-/home/salt/.config}/conky/conky-clock.conf" ] && [[ "$HOSTNAME" == "lap"* ]] command -v conky && [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/conky/conky-clock.conf" ] && [[ "$HOSTNAME" == "lap"* ]]
sleep 5 && conky -c "${XDG_CONFIG_HOME:-/home/salt/.config}/conky/conky-clock.conf" sleep 5 && conky -c "${XDG_CONFIG_HOME:-$HOME/.config}/conky/conky-clock.conf"
command -v conky && [ -r "${XDG_CONFIG_HOME:-/home/salt/.config}/conky/conky.conf" ] command -v conky && [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/conky/conky.conf" ]
sleep 5 && conky sleep 5 && conky

@@ -1,11 +1,11 @@
#.fsdefaults #.fsdefaults
[ -z "$DISPLAY" ] [ -z "$DISPLAY" ]
: :
command -v nitrogen && [ -r "/home/salt/.config/nitrogen/bg-saved.cfg" ] command -v nitrogen && [ -r "$HOME/.config/nitrogen/bg-saved.cfg" ]
nitrogen --restore nitrogen --restore
command -v feh && [ -r "/home/salt/.fehbg" ] command -v feh && [ -r "$HOME/.fehbg" ]
~/.fehbg ~/.fehbg
command -v hsetroot && [ -r ~/.config/firestarter/tile.png ] && [ "$(hostname)" == "dsk-cstm-0" ] command -v hsetroot && [ -r ~/.config/firestarter/tile.png ] && [ "$(hostname)" == "dsk-cstm-0" ]
hsetroot -tile "/home/salt/.config/firestarter/tile.png" hsetroot -tile "$HOME/.config/firestarter/tile.png"
command -v hsetroot && [ -r ~/.config/firestarter/tile.png ] && [ -r ~/.config/firestarter/center.png ] command -v hsetroot && [ -r ~/.config/firestarter/tile.png ] && [ -r ~/.config/firestarter/center.png ]
hsetroot -tile "/home/salt/.config/firestarter/tile.png" -center "/home/salt/.config/firestarter/center.png" hsetroot -tile "$HOME/.config/firestarter/tile.png" -center "$HOME/.config/firestarter/center.png"