diff --git a/install.sh b/install.sh index edc3b8b..300a853 100755 --- a/install.sh +++ b/install.sh @@ -3,17 +3,16 @@ echo -e "Creating the symlinks with stow..." stow -t $HOME alacritty \ - autostart \ - mako \ - nvim \ - sway \ - swaylock \ - waybar + mako \ + nvim \ + sway \ + swaylock \ + waybar sleep 1 echo -e "Making scripts executable..." -chmod +x autostart/.scripts/autostart.sh +chmod +x sway/.config/sway/autostart.sh chmod +x waybar/.config/waybar/pvpn.sh chmod +x waybar/.config/waybar/mediaplayer.py diff --git a/autostart/.scripts/autostart.sh b/sway/.config/sway/autostart.sh similarity index 93% rename from autostart/.scripts/autostart.sh rename to sway/.config/sway/autostart.sh index c7704d3..b6c7c1c 100755 --- a/autostart/.scripts/autostart.sh +++ b/sway/.config/sway/autostart.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh env SUDO_USER=$USER doas protonvpn c --cc DK # Uncomment below to use sudo instead of doas, comment the above diff --git a/sway/.config/sway/config.d/behavior b/sway/.config/sway/config.d/behavior index a3afd11..413c2bb 100644 --- a/sway/.config/sway/config.d/behavior +++ b/sway/.config/sway/config.d/behavior @@ -9,7 +9,7 @@ exec mako exec pipewire exec pipewire-pulse exec pipewire-media-session -exec ~/.scripts/autostart.sh +exec ~/.config/sway/autostart.sh # Window focus doesn't follow mouse focus_follows_mouse no