From 90a69f1917d794806bd9bfd4dbf90f51e5c48c54 Mon Sep 17 00:00:00 2001 From: the_4n0nym0u53 Date: Tue, 12 Oct 2021 14:33:52 +0200 Subject: [PATCH] Refactor: Move autostart.sh to sway config dir. --- install.sh | 13 ++++++------- .../.scripts => sway/.config/sway}/autostart.sh | 2 +- sway/.config/sway/config.d/behavior | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) rename {autostart/.scripts => sway/.config/sway}/autostart.sh (93%) 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