blob: 5caa66914e457ac89ce2794cda05faf49f06198b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
|