Refactor: Move autostart.sh to sway config dir.

This commit is contained in:
the_4n0nym0u53 2021-10-12 14:33:52 +02:00
parent ef56523306
commit 90a69f1917
3 changed files with 8 additions and 9 deletions

View file

@ -3,17 +3,16 @@
echo -e "Creating the symlinks with stow..." echo -e "Creating the symlinks with stow..."
stow -t $HOME alacritty \ stow -t $HOME alacritty \
autostart \ mako \
mako \ nvim \
nvim \ sway \
sway \ swaylock \
swaylock \ waybar
waybar
sleep 1 sleep 1
echo -e "Making scripts executable..." 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/pvpn.sh
chmod +x waybar/.config/waybar/mediaplayer.py chmod +x waybar/.config/waybar/mediaplayer.py

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
env SUDO_USER=$USER doas protonvpn c --cc DK env SUDO_USER=$USER doas protonvpn c --cc DK
# Uncomment below to use sudo instead of doas, comment the above # Uncomment below to use sudo instead of doas, comment the above

View file

@ -9,7 +9,7 @@ exec mako
exec pipewire exec pipewire
exec pipewire-pulse exec pipewire-pulse
exec pipewire-media-session exec pipewire-media-session
exec ~/.scripts/autostart.sh exec ~/.config/sway/autostart.sh
# Window focus doesn't follow mouse # Window focus doesn't follow mouse
focus_follows_mouse no focus_follows_mouse no