Create install.sh

This commit is contained in:
the_4n0nym0u53 2021-10-03 00:50:53 +02:00
parent 6d08af082a
commit 78d1b05fe0
2 changed files with 23 additions and 1 deletions

View File

@ -27,7 +27,7 @@ These dotfiles depend on the following software packages:
- `waybar`
- `sway-launcher-desktop`
\* If you prefer `sudo`, then change all instances if `doas` to `sudo`. They're mainly in the sway config file and my `autostart.sh` script.
\* If you prefer `sudo`, then change all instances of `doas` to `sudo`. They're mainly in the sway config file and my `autostart.sh` script.
Also, you need to make a `doas`/`sudo` rule that allows you to execute `poweroff` and `reboot` without a password, otherwise the keybindings for those won't work.

22
install.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/sh
echo -e "Creating the symlinks with stow..."
stow -t $HOME alacritty \
autostart \
mako \
nvim \
sway \
swaylock \
waybar
sleep 1
echo -e "Making scripts executable..."
chmod +x autostart/.scripts/autostart.sh
chmod +x waybar/.config/waybar/pvpn.sh
chmod +x waybar/.config/waybar/mediaplayer.py
sleep 1
echo -e "Done!"