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 | |
| parent | d29d3ad23761c81b9113835a4d52a5e074055a73 (diff) | |
add: initial readme and setup script
| -rw-r--r-- | README.md | 12 | ||||
| -rwxr-xr-x | setup.sh | 45 |
2 files changed, 57 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..a58dfd2 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# nirish + +niri+ish -> niri as the window manager with the last of the my initials. + +# Environment + +This config is for `niri` with [noctalia](https://noctalia.dev) shell which is a pre-configured +[QuickShell](https://quickshell.org/) with batteries included. + +## Packages required for noctalia to work + +1. `wlsunset` - required for night light functionality 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 |
