dwm/autostart.sh

22 lines
306 B
Bash
Raw Permalink Normal View History

2021-03-14 15:41:00 +01:00
#!/bin/sh
clearpids() {
echo -n "" > autostart.pids
}
start() {
eval "$1 &"
pid="$!"
if ps -p "$pid" > /dev/null; then
echo "$pid" >> autostart.pids
fi
}
clearpids
start "nm-applet"
start "redshift-gtk"
start "./dumpweather.sh"
start "./dwmstatus.sh"
feh --bg-scale background.jpg