From 25d426b36e01f24e22caaf2b51a05c65cd1e4fcb Mon Sep 17 00:00:00 2001 From: ryukamish Date: Tue, 24 Feb 2026 12:29:11 +0530 Subject: add: initial readme and setup script --- README.md | 12 ++++++++++++ setup.sh | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 README.md create mode 100755 setup.sh 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 -- cgit v1.3