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

@@ -31,8 +31,8 @@ declare -a delay_array=(\
"/usr/bin/syncthing-gtk" \ # Syncthing GTK
"/usr/bin/nextcloud" \ # NextCloud Client
"/usr/bin/nyrna" \ # Nyrna
"bash /home/sravan/.scripts/dunst.sh --on" \ # Dunst Notification Daemon
"bash /home/sravan/.scripts/picom.sh --on" \ # Picom Compositor
"bash $HOME/.scripts/dunst.sh --on" \ # Dunst Notification Daemon
"bash $HOME/.scripts/picom.sh --on" \ # Picom Compositor
"/usr/bin/autorandr --change --force" \ # Auto restore screen layout
"/usr/bin/numlockx on" \ # Enable numlock
)
@@ -49,8 +49,8 @@ declare -a kill_delay_array=(\
"pkill syncthing-gtk" \ # Syncthing GTK
"pkill nextcloud" \ # NextCloud Client
"pkill nyrna" \ # Nyrna
"bash /home/sravan/.scripts/dunst.sh --off" \ # Dunst Notification Daemon
"bash /home/sravan/.scripts/picom.sh --off" \ # Picom Compositor
"bash $HOME/.scripts/dunst.sh --off" \ # Dunst Notification Daemon
"bash $HOME/.scripts/picom.sh --off" \ # Picom Compositor
)
help_menu() {