Use $HOME env var instead of hardcoded paths

- Replace home directory paths with $HOME env var
- Add sleeps to winitrc so it waits for dwl to start
This commit is contained in:
Sravan Balaji
2024-09-29 15:13:54 -04:00
parent a5938074a9
commit 4c4daeab26
11 changed files with 74 additions and 70 deletions

View File

@@ -1,9 +1,9 @@
#!/usr/bin/env bash
if [ $XDG_SESSION_DESKTOP == "dwm" ]; then
/home/sravan/.scripts/picom.sh --off &
$HOME/.scripts/picom.sh --off &
/usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s true &
fi
/home/sravan/.scripts/cpu-gpu.sh --cpu-profile-performance &
/home/sravan/.scripts/cpu-gpu.sh --gpu-profile-performance &
/home/sravan/.scripts/dunst.sh --pause &
$HOME/.scripts/cpu-gpu.sh --cpu-profile-performance &
$HOME/.scripts/cpu-gpu.sh --gpu-profile-performance &
$HOME/.scripts/dunst.sh --pause &