#!/bin/bash # # Script to autostart programs. # function run() { if ! pgrep -f $1; then $1 $2& fi } if [[ $(pgrep dwm) ]] ; then run slstatus run firefox run discord run alacritty "--working-directory $HOME/" fi run feh "--bg-fill $HOME/wallpaper/wallpaper" run picom run dunst [ -f "setlayout.sh" ] && ./setlayout.sh