diff options
| author | ryukamish <[email protected]> | 2026-02-24 12:29:11 +0530 |
|---|---|---|
| committer | ryukamish <[email protected]> | 2026-02-24 12:29:11 +0530 |
| commit | 25d426b36e01f24e22caaf2b51a05c65cd1e4fcb (patch) | |
| tree | c09e2d425ad2f94d9488888576390f1f68af6262 /setup.sh | |
| parent | d29d3ad23761c81b9113835a4d52a5e074055a73 (diff) | |
add: initial readme and setup script
Diffstat (limited to 'setup.sh')
| -rwxr-xr-x | setup.sh | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..5caa669 --- /dev/null +++ b/setup.sh @@ -0,0 +1,45 @@ +#!/usr/bin/env bash +RED="\e[31m" +GREEN="\e[32m" +BLUE="\e[34m" +RESET="\e[0m" +msg(){ + case "$1" in + error) + printf '%s\n' "${RED}[ERROR]:${RESET} $2" + ;; + success) + printf '%s\n' "${GREEN}[SUCCESS]:${RESET} $2" + ;; + debug) + printf '%s\n' "${BLUE}[DEBUG]:${RESET} $2" + ;; + esac +} + +if [ ! -d "$HOME/.config/niri" ]; then + stow -t ~/.config/niri niri +else + msg error "Directory niri doesn't exist." + read -r -p "Make directory? (y/n) " dir_make + select dir_make in "y" "n";do + if [ "$dir_make" == "y" ];then + mkdir "$HOME/.config/niri" + stow -t ~/.config/niri niri + msg success "Created directory niri and stowed files" + fi + done +fi + +select qs_shell in "noctalia" "dms (Dank Material Shell)" +do + if [ "$qs_shell" == "noctalia" ]; then + systemctl --user add-wants niri.service noctalia.service + systemctl --user enable noctalia.service + break + else + systemctl --user enable dms + systemctl --user start dms + break + fi +done |
