commit
hoping this works
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
new file mode 100644
index 0000000..703e397
--- /dev/null
+++ b/.github/FUNDING.yml
@@ -0,0 +1 @@
+github: doughmination
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
new file mode 100644
index 0000000..16880ff
--- /dev/null
+++ b/.github/workflows/check.yml
@@ -0,0 +1,58 @@
+name: check
+
+on:
+ push:
+ pull_request:
+
+jobs:
+ shellcheck:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v5
+ - name: ShellCheck the installers and scripts
+ run: shellcheck -S warning install install-*.sh binaries/*
+ - name: ShellCheck bashrc
+ run: shellcheck -S warning -s bash bashrc
+
+ install:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v5
+
+ - name: Dry runs (no changes)
+ run: |
+ ./install --dry-run --defaults
+
+ - name: Install into a scratch home, then delete the clone
+ run: |
+ set -euo pipefail
+ export HOME="$RUNNER_TEMP/home" XDG_CONFIG_HOME="$RUNNER_TEMP/home/.config"
+ export PATH="$HOME/.local/bin:$PATH"
+ mkdir -p "$HOME"
+ clone="$RUNNER_TEMP/dots"
+ cp -a "$GITHUB_WORKSPACE" "$clone"
+
+ "$clone/install-config.sh"
+ "$clone/install-scripts.sh"
+
+ echo "::group::Second run must change nothing"
+ out=$("$clone/install-config.sh"; "$clone/install-scripts.sh")
+ echo "$out"
+ echo "::endgroup::"
+ if grep -q ' ! ' <<<"$out"; then
+ echo "::error::Re-running the installer moved files aside"; exit 1
+ fi
+
+ rm -rf "$clone"
+
+ broken=$(find "$HOME" -xtype l)
+ if [ -n "$broken" ]; then
+ echo "::error::Links broke after deleting the clone:"; echo "$broken"; exit 1
+ fi
+ test -f "$HOME/.bashrc"
+ test -f "$HOME/.config/sway/config"
+ test -f "$HOME/.config/waybar/config.jsonc"
+ for f in "$GITHUB_WORKSPACE"/binaries/*; do
+ test -x "$HOME/.local/bin/$(basename "$f")"
+ done
+ echo "Everything still in place without the clone."
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..da5ede5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,34 @@
+# Allow-list: ignore everything, opt files back in. install-config.sh copies
+# every !/entry below into ~/.config, except the repo's own files and assets.
+/*
+!/.gitignore
+!/.github/
+!/README.md
+!/LICENSE
+!/screenshot.png
+!/install*
+!/bashrc
+!/binaries/
+!/icons/
+!/sddm/
+!/btop/
+!/fuzzel/
+!/gtk-3.0/
+!/gtk-4.0/
+!/gtklock/
+!/gtkrc
+!/gtkrc-2.0
+!/hyfetch.json
+!/kitty/
+!/mako/
+!/omp/
+!/sway/
+!/swaylock/
+!/waybar/
+!/xsettingsd/
+
+*.bak*
+*.swp
+*~
+/gtk-3.0/bookmarks
+/btop/btop.log
diff --git a/README.md b/README.md
index 6ef36b6..57728e5 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,48 @@
-# mooon-dots
\ No newline at end of file
+# Moon Dots
+
+A theme based off of Columbina "Damselette" Hyposelenia from Genshin Impact
+
+## Preview
+
+
+## What's in it
+
+- **swayfx** (window manager with blur, shadows and rounded corners)
+- **waybar** (status bar)
+- **kitty** (terminal) with an **oh-my-posh** prompt
+- **fuzzel** (app launcher), **mako** (notifications), **gtklock** (lock screen)
+- A **SDDM** login screen to match
+- An optional looping **background sound** (plays only while plugged in and out of power saver)
+- The **columbina-linux** cursor (my own)
+
+## Install
+
+```sh
+git clone https://github.com/doughmination/moon-dots
+cd moon-dots
+./install
+```
+
+The installer runs five scripts, and you can run any of them on its own:
+
+| Script | What it does |
+|---|---|
+| `install-deps.sh` | Installs the software (add `--no-flatpak` or `--no-services` to skip those parts) |
+| `install-git.sh` | Sets your git name, email and default branch (asks, or pass `--git-name=`, `--git-email=`, `--git-branch=`; `--defaults` uses User / [email protected] / main) |
+| `install-assets.sh` | Installs the font and the cursor |
+| `install-config.sh` | Copies the configs into `~/.config` and `bashrc` to `~/.bashrc` |
+| `install-scripts.sh` | Copies the helper scripts into `~/.local/bin` |
+| `install-sddm.sh` | Installs the SDDM theme. |
+
+## Tested on
+
+- [x] Void Linux glibc
+- [x] Arch Linux
+- [ ] Debian
+- [ ] Ubuntu
+- [ ] Fedora
+- [ ] NixOS
+
+## Credits
+
+The wallpaper isn't mine; I found it online.
diff --git a/bashrc b/bashrc
new file mode 100644
index 0000000..9cf0801
--- /dev/null
+++ b/bashrc
@@ -0,0 +1,72 @@
+# ~/.bashrc: executed by bash(1) for non-login shells.
+
+# If not running interactively, don't do anything
+case $- in
+ *i*) ;;
+ *) return;;
+esac
+
+# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
+HISTSIZE=1000
+HISTFILESIZE=2000
+
+
+# make less more friendly for non-text input files, see lesspipe(1)
+[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
+
+# set variable identifying the chroot you work in (used in the prompt below)
+if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
+ debian_chroot=$(cat /etc/debian_chroot)
+fi
+
+# Prompt is oh-my-posh, configured at the end of this file
+
+# enable color support of ls and also add handy aliases
+if [ -x /usr/bin/dircolors ]; then
+ test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
+ alias ls='ls --color=auto'
+ alias dir='dir --color=auto'
+ #alias vdir='vdir --color=auto'
+
+ alias grep='grep --color=auto'
+ alias fgrep='fgrep --color=auto'
+ alias egrep='egrep --color=auto'
+fi
+
+# enable programmable completion features (you don't need to enable
+# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
+# sources /etc/bash.bashrc).
+if ! shopt -oq posix; then
+ if [ -f /usr/share/bash-completion/bash_completion ]; then
+ . /usr/share/bash-completion/bash_completion
+ elif [ -f /etc/bash_completion ]; then
+ . /etc/bash_completion
+ fi
+fi
+
+export NVM_DIR="$HOME/.nvm"
+[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
+[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
+
+# bun (ported from zsh)
+export BUN_INSTALL="$HOME/.bun"
+export PATH="$BUN_INSTALL/bin:$PATH"
+[ -s "$HOME/.bun/_bun" ] && source "$HOME/.bun/_bun" # bun completions
+
+# local bin (ported from zsh)
+export PATH="$HOME/.local/bin:$PATH"
+
+# Rust (rustup lives in ~/.cargo, shared by Arch and Void via /home)
+[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
+
+# Prompt (cyberpunk powerline), with a plain fallback if the binary is missing
+if command -v oh-my-posh >/dev/null 2>&1; then
+ eval "$(oh-my-posh init bash --config ~/.config/omp/config.toml)"
+else
+ PS1='\n\[\033[38;5;205m\]\u@\h \[\033[38;5;135m\][\w]\[\033[00m\]\n❯ '
+fi
+
+# Greeting: only for interactive shells on a real terminal
+if [[ $- == *i* ]] && [ -t 1 ] && command -v hyfetch >/dev/null 2>&1; then
+ hyfetch
+fi
diff --git a/binaries/ambient b/binaries/ambient
new file mode 100755
index 0000000..94d77aa
--- /dev/null
+++ b/binaries/ambient
@@ -0,0 +1,74 @@
+#!/bin/sh
+# ambient: looping background sound for the desktop.
+#
+# ambient config on|off [volume] apply the sway/config setting (sway runs this)
+# ambient toggle mute/unmute for now (Super+M); a sway reload resets it
+# ambient sync start/stop to match power (run by waybar-battery)
+# ambient off stop it until sway reloads
+#
+# Plays sway/background-sound.* with mpv, only while plugged in and not in
+# power-saver (same rule as the animated wallpaper). No sound file = no-op.
+
+DIR="${XDG_CONFIG_HOME:-$HOME/.config}/sway"
+STATE="${XDG_STATE_HOME:-$HOME/.local/state}"
+ENABLED="$STATE/ambient-enabled" # "on" or "off", from sway/config
+VOLUME="$STATE/ambient-volume"
+MUTED="$STATE/ambient-muted" # exists while muted with Super+M
+PIDF="${XDG_RUNTIME_DIR:-/tmp}/ambient-sound.pid"
+
+sound() { for f in "$DIR"/background-sound.*; do [ -f "$f" ] && { echo "$f"; return; }; done; }
+
+running() { [ -f "$PIDF" ] && kill -0 "$(cat "$PIDF")" 2>/dev/null; }
+
+power_ok() {
+ ac=0
+ for f in /sys/class/power_supply/*/online; do
+ [ -r "$f" ] && [ "$(cat "$f")" = 1 ] && ac=1
+ done
+ [ "$ac" = 1 ] || return 1
+ [ "$(powerprofilesctl get 2>/dev/null)" != power-saver ]
+}
+
+start() {
+ running && return 0
+ f=$(sound); [ -n "$f" ] || return 0
+ command -v mpv >/dev/null || return 0
+ vol=$(cat "$VOLUME" 2>/dev/null || echo 30)
+ PIDF="$PIDF" setsid -f sh -c 'echo $$ > "$PIDF"; exec mpv --no-video --no-terminal --really-quiet --loop-file=inf --volume="$1" "$2"' _ "$vol" "$f"
+}
+
+stop() { running && kill "$(cat "$PIDF")"; rm -f "$PIDF"; }
+
+wanted() {
+ [ "$(cat "$ENABLED" 2>/dev/null)" = on ] && [ ! -e "$MUTED" ] && power_ok
+}
+
+mkdir -p "$STATE"
+case ${1:-sync} in
+ config)
+ echo "${2:-off}" > "$ENABLED"
+ case ${3:-} in ''|*[!0-9]*) ;; *) echo "$3" > "$VOLUME" ;; esac
+ rm -f "$MUTED" # a reload re-applies the config
+ stop
+ if wanted; then start
+ elif [ "${2:-off}" = on ] && [ -n "$(sound)" ]; then
+ notify-send -a ambient "Background sound" "On, waiting until you're plugged in and out of power-saver"
+ fi ;;
+ toggle)
+ if [ -e "$MUTED" ] || ! running; then
+ rm -f "$MUTED"
+ if [ "$(cat "$ENABLED" 2>/dev/null)" != on ]; then
+ notify-send "Background sound" "Off in sway/config (set \$ambient_sound on)"
+ elif [ -z "$(sound)" ]; then
+ notify-send "Background sound" "No sway/background-sound.* file"
+ elif ! power_ok; then
+ notify-send "Background sound" "Waits until you're plugged in and out of power-saver"
+ else start
+ fi
+ else
+ touch "$MUTED"; stop
+ fi ;;
+ sync) if wanted; then start; else stop; fi ;;
+ off) touch "$MUTED"; stop ;;
+ *) sed -n '2,11p' "$0" | sed 's/^# \{0,1\}//'; exit 1 ;;
+esac
diff --git a/binaries/bt-toggle b/binaries/bt-toggle
new file mode 100755
index 0000000..7bf6a25
--- /dev/null
+++ b/binaries/bt-toggle
@@ -0,0 +1,8 @@
+#!/bin/sh
+# Toggle the bluetooth adapter on/off (unblocking rfkill if needed).
+if bluetoothctl show | grep -q 'Powered: yes'; then
+ bluetoothctl power off
+else
+ rfkill unblock bluetooth
+ bluetoothctl power on
+fi
diff --git a/binaries/calendar b/binaries/calendar
new file mode 100755
index 0000000..8366c17
--- /dev/null
+++ b/binaries/calendar
@@ -0,0 +1,33 @@
+#!/bin/sh
+# calendar: show this month as a notification (the waybar clock's click).
+# Click the clock again to close it. Colors match the Moon palette:
+# month cyan, weekdays gold, today red.
+ID_FILE="${XDG_RUNTIME_DIR:-/tmp}/waybar-calendar.id"
+
+# Second click closes the open calendar
+if [ -f "$ID_FILE" ] && makoctl list -j 2>/dev/null | grep -q "\"id\": *$(cat "$ID_FILE")\b"; then
+ makoctl dismiss -n "$(cat "$ID_FILE")"
+ rm -f "$ID_FILE"
+ exit 0
+fi
+
+today=$(date +%-d)
+body=$(cal | awk -v t="$today" '
+ NR == 1 { next } # month title is added below
+ NR == 2 { printf "<span color=\"#E2C98A\"><b>%s</b></span>\n", $0; next }
+ NF == 0 { next }
+ {
+ out = ""
+ for (i = 1; i <= length($0); i += 3) { # cal uses 3-char columns
+ cell = substr($0, i, 3); d = cell; gsub(/ /, "", d)
+ if (d == t) { k = index(cell, d)
+ cell = substr(cell, 1, k - 1) "<span color=\"#E06A8E\"><b><u>" d "</u></b></span>" substr(cell, k + length(d)) }
+ out = out cell
+ }
+ sub(/ +$/, "", out); print out
+ }')
+
+title="<span color=\"#90CDF6\"><b>$(date '+%B %Y')</b></span>"
+id=$(notify-send -p -t 15000 -a calendar "Calendar" "$title
+$body")
+echo "$id" > "$ID_FILE"
diff --git a/binaries/dnd b/binaries/dnd
new file mode 100755
index 0000000..1836865
--- /dev/null
+++ b/binaries/dnd
@@ -0,0 +1,18 @@
+#!/bin/sh
+# dnd: mako do-not-disturb for the waybar bell.
+# dnd toggle turn do-not-disturb on/off
+# dnd status JSON for waybar (count = notifications waiting while muted)
+# When it's turned off, the waiting notifications pop up again.
+case ${1:-status} in
+ toggle)
+ makoctl mode -t do-not-disturb >/dev/null
+ pkill -RTMIN+10 -x waybar ;;
+ status)
+ if makoctl mode | grep -qx do-not-disturb; then
+ n=$(makoctl list -j 2>/dev/null | jq 'length' 2>/dev/null || echo 0)
+ [ "$n" -gt 0 ] 2>/dev/null && txt="\\udb80\\udc9b $n" || txt="\\udb80\\udc9b"
+ printf '{"text":"%s","tooltip":"Do not disturb is on (%s waiting)\\nClick: notifications · Right-click: turn off","class":"on"}\n' "$txt" "${n:-0}"
+ else
+ printf '{"text":"\\udb80\\udc9a","tooltip":"Notifications on\\nClick: notifications · Right-click: do not disturb","class":"off"}\n'
+ fi ;;
+esac
diff --git a/binaries/keybinds b/binaries/keybinds
new file mode 100755
index 0000000..3fa59e5
--- /dev/null
+++ b/binaries/keybinds
@@ -0,0 +1,51 @@
+#!/bin/sh
+# keybinds: every sway shortcut, read live from ~/.config/sway/config.
+# keybinds show them in fuzzel; picking one runs it
+# keybinds --markdown print a Markdown table (for the README)
+# keybinds --list print plain "keys action" lines
+
+CONF="${XDG_CONFIG_HOME:-$HOME/.config}/sway/config"
+
+parse() {
+ awk '
+ function trim(s) { sub(/^[ \t]+/, "", s); sub(/[ \t]+$/, "", s); return s }
+ /^[ \t]*set[ \t]+\$/ {
+ name = $2; val = $0; sub(/^[ \t]*set[ \t]+\$[^ \t]+[ \t]+/, "", val)
+ vars[name] = val; order[++nv] = name; next
+ }
+ /^[ \t]*mode[ \t]+"/ { m = $0; sub(/^[^"]*"/, "", m); sub(/".*/, "", m); mode = m; next }
+ /^[ \t]*}/ { mode = ""; next }
+ /^[ \t]*bindsym[ \t]/ {
+ line = trim($0); sub(/^bindsym[ \t]+/, "", line)
+ while (line ~ /^--[a-z-]+[ \t]/) sub(/^--[a-z-]+[ \t]+/, "", line)
+ key = line; sub(/[ \t].*/, "", key)
+ cmd = line; sub(/^[^ \t]+[ \t]+/, "", cmd)
+ for (pass = 0; pass < 4; pass++) # resolve nested $vars,
+ for (len = 40; len > 0; len--) # longest names first
+ for (i = 1; i <= nv; i++) if (length(order[i]) == len) {
+ pat = order[i]; gsub(/\$/, "\\$", pat); gsub(pat, vars[order[i]], cmd)
+ }
+ for (i = 1; i <= nv; i++) { pat = order[i]; gsub(/\$/, "\\$", pat); gsub(pat, vars[order[i]], key) }
+ gsub(/Mod4/, "Super", key); gsub(/Mod1/, "Alt", key)
+ gsub(/--no-startup-id[ \t]+/, "", cmd)
+ shown = cmd; sub(/^exec[ \t]+/, "", shown)
+ if (length(shown) > 70) shown = substr(shown, 1, 67) "..."
+ if (mode != "") key = mode ": " key
+ printf "%s\t%s\t%s\n", key, shown, (mode == "" ? cmd : "")
+ }
+ ' "$CONF"
+}
+
+case ${1:-} in
+ --markdown)
+ echo "| Keys | Action |"; echo "|---|---|"
+ parse | awk -F'\t' '{ a = $2; gsub(/\|/, "\\|", a); printf "| `%s` | `%s` |\n", $1, a }' ;;
+ --list)
+ parse | awk -F'\t' '{ printf "%-30s %s\n", $1, $2 }' ;;
+ *)
+ data=$(parse)
+ pick=$(printf '%s\n' "$data" | awk -F'\t' '{ printf "%-30s %s\n", $1, $2 }' |
+ fuzzel --dmenu --index --width 80 --lines 18 --prompt "keys ") || exit 0
+ cmd=$(printf '%s\n' "$data" | sed -n "$((pick + 1))p" | cut -f3)
+ [ -n "$cmd" ] && swaymsg -- "$cmd" >/dev/null ;;
+esac
diff --git a/binaries/lock-screen b/binaries/lock-screen
new file mode 100755
index 0000000..94e8f7a
--- /dev/null
+++ b/binaries/lock-screen
@@ -0,0 +1,22 @@
+#!/bin/sh
+# Styling lives in ~/.config/gtklock/{config.ini,style.css}.
+pgrep -x gtklock >/dev/null && exit 0
+
+wall="$HOME/.config/sway/background.png"
+blurred="${XDG_CACHE_HOME:-$HOME/.cache}/lock-background.png"
+bg="$wall"
+
+# Blurred + darkened copy of the wallpaper, rebuilt only when the wallpaper changes.
+if command -v magick >/dev/null && [ -f "$wall" ]; then
+ if [ ! -f "$blurred" ] || [ "$wall" -nt "$blurred" ]; then
+ mkdir -p "$(dirname "$blurred")"
+ magick "$wall" -resize 25% -blur 0x6 -resize 400% \
+ -fill '#080C1C' -colorize 35% "$blurred"
+ fi
+ bg="$blurred"
+fi
+
+layout="${XDG_CONFIG_HOME:-$HOME/.config}/gtklock/layout.ui"
+[ -f "$layout" ] && set -- -x "$layout"
+
+exec gtklock -d -b "$bg" "$@"
diff --git a/binaries/net-toggle b/binaries/net-toggle
new file mode 100755
index 0000000..8d750be
--- /dev/null
+++ b/binaries/net-toggle
@@ -0,0 +1,7 @@
+#!/bin/sh
+# Toggle the Wi-Fi radio on/off (wired connections are left alone).
+if [ "$(nmcli radio wifi)" = enabled ]; then
+ nmcli radio wifi off
+else
+ nmcli radio wifi on
+fi
diff --git a/binaries/nightlight b/binaries/nightlight
new file mode 100755
index 0000000..4066ea0
--- /dev/null
+++ b/binaries/nightlight
@@ -0,0 +1,21 @@
+#!/bin/sh
+# nightlight: warm the screen to 4000K (wlsunset) for the waybar moon.
+# nightlight toggle | on | off | status
+on() { pgrep -x wlsunset >/dev/null || setsid -f wlsunset -T 4001 -t 4000 >/dev/null 2>&1; }
+off() { pkill -x wlsunset; }
+case ${1:-status} in
+ on) on ;;
+ off) off ;;
+ toggle)
+ if ! command -v wlsunset >/dev/null; then
+ notify-send "Night light" "wlsunset isn't installed (run install-deps.sh)"; exit 1
+ fi
+ if pgrep -x wlsunset >/dev/null; then off; else on; fi
+ sleep 0.3; pkill -RTMIN+12 -x waybar ;;
+ status)
+ if pgrep -x wlsunset >/dev/null; then
+ printf '{"text":"\\udb81\\udd94","tooltip":"Night light on (warm screen)\\nClick to turn off","class":"on"}\n'
+ else
+ printf '{"text":"\\udb81\\udd94","tooltip":"Night light off\\nClick to warm the screen","class":"off"}\n'
+ fi ;;
+esac
diff --git a/binaries/notifications b/binaries/notifications
new file mode 100755
index 0000000..d6f0858
--- /dev/null
+++ b/binaries/notifications
@@ -0,0 +1,37 @@
+#!/bin/sh
+# notifications: a small notification centre in fuzzel (the waybar bell's left click).
+# Lists notifications waiting behind do-not-disturb (●) and recent history.
+# Picking one shows it again; "Dismiss waiting" clears the waiting ones.
+command -v jq >/dev/null || { notify-send "Notifications" "jq isn't installed"; exit 1; }
+
+# kind<TAB>app<TAB>summary<TAB>body (markup stripped, one line each)
+rows() {
+ makoctl "$1" -j 2>/dev/null | jq -r --arg k "$2" '.[]
+ | select(.app_name != "calendar" and .app_name != "notifications")
+ | [$k, (.app_name // "app"), (.summary // ""),
+ ((.body // "") | gsub("<[^>]*>"; "") | gsub("\\s+"; " ") | .[0:90])] | @tsv'
+}
+waiting=$(rows list waiting)
+history=$(rows history history)
+all=$(printf '%s\n%s\n' "$waiting" "$history" | grep -v '^$')
+
+if [ -z "$all" ]; then
+ notify-send -a notifications "Notifications" "Nothing here yet"
+ exit 0
+fi
+
+menu=$(printf '%s\n' "$all" | awk -F'\t' '{
+ mark = ($1 == "waiting") ? "●" : " "
+ line = mark " " $2 ": " $3; if ($4 != "") line = line " " $4
+ print line }')
+[ -n "$waiting" ] && menu=$(printf ' Dismiss waiting\n%s' "$menu")
+
+pick=$(printf '%s\n' "$menu" | fuzzel --dmenu --index --width 70 --lines 14 --prompt "notifications ") || exit 0
+
+if [ -n "$waiting" ]; then
+ [ "$pick" = 0 ] && { makoctl dismiss -a; pkill -RTMIN+10 -x waybar; exit 0; }
+ pick=$((pick - 1))
+fi
+row=$(printf '%s\n' "$all" | sed -n "$((pick + 1))p")
+app=$(printf '%s' "$row" | cut -f2); summary=$(printf '%s' "$row" | cut -f3); body=$(printf '%s' "$row" | cut -f4)
+notify-send -a notifications "$app · $summary" "$body"
diff --git a/binaries/powermenu b/binaries/powermenu
new file mode 100755
index 0000000..390f6d9
--- /dev/null
+++ b/binaries/powermenu
@@ -0,0 +1,9 @@
+#!/bin/sh
+choice=$(printf 'Lock\nLogout\nSuspend\nReboot\nShutdown\n' | fuzzel --dmenu --prompt "power ") || exit
+case $choice in
+ Lock) ~/.local/bin/lock-screen ;;
+ Logout) swaymsg exit ;;
+ Suspend) ~/.local/bin/lock-screen && loginctl suspend ;;
+ Reboot) loginctl reboot ;;
+ Shutdown) loginctl poweroff ;;
+esac
diff --git a/binaries/recording-status b/binaries/recording-status
new file mode 100755
index 0000000..a0ffc3e
--- /dev/null
+++ b/binaries/recording-status
@@ -0,0 +1,8 @@
+#!/bin/sh
+# recording-status: red dot on the bar while wf-recorder is running.
+# Prints nothing when idle, so waybar hides the module.
+if pgrep -x wf-recorder >/dev/null; then
+ printf '{"text":"\\udb81\\udc4a REC","tooltip":"Recording the screen\\nClick (or Ctrl+Alt+Print) to stop","class":"recording"}\n'
+else
+ echo '{"text":""}'
+fi
diff --git a/binaries/screenshot b/binaries/screenshot
new file mode 100755
index 0000000..609e910
--- /dev/null
+++ b/binaries/screenshot
@@ -0,0 +1,34 @@
+#!/bin/sh
+# screenshot [-s] [-c] | screenshot -r
+# -s select a region (default: whole screen)
+# -c copy to clipboard instead of saving
+# -r start/stop a screen recording (region select)
+region='' copy=''
+while getopts scr opt; do
+ case $opt in
+ s) region=1 ;;
+ c) copy=1 ;;
+ r)
+ if pkill -INT -x wf-recorder; then
+ notify-send "Recording saved" "$HOME/Videos"
+ sleep 0.5; pkill -RTMIN+11 -x waybar # hide the REC dot
+ else
+ g=$(slurp) || exit 1
+ mkdir -p "$HOME/Videos"
+ notify-send "Recording" "Press Ctrl+Alt+Print again to stop"
+ wf-recorder -g "$g" -f "$HOME/Videos/rec-$(date +%F_%H-%M-%S).mp4" &
+ sleep 0.5; pkill -RTMIN+11 -x waybar # show the REC dot
+ wait
+ pkill -RTMIN+11 -x waybar
+ fi
+ exit ;;
+ *) exit 1 ;;
+ esac
+done
+if [ -n "$region" ]; then g=$(slurp) || exit 1; set -- -g "$g"; else set --; fi
+if [ -n "$copy" ]; then
+ grim "$@" - | wl-copy --type image/png && notify-send "Screenshot copied"
+else
+ f="$HOME/Pictures/Screenshots/$(date +%F_%H-%M-%S).png"
+ grim "$@" "$f" && notify-send "Screenshot saved" "$f"
+fi
diff --git a/binaries/updates b/binaries/updates
new file mode 100755
index 0000000..965ecc8
--- /dev/null
+++ b/binaries/updates
@@ -0,0 +1,21 @@
+#!/bin/sh
+# updates: count pending package updates for the waybar icon.
+# updates status JSON for waybar (hidden when there's nothing to update)
+# updates run open kitty and run the upgrade
+# Void only for now; other distros just hide the icon.
+case ${1:-status} in
+ status)
+ command -v xbps-install >/dev/null || { echo '{"text":""}'; exit 0; }
+ list=$(xbps-install -Mun 2>/dev/null)
+ n=$(printf '%s' "$list" | grep -c .)
+ if [ "$n" -gt 0 ]; then
+ names=$(printf '%s\n' "$list" | awk '{print $1}' | head -15 | sed 's/$/\\n/' | tr -d '\n')
+ [ "$n" -gt 15 ] && names="${names}…and $((n - 15)) more\\n"
+ printf '{"text":"\\udb80\\udfd5 %s","tooltip":"%s update(s) waiting\\n%sClick to update","class":"pending"}\n' "$n" "$n" "$names"
+ else
+ echo '{"text":""}'
+ fi ;;
+ run)
+ kitty --title "System update" sh -c 'sudo xbps-install -Su; printf "\nDone. Press Enter to close."; read _'
+ pkill -RTMIN+13 -x waybar ;;
+esac
diff --git a/binaries/wallpaper b/binaries/wallpaper
new file mode 100755
index 0000000..d5d0997
--- /dev/null
+++ b/binaries/wallpaper
@@ -0,0 +1,73 @@
+#!/bin/sh
+# wallpaper: switch between the still and the animated wallpaper.
+#
+# wallpaper toggle flip static <-> animated (the waybar decor button)
+# wallpaper static still image only
+# wallpaper animated play sway/background.webm on top of the still
+# wallpaper restore start whichever mode was last chosen (run at login)
+# wallpaper sync play/stop the video to match power (run by waybar-battery)
+# wallpaper status JSON for the waybar button
+#
+# Animated mode plays on AC or battery, but pauses in power-saver or when the
+# battery is discharging at 20% or less; then the still shows and the button
+# turns amber ("paused").
+#
+# The still (sway/config "output * bg") always runs underneath, so stopping
+# the video just reveals it. mpvpaper pauses itself while windows cover it.
+
+VIDEO="$HOME/.config/sway/background.webm"
+STATE="${XDG_STATE_HOME:-$HOME/.local/state}/wallpaper-mode"
+
+mode() { cat "$STATE" 2>/dev/null || echo static; }
+save() { mkdir -p "$(dirname "$STATE")"; echo "$1" > "$STATE"; }
+refresh() { pkill -RTMIN+9 -x waybar; }
+
+# Should the video run right now? Not in power-saver, and no battery
+# discharging at or below LOW percent.
+LOW=20
+power_ok() {
+ [ "$(powerprofilesctl get 2>/dev/null)" != power-saver ] || return 1
+ for b in /sys/class/power_supply/BAT*; do
+ [ -r "$b/capacity" ] || continue
+ [ "$(cat "$b/status")" = Discharging ] && [ "$(cat "$b/capacity")" -le "$LOW" ] && return 1
+ done
+ return 0
+}
+
+start_video() {
+ pgrep -x mpvpaper >/dev/null && return 0
+ if ! command -v mpvpaper >/dev/null; then
+ notify-send "Animated wallpaper" "mpvpaper isn't installed (run install-deps.sh)"
+ return 1
+ fi
+ [ -f "$VIDEO" ] || { notify-send "Animated wallpaper" "Missing $VIDEO"; return 1; }
+ setsid -f mpvpaper -p -o "no-audio loop hwdec=auto panscan=1.0" '*' "$VIDEO" \
+ >/dev/null 2>&1
+}
+
+case ${1:-status} in
+ static) pkill -x mpvpaper; save static; refresh ;;
+ animated)
+ save animated
+ if power_ok; then start_video || save static
+ else notify-send "Animated wallpaper" "Paused: power-saver is on, or the battery is at ${LOW}% or less"
+ fi
+ refresh ;;
+ toggle) if [ "$(mode)" = animated ]; then "$0" static; else "$0" animated; fi ;;
+ restore) [ "$(mode)" = animated ] && power_ok && start_video ;;
+ sync)
+ [ "$(mode)" = animated ] && command -v mpvpaper >/dev/null || exit 0
+ running=0; pgrep -x mpvpaper >/dev/null && running=1
+ if power_ok; then [ "$running" = 1 ] || { start_video; refresh; }
+ else [ "$running" = 0 ] || { pkill -x mpvpaper; refresh; }
+ fi ;;
+ status)
+ if [ "$(mode)" = animated ] && ! pgrep -x mpvpaper >/dev/null; then
+ printf '{"text":"<span color=\\"#E8A87C\\">\\udb82\\udd3a</span>","tooltip":"Animated wallpaper paused (power-saver, or battery at 20%% or less)\\nClick for the still","class":"paused"}\n'
+ elif [ "$(mode)" = animated ]; then
+ printf '{"text":"<span color=\\"#90CDF6\\">\\udb82\\udd3a</span>","tooltip":"Animated wallpaper (click for still)","class":"animated"}\n'
+ else
+ printf '{"text":"<span color=\\"#E06A8E\\">\\udb80\\udee9</span>","tooltip":"Still wallpaper (click to animate)","class":"static"}\n'
+ fi ;;
+ *) sed -n '2,10p' "$0" | sed 's/^# \{0,1\}//'; exit 1 ;;
+esac
diff --git a/binaries/waybar-battery b/binaries/waybar-battery
new file mode 100755
index 0000000..d5b94c3
--- /dev/null
+++ b/binaries/waybar-battery
@@ -0,0 +1,73 @@
+#!/bin/sh
+# Battery module for waybar that also reflects the power-profiles-daemon state.
+# Usage: waybar-battery -> print JSON for waybar
+# waybar-battery saver -> flip power-saver <-> balanced
+# waybar-battery performance -> flip performance <-> balanced
+# waybar-battery menu -> pick a profile with fuzzel
+BAT=/sys/class/power_supply/BAT0
+
+toggle() { # $1 = profile to flip into (back to balanced if already on it)
+ if [ "$(powerprofilesctl get)" = "$1" ]; then
+ powerprofilesctl set balanced
+ else
+ powerprofilesctl set "$1"
+ fi
+}
+
+case $1 in
+ toggle|saver) toggle power-saver ;;
+ performance) toggle performance ;;
+ menu)
+ current=$(powerprofilesctl get)
+ choice=$(powerprofilesctl list | sed -n 's/^[* ] *\([a-z-]*\):$/\1/p' \
+ | fuzzel --dmenu --prompt "profile ($current) ") || exit
+ powerprofilesctl set "$choice" ;;
+esac
+if [ -n "$1" ]; then
+ pkill -RTMIN+8 -x waybar
+ ~/.local/bin/wallpaper sync &
+ ~/.local/bin/ambient sync &
+ exit
+fi
+
+# Keep the animated wallpaper and background sound in step with power (cheap; exit early if unused)
+~/.local/bin/wallpaper sync >/dev/null 2>&1 &
+~/.local/bin/ambient sync >/dev/null 2>&1 &
+
+cap=$(cat "$BAT/capacity")
+status=$(cat "$BAT/status")
+e_now=$(cat "$BAT/energy_now")
+e_full=$(cat "$BAT/energy_full")
+p_now=$(cat "$BAT/power_now")
+profile=$(powerprofilesctl get 2>/dev/null)
+
+set --
+shift $((cap / 10))
+icon=$1
+classes=""
+case $status in
+ Charging) icon=; classes="charging" ;;
+ Full|"Not charging") icon=; classes="plugged" ;;
+ *)
+ [ "$cap" -le 25 ] && classes="warning"
+ [ "$cap" -le 10 ] && classes="critical" ;;
+esac
+case $profile in
+ power-saver) classes="$classes powersave" ;;
+ performance) classes="$classes performance" ;;
+esac
+
+# Time estimate (energy in µWh, power in µW)
+time=""
+if [ "$p_now" -gt 0 ]; then
+ case $status in
+ Discharging) mins=$((e_now * 60 / p_now)); time="$((mins / 60))h $((mins % 60))m remaining" ;;
+ Charging) mins=$(((e_full - e_now) * 60 / p_now)); time="$((mins / 60))h $((mins % 60))m until full" ;;
+ esac
+fi
+watts=$(awk "BEGIN{printf \"%.1f\", $p_now/1000000}")
+tip="${time:+$time, }${watts}W\\nProfile: $profile\\nLeft: power-saver · Right: performance · Middle: menu"
+
+json_classes=$(printf '%s\n' $classes | awk 'NF{printf "%s\"%s\"", (n++?",":""), $0}')
+printf '{"text":"%s %s%%","tooltip":"%s","class":[%s],"percentage":%s}\n' \
+ "$icon" "$cap" "$tip" "$json_classes" "$cap"
diff --git a/btop/btop.conf b/btop/btop.conf
new file mode 100644
index 0000000..efe3cfd
--- /dev/null
+++ b/btop/btop.conf
@@ -0,0 +1,6 @@
+#? Config file for btop
+
+# Moon theme from ./themes, transparent so kitty's glass shows through
+color_theme = "moon"
+theme_background = false
+truecolor = true
diff --git a/btop/themes/moon.theme b/btop/themes/moon.theme
new file mode 100644
index 0000000..489a616
--- /dev/null
+++ b/btop/themes/moon.theme
@@ -0,0 +1,43 @@
+# Moon theme for btop, matches ~/.config/sway/moon
+theme[main_bg]=""
+theme[main_fg]="#DBE2F2"
+theme[title]="#DBE2F2"
+theme[hi_fg]="#90CDF6"
+theme[selected_bg]="#20304F"
+theme[selected_fg]="#CFE9FB"
+theme[inactive_fg]="#4A5A85"
+theme[graph_text]="#98A7DA"
+theme[meter_bg]="#20304F"
+theme[proc_misc]="#E2C98A"
+theme[cpu_box]="#90CDF6"
+theme[mem_box]="#E2C98A"
+theme[net_box]="#558AD5"
+theme[proc_box]="#BDAADE"
+theme[div_line]="#2E4066"
+theme[temp_start]="#90CDF6"
+theme[temp_mid]="#E2C98A"
+theme[temp_end]="#E06A8E"
+theme[cpu_start]="#558AD5"
+theme[cpu_mid]="#90CDF6"
+theme[cpu_end]="#E06A8E"
+theme[free_start]="#1C326D"
+theme[free_mid]="#558AD5"
+theme[free_end]="#90CDF6"
+theme[cached_start]="#4A1A35"
+theme[cached_mid]="#8D75CB"
+theme[cached_end]="#BDAADE"
+theme[available_start]="#2E4066"
+theme[available_mid]="#74ABEB"
+theme[available_end]="#CFE9FB"
+theme[used_start]="#B89A62"
+theme[used_mid]="#E2C98A"
+theme[used_end]="#E06A8E"
+theme[download_start]="#1C326D"
+theme[download_mid]="#558AD5"
+theme[download_end]="#90CDF6"
+theme[upload_start]="#4A1A35"
+theme[upload_mid]="#C8406A"
+theme[upload_end]="#E06A8E"
+theme[process_start]="#90CDF6"
+theme[process_mid]="#E2C98A"
+theme[process_end]="#E06A8E"
diff --git a/fuzzel/fuzzel.ini b/fuzzel/fuzzel.ini
new file mode 100644
index 0000000..1cef6f6
--- /dev/null
+++ b/fuzzel/fuzzel.ini
@@ -0,0 +1,28 @@
+# Moon palette, matches ~/.config/sway/moon
+[main]
+font=JetBrainsMono Nerd Font:size=12
+terminal=kitty -e
+prompt="❯ "
+icon-theme=Adwaita
+lines=10
+width=40
+horizontal-pad=20
+vertical-pad=14
+inner-pad=8
+layer=overlay
+
+[colors]
+background=080C1CD9
+text=DBE2F2ff
+prompt=90CDF6ff
+placeholder=4A5A85ff
+input=DBE2F2ff
+match=E2C98Aff
+selection=90CDF6ff
+selection-text=080C1Cff
+selection-match=4A1A35ff
+border=90CDF6ff
+
+[border]
+width=2
+radius=16
diff --git a/gtk-3.0/gtk.css b/gtk-3.0/gtk.css
new file mode 100644
index 0000000..7da7511
--- /dev/null
+++ b/gtk-3.0/gtk.css
@@ -0,0 +1,22 @@
+/* Moon palette for GTK 3 apps (Adwaita-dark), matches ~/.config/sway/moon */
+@define-color theme_bg_color #101830;
+@define-color theme_fg_color #DBE2F2;
+@define-color theme_base_color #080C1C;
+@define-color theme_text_color #DBE2F2;
+@define-color theme_selected_bg_color #90CDF6;
+@define-color theme_selected_fg_color #080C1C;
+@define-color insensitive_bg_color #101830;
+@define-color insensitive_fg_color #6B78A3;
+@define-color insensitive_base_color #080C1C;
+@define-color theme_unfocused_bg_color #101830;
+@define-color theme_unfocused_fg_color #B8C4E6;
+@define-color theme_unfocused_base_color #080C1C;
+@define-color borders #20304F;
+@define-color unfocused_borders #20304F;
+@define-color warning_color #E8A87C;
+@define-color error_color #E06A8E;
+@define-color success_color #7FD1B9;
+
+/* Adwaita draws these with hard-coded colors, so restate them */
+headerbar, .titlebar { background: #080C1C; color: #DBE2F2; border-color: #20304F; box-shadow: none; }
+selection, *:selected { background-color: alpha(#90CDF6, 0.85); color: #080C1C; }
diff --git a/gtk-3.0/settings.ini b/gtk-3.0/settings.ini
new file mode 100644
index 0000000..6318d9c
--- /dev/null
+++ b/gtk-3.0/settings.ini
@@ -0,0 +1,3 @@
+[Settings]
+gtk-theme-name=Adwaita-dark
+gtk-application-prefer-dark-theme=1
diff --git a/gtk-4.0/gtk.css b/gtk-4.0/gtk.css
new file mode 100644
index 0000000..aba7065
--- /dev/null
+++ b/gtk-4.0/gtk.css
@@ -0,0 +1,34 @@
+/* Moon palette for GTK 4 / libadwaita apps, matches ~/.config/sway/moon */
+@define-color accent_color #90CDF6;
+@define-color accent_bg_color #2F8FB0;
+@define-color accent_fg_color #080C1C;
+@define-color destructive_color #E06A8E;
+@define-color destructive_bg_color #C8406A;
+@define-color destructive_fg_color #DBE2F2;
+@define-color success_color #7FD1B9;
+@define-color warning_color #E8A87C;
+@define-color error_color #E06A8E;
+@define-color window_bg_color #101830;
+@define-color window_fg_color #DBE2F2;
+@define-color view_bg_color #080C1C;
+@define-color view_fg_color #DBE2F2;
+@define-color headerbar_bg_color #080C1C;
+@define-color headerbar_fg_color #DBE2F2;
+@define-color headerbar_backdrop_color #101830;
+@define-color sidebar_bg_color #080C1C;
+@define-color sidebar_fg_color #DBE2F2;
+@define-color card_bg_color #18233F;
+@define-color card_fg_color #DBE2F2;
+@define-color dialog_bg_color #101830;
+@define-color dialog_fg_color #DBE2F2;
+@define-color popover_bg_color #18233F;
+@define-color popover_fg_color #DBE2F2;
+
+/* Plain GTK 4 apps (no libadwaita) still read the old names */
+@define-color theme_bg_color #101830;
+@define-color theme_fg_color #DBE2F2;
+@define-color theme_base_color #080C1C;
+@define-color theme_text_color #DBE2F2;
+@define-color theme_selected_bg_color #90CDF6;
+@define-color theme_selected_fg_color #080C1C;
+@define-color borders #20304F;
diff --git a/gtk-4.0/settings.ini b/gtk-4.0/settings.ini
new file mode 100644
index 0000000..29322c1
--- /dev/null
+++ b/gtk-4.0/settings.ini
@@ -0,0 +1,2 @@
+[Settings]
+gtk-application-prefer-dark-theme=1
diff --git a/gtklock/avatar.png b/gtklock/avatar.png
new file mode 100644
index 0000000..d1628fd
Binary files /dev/null and b/gtklock/avatar.png differ
diff --git a/gtklock/config.ini b/gtklock/config.ini
new file mode 100644
index 0000000..b2675ca
--- /dev/null
+++ b/gtklock/config.ini
@@ -0,0 +1,7 @@
+[main]
+# Background is passed by ~/.local/bin/lock-screen (blurred wallpaper)
+# style.css in this folder is loaded automatically; lock-screen also passes layout.ui (adds the avatar)
+time-format=%H:%M
+date-format=%A, %d %B
+idle-hide=true
+idle-timeout=15
diff --git a/gtklock/layout.ui b/gtklock/layout.ui
new file mode 100644
index 0000000..0a26247
--- /dev/null
+++ b/gtklock/layout.ui
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- gtklock's built-in layout plus an "avatar" box above the clock.
+ The picture itself is set in style.css (avatar.png in this folder). -->
+<interface><object class="GtkBox" id="window-box"><property name="name">window-box</property><property name="margin">100</property><property name="halign">center</property><property name="valign">center</property><property name="orientation">vertical</property><property name="spacing">10</property><child><object class="GtkBox" id="info-box"><property name="name">info-box</property><property name="halign">center</property><property name="orientation">vertical</property><property name="spacing">5</property><child><object class="GtkBox" id="avatar"><property name="name">avatar</property><property name="halign">center</property></object></child><child><object class="GtkBox" id="time-box"><property name="name">time-box</property><property name="halign">center</property><property name="orientation">vertical</property><child><object class="GtkLabel" id="clock-label"><property name="name">clock-label</property><property name="halign">center</property></object></child><child><object class="GtkLabel" id="date-label"><property name="name">date-label</property><property name="halign">center</property></object></child></object></child></object></child><child><object class="GtkRevealer" id="body-revealer"><property name="transition-type">none</property><property name="reveal-child">0</property><child><object class="GtkGrid" id="body-grid"><property name="row-spacing">5</property><property name="column-spacing">5</property><child><object class="GtkLabel" id="input-label"><property name="name">input-label</property><property name="label" translatable="yes">Password:</property></object><packing><property name="left-attach">0</property><property name="top-attach">0</property></packing></child><child><object class="GtkEntry" id="input-field"><property name="name">input-field</property><property name="width-request">380</property><property name="visibility">0</property><property name="caps-lock-warning">0</property><property name="input-purpose">password</property><property name="secondary-icon-name">view-reveal-symbolic</property><signal name="icon-release" handler="window_pw_toggle_vis"/><signal name="activate" handler="window_pw_check"/></object><packing><property name="left-attach">1</property><property name="top-attach">0</property><property name="width">2</property></packing></child><child><object class="GtkRevealer" id="message-revealer"><property name="transition-type">none</property><property name="no-show-all">1</property><child><object class="GtkScrolledWindow" id="message-scrolled-window"><property name="hscrollbar-policy">never</property><property name="max-content-height">256</property><property name="propagate-natural-height">1</property><child><object class="GtkViewport"><child><object class="GtkBox" id="message-box"><property name="orientation">vertical</property><property name="homogeneous">1</property></object></child></object></child></object></child></object><packing><property name="left-attach">1</property><property name="top-attach">1</property><property name="width">2</property></packing></child><child><object class="GtkBox"><property name="halign">end</property><property name="spacing">5</property><child><object class="GtkLabel" id="warning-label"><property name="name">warning-label</property></object></child><child><object class="GtkLabel" id="error-label"><property name="name">error-label</property></object></child><child><object class="GtkButton" id="unlock-button"><property name="name">unlock-button</property><property name="label" translatable="yes">Unlock</property><style><class name="suggested-action"/></style><signal name="clicked" handler="window_pw_check"/></object></child></object><packing><property name="left-attach">1</property><property name="top-attach">2</property><property name="width">2</property></packing></child></object></child></object></child></object></interface>
diff --git a/gtklock/style.css b/gtklock/style.css
new file mode 100644
index 0000000..0639dfa
--- /dev/null
+++ b/gtklock/style.css
@@ -0,0 +1,113 @@
+/* Moon palette, matches ~/.config/sway/moon and swaylock config */
+@define-color bg #080C1C;
+@define-color fg #DBE2F2;
+@define-color glow #90CDF6;
+@define-color frost #CFE9FB;
+@define-color blue #558AD5;
+@define-color crimson #E06A8E;
+@define-color gold #E2C98A;
+@define-color amber #E8A87C;
+
+* {
+ font-family: "JetBrainsMono Nerd Font";
+ color: @fg;
+}
+
+window {
+ background-color: @bg;
+ background-size: cover;
+ background-position: center;
+}
+
+#window-box {
+ padding: 36px 48px;
+ border-radius: 14px;
+ border: 2px solid @glow;
+ background-color: alpha(@bg, 0.80);
+ box-shadow: 0 0 24px alpha(@glow, 0.45);
+}
+
+/* Round avatar above the clock (avatar.png next to this file; layout.ui adds the box) */
+#avatar {
+ min-width: 112px;
+ min-height: 112px;
+ margin-bottom: 14px;
+ background-image: url("avatar.png");
+ background-size: cover;
+ background-position: center;
+ border-radius: 50%;
+ border: 2px solid @glow;
+ box-shadow: 0 0 16px alpha(@glow, 0.45);
+}
+
+#clock-label {
+ font-size: 72px;
+ font-weight: bold;
+ color: @frost;
+ text-shadow: 0 0 12px alpha(@frost, 0.6);
+}
+
+#date-label {
+ font-size: 18px;
+ color: @gold;
+ margin-bottom: 20px;
+}
+
+#input-label {
+ font-size: 16px;
+ color: @glow;
+ margin-right: 8px;
+}
+
+/* The password box: shows a dot per typed character */
+#input-field {
+ min-width: 300px;
+ min-height: 40px;
+ padding: 4px 14px;
+ font-size: 20px;
+ color: @frost;
+ caret-color: @glow;
+ background-color: alpha(@bg, 0.9);
+ background-image: none;
+ border: 2px solid @blue;
+ border-radius: 8px;
+ box-shadow: none;
+}
+
+#input-field:focus {
+ border-color: @frost;
+ box-shadow: 0 0 10px alpha(@frost, 0.5);
+}
+
+#input-field:disabled { /* while checking the password */
+ border-color: @gold;
+ color: @gold;
+}
+
+#unlock-button {
+ margin-left: 8px;
+ padding: 4px 16px;
+ font-weight: bold;
+ color: @bg;
+ background-image: none;
+ background-color: @glow;
+ border: none;
+ border-radius: 8px;
+ box-shadow: none;
+}
+
+#unlock-button label { color: @bg; } /* beat the "* { color }" rule */
+#unlock-button:hover { background-color: @frost; }
+#unlock-button:active { background-color: @gold; }
+
+#error-label { /* wrong password */
+ color: @crimson;
+ font-weight: bold;
+ margin-top: 10px;
+}
+
+#warning-label { /* caps lock */
+ color: @amber;
+ font-weight: bold;
+ margin-top: 10px;
+}
diff --git a/gtkrc b/gtkrc
new file mode 100644
index 0000000..f9ca0f7
--- /dev/null
+++ b/gtkrc
@@ -0,0 +1,6 @@
+# created by KDE Plasma, Fri Nov 6 15:49:11 2026
+#
+include "/usr/share/themes/Breeze/gtk-2.0/gtkrc"
+
+gtk-theme-name="Breeze"
+
diff --git a/gtkrc-2.0 b/gtkrc-2.0
new file mode 100644
index 0000000..569a7cd
--- /dev/null
+++ b/gtkrc-2.0
@@ -0,0 +1,5 @@
+# created by KDE Plasma, Fri Nov 6 15:49:11 2026
+#
+
+gtk-alternative-button-order = 1
+
diff --git a/hyfetch.json b/hyfetch.json
new file mode 100644
index 0000000..063ea06
--- /dev/null
+++ b/hyfetch.json
@@ -0,0 +1,18 @@
+{
+ "preset": "transbian",
+ "mode": "rgb",
+ "auto_detect_light_dark": true,
+ "light_dark": "dark",
+ "lightness": 0.69,
+ "color_align": {
+ "mode": "horizontal"
+ },
+ "backend": "fastfetch",
+ "args": null,
+ "distro": null,
+ "pride_month_disable": false,
+ "custom_ascii_path": null,
+ "custom_presets": null,
+ "palette_glyph": null,
+ "palette_type": null
+}
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/00000000000000020006000e7e9ffc3f b/icons/sandrone-linux/cursors/00000000000000020006000e7e9ffc3f
new file mode 120000
index 0000000..b0e6589
--- /dev/null
+++ b/icons/sandrone-linux/cursors/00000000000000020006000e7e9ffc3f
@@ -0,0 +1 @@
+left_ptr_watch
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/00008160000006810000408080010102 b/icons/sandrone-linux/cursors/00008160000006810000408080010102
new file mode 120000
index 0000000..a3693c3
--- /dev/null
+++ b/icons/sandrone-linux/cursors/00008160000006810000408080010102
@@ -0,0 +1 @@
+sb_v_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/028006030e0e7ebffc7f7070c0600140 b/icons/sandrone-linux/cursors/028006030e0e7ebffc7f7070c0600140
new file mode 120000
index 0000000..baba492
--- /dev/null
+++ b/icons/sandrone-linux/cursors/028006030e0e7ebffc7f7070c0600140
@@ -0,0 +1 @@
+sb_h_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/03b6e0fcb3499374a867c041f52298f0 b/icons/sandrone-linux/cursors/03b6e0fcb3499374a867c041f52298f0
new file mode 120000
index 0000000..23bfed6
--- /dev/null
+++ b/icons/sandrone-linux/cursors/03b6e0fcb3499374a867c041f52298f0
@@ -0,0 +1 @@
+not-allowed
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/0426c94ea35c87780ff01dc239897213 b/icons/sandrone-linux/cursors/0426c94ea35c87780ff01dc239897213
new file mode 120000
index 0000000..1655a60
--- /dev/null
+++ b/icons/sandrone-linux/cursors/0426c94ea35c87780ff01dc239897213
@@ -0,0 +1 @@
+watch
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/08e8e1c95fe2fc01f976f1e063a24ccd b/icons/sandrone-linux/cursors/08e8e1c95fe2fc01f976f1e063a24ccd
new file mode 120000
index 0000000..b0e6589
--- /dev/null
+++ b/icons/sandrone-linux/cursors/08e8e1c95fe2fc01f976f1e063a24ccd
@@ -0,0 +1 @@
+left_ptr_watch
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/3ecb610c1bf2410f44200f48c40d3599 b/icons/sandrone-linux/cursors/3ecb610c1bf2410f44200f48c40d3599
new file mode 120000
index 0000000..b0e6589
--- /dev/null
+++ b/icons/sandrone-linux/cursors/3ecb610c1bf2410f44200f48c40d3599
@@ -0,0 +1 @@
+left_ptr_watch
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/4498f0e0c1937ffe01fd06f973665830 b/icons/sandrone-linux/cursors/4498f0e0c1937ffe01fd06f973665830
new file mode 120000
index 0000000..147f744
--- /dev/null
+++ b/icons/sandrone-linux/cursors/4498f0e0c1937ffe01fd06f973665830
@@ -0,0 +1 @@
+fleur
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/9081237383d90e509aa00f00170e968f b/icons/sandrone-linux/cursors/9081237383d90e509aa00f00170e968f
new file mode 120000
index 0000000..147f744
--- /dev/null
+++ b/icons/sandrone-linux/cursors/9081237383d90e509aa00f00170e968f
@@ -0,0 +1 @@
+fleur
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/9d800788f1b08800ae810202380a0822 b/icons/sandrone-linux/cursors/9d800788f1b08800ae810202380a0822
new file mode 120000
index 0000000..0b08654
--- /dev/null
+++ b/icons/sandrone-linux/cursors/9d800788f1b08800ae810202380a0822
@@ -0,0 +1 @@
+hand2
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/all-scroll b/icons/sandrone-linux/cursors/all-scroll
new file mode 120000
index 0000000..147f744
--- /dev/null
+++ b/icons/sandrone-linux/cursors/all-scroll
@@ -0,0 +1 @@
+fleur
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/arrow b/icons/sandrone-linux/cursors/arrow
new file mode 120000
index 0000000..0de4e80
--- /dev/null
+++ b/icons/sandrone-linux/cursors/arrow
@@ -0,0 +1 @@
+left_ptr
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/bd_double_arrow b/icons/sandrone-linux/cursors/bd_double_arrow
new file mode 100644
index 0000000..2273b77
Binary files /dev/null and b/icons/sandrone-linux/cursors/bd_double_arrow differ
diff --git a/icons/sandrone-linux/cursors/bottom_left_corner b/icons/sandrone-linux/cursors/bottom_left_corner
new file mode 120000
index 0000000..3d249d7
--- /dev/null
+++ b/icons/sandrone-linux/cursors/bottom_left_corner
@@ -0,0 +1 @@
+fd_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/bottom_right_corner b/icons/sandrone-linux/cursors/bottom_right_corner
new file mode 120000
index 0000000..a8afe37
--- /dev/null
+++ b/icons/sandrone-linux/cursors/bottom_right_corner
@@ -0,0 +1 @@
+bd_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/bottom_side b/icons/sandrone-linux/cursors/bottom_side
new file mode 120000
index 0000000..a3693c3
--- /dev/null
+++ b/icons/sandrone-linux/cursors/bottom_side
@@ -0,0 +1 @@
+sb_v_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/c7088f0f3e6c8088236ef8e1e3e70000 b/icons/sandrone-linux/cursors/c7088f0f3e6c8088236ef8e1e3e70000
new file mode 120000
index 0000000..a8afe37
--- /dev/null
+++ b/icons/sandrone-linux/cursors/c7088f0f3e6c8088236ef8e1e3e70000
@@ -0,0 +1 @@
+bd_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/center_ptr b/icons/sandrone-linux/cursors/center_ptr
new file mode 100644
index 0000000..6535f05
Binary files /dev/null and b/icons/sandrone-linux/cursors/center_ptr differ
diff --git a/icons/sandrone-linux/cursors/circle b/icons/sandrone-linux/cursors/circle
new file mode 120000
index 0000000..23bfed6
--- /dev/null
+++ b/icons/sandrone-linux/cursors/circle
@@ -0,0 +1 @@
+not-allowed
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/clock b/icons/sandrone-linux/cursors/clock
new file mode 120000
index 0000000..1655a60
--- /dev/null
+++ b/icons/sandrone-linux/cursors/clock
@@ -0,0 +1 @@
+watch
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/col-resize b/icons/sandrone-linux/cursors/col-resize
new file mode 120000
index 0000000..baba492
--- /dev/null
+++ b/icons/sandrone-linux/cursors/col-resize
@@ -0,0 +1 @@
+sb_h_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/cross b/icons/sandrone-linux/cursors/cross
new file mode 120000
index 0000000..67580a7
--- /dev/null
+++ b/icons/sandrone-linux/cursors/cross
@@ -0,0 +1 @@
+crosshair
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/cross_reverse b/icons/sandrone-linux/cursors/cross_reverse
new file mode 120000
index 0000000..67580a7
--- /dev/null
+++ b/icons/sandrone-linux/cursors/cross_reverse
@@ -0,0 +1 @@
+crosshair
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/crossed_circle b/icons/sandrone-linux/cursors/crossed_circle
new file mode 120000
index 0000000..23bfed6
--- /dev/null
+++ b/icons/sandrone-linux/cursors/crossed_circle
@@ -0,0 +1 @@
+not-allowed
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/crosshair b/icons/sandrone-linux/cursors/crosshair
new file mode 100644
index 0000000..bf56103
Binary files /dev/null and b/icons/sandrone-linux/cursors/crosshair differ
diff --git a/icons/sandrone-linux/cursors/d9ce0ab605698f320427677b458ad60b b/icons/sandrone-linux/cursors/d9ce0ab605698f320427677b458ad60b
new file mode 120000
index 0000000..4cea3ac
--- /dev/null
+++ b/icons/sandrone-linux/cursors/d9ce0ab605698f320427677b458ad60b
@@ -0,0 +1 @@
+help
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/default b/icons/sandrone-linux/cursors/default
new file mode 120000
index 0000000..0de4e80
--- /dev/null
+++ b/icons/sandrone-linux/cursors/default
@@ -0,0 +1 @@
+left_ptr
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/diamond_cross b/icons/sandrone-linux/cursors/diamond_cross
new file mode 120000
index 0000000..67580a7
--- /dev/null
+++ b/icons/sandrone-linux/cursors/diamond_cross
@@ -0,0 +1 @@
+crosshair
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/e-resize b/icons/sandrone-linux/cursors/e-resize
new file mode 120000
index 0000000..baba492
--- /dev/null
+++ b/icons/sandrone-linux/cursors/e-resize
@@ -0,0 +1 @@
+sb_h_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/e29285e634086352946a0e7090d73106 b/icons/sandrone-linux/cursors/e29285e634086352946a0e7090d73106
new file mode 120000
index 0000000..0b08654
--- /dev/null
+++ b/icons/sandrone-linux/cursors/e29285e634086352946a0e7090d73106
@@ -0,0 +1 @@
+hand2
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/ew-resize b/icons/sandrone-linux/cursors/ew-resize
new file mode 120000
index 0000000..baba492
--- /dev/null
+++ b/icons/sandrone-linux/cursors/ew-resize
@@ -0,0 +1 @@
+sb_h_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/fcf1c3c7cd4491d801f1e1c78f100000 b/icons/sandrone-linux/cursors/fcf1c3c7cd4491d801f1e1c78f100000
new file mode 120000
index 0000000..3d249d7
--- /dev/null
+++ b/icons/sandrone-linux/cursors/fcf1c3c7cd4491d801f1e1c78f100000
@@ -0,0 +1 @@
+fd_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/fd_double_arrow b/icons/sandrone-linux/cursors/fd_double_arrow
new file mode 100644
index 0000000..dec3566
Binary files /dev/null and b/icons/sandrone-linux/cursors/fd_double_arrow differ
diff --git a/icons/sandrone-linux/cursors/fleur b/icons/sandrone-linux/cursors/fleur
new file mode 100644
index 0000000..79e16dd
Binary files /dev/null and b/icons/sandrone-linux/cursors/fleur differ
diff --git a/icons/sandrone-linux/cursors/forbidden b/icons/sandrone-linux/cursors/forbidden
new file mode 120000
index 0000000..23bfed6
--- /dev/null
+++ b/icons/sandrone-linux/cursors/forbidden
@@ -0,0 +1 @@
+not-allowed
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/grabbing b/icons/sandrone-linux/cursors/grabbing
new file mode 120000
index 0000000..147f744
--- /dev/null
+++ b/icons/sandrone-linux/cursors/grabbing
@@ -0,0 +1 @@
+fleur
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/h_double_arrow b/icons/sandrone-linux/cursors/h_double_arrow
new file mode 120000
index 0000000..baba492
--- /dev/null
+++ b/icons/sandrone-linux/cursors/h_double_arrow
@@ -0,0 +1 @@
+sb_h_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/half-busy b/icons/sandrone-linux/cursors/half-busy
new file mode 120000
index 0000000..b0e6589
--- /dev/null
+++ b/icons/sandrone-linux/cursors/half-busy
@@ -0,0 +1 @@
+left_ptr_watch
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/hand b/icons/sandrone-linux/cursors/hand
new file mode 120000
index 0000000..0b08654
--- /dev/null
+++ b/icons/sandrone-linux/cursors/hand
@@ -0,0 +1 @@
+hand2
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/hand1 b/icons/sandrone-linux/cursors/hand1
new file mode 120000
index 0000000..0b08654
--- /dev/null
+++ b/icons/sandrone-linux/cursors/hand1
@@ -0,0 +1 @@
+hand2
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/hand2 b/icons/sandrone-linux/cursors/hand2
new file mode 100644
index 0000000..4dd07e5
Binary files /dev/null and b/icons/sandrone-linux/cursors/hand2 differ
diff --git a/icons/sandrone-linux/cursors/handwriting b/icons/sandrone-linux/cursors/handwriting
new file mode 120000
index 0000000..644fb7b
--- /dev/null
+++ b/icons/sandrone-linux/cursors/handwriting
@@ -0,0 +1 @@
+pencil
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/help b/icons/sandrone-linux/cursors/help
new file mode 100644
index 0000000..a41caf9
Binary files /dev/null and b/icons/sandrone-linux/cursors/help differ
diff --git a/icons/sandrone-linux/cursors/ibeam b/icons/sandrone-linux/cursors/ibeam
new file mode 120000
index 0000000..18632c4
--- /dev/null
+++ b/icons/sandrone-linux/cursors/ibeam
@@ -0,0 +1 @@
+xterm
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/left_ptr b/icons/sandrone-linux/cursors/left_ptr
new file mode 100644
index 0000000..de2d92f
Binary files /dev/null and b/icons/sandrone-linux/cursors/left_ptr differ
diff --git a/icons/sandrone-linux/cursors/left_ptr_watch b/icons/sandrone-linux/cursors/left_ptr_watch
new file mode 100644
index 0000000..bdf0f11
Binary files /dev/null and b/icons/sandrone-linux/cursors/left_ptr_watch differ
diff --git a/icons/sandrone-linux/cursors/left_side b/icons/sandrone-linux/cursors/left_side
new file mode 120000
index 0000000..baba492
--- /dev/null
+++ b/icons/sandrone-linux/cursors/left_side
@@ -0,0 +1 @@
+sb_h_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/move b/icons/sandrone-linux/cursors/move
new file mode 120000
index 0000000..147f744
--- /dev/null
+++ b/icons/sandrone-linux/cursors/move
@@ -0,0 +1 @@
+fleur
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/n-resize b/icons/sandrone-linux/cursors/n-resize
new file mode 120000
index 0000000..a3693c3
--- /dev/null
+++ b/icons/sandrone-linux/cursors/n-resize
@@ -0,0 +1 @@
+sb_v_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/ne-resize b/icons/sandrone-linux/cursors/ne-resize
new file mode 120000
index 0000000..3d249d7
--- /dev/null
+++ b/icons/sandrone-linux/cursors/ne-resize
@@ -0,0 +1 @@
+fd_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/nesw-resize b/icons/sandrone-linux/cursors/nesw-resize
new file mode 120000
index 0000000..3d249d7
--- /dev/null
+++ b/icons/sandrone-linux/cursors/nesw-resize
@@ -0,0 +1 @@
+fd_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/no-drop b/icons/sandrone-linux/cursors/no-drop
new file mode 120000
index 0000000..23bfed6
--- /dev/null
+++ b/icons/sandrone-linux/cursors/no-drop
@@ -0,0 +1 @@
+not-allowed
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/not-allowed b/icons/sandrone-linux/cursors/not-allowed
new file mode 100644
index 0000000..f84d41c
Binary files /dev/null and b/icons/sandrone-linux/cursors/not-allowed differ
diff --git a/icons/sandrone-linux/cursors/ns-resize b/icons/sandrone-linux/cursors/ns-resize
new file mode 120000
index 0000000..a3693c3
--- /dev/null
+++ b/icons/sandrone-linux/cursors/ns-resize
@@ -0,0 +1 @@
+sb_v_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/nw-resize b/icons/sandrone-linux/cursors/nw-resize
new file mode 120000
index 0000000..a8afe37
--- /dev/null
+++ b/icons/sandrone-linux/cursors/nw-resize
@@ -0,0 +1 @@
+bd_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/nwse-resize b/icons/sandrone-linux/cursors/nwse-resize
new file mode 120000
index 0000000..a8afe37
--- /dev/null
+++ b/icons/sandrone-linux/cursors/nwse-resize
@@ -0,0 +1 @@
+bd_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/openhand b/icons/sandrone-linux/cursors/openhand
new file mode 120000
index 0000000..0b08654
--- /dev/null
+++ b/icons/sandrone-linux/cursors/openhand
@@ -0,0 +1 @@
+hand2
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/pencil b/icons/sandrone-linux/cursors/pencil
new file mode 100644
index 0000000..20d2927
Binary files /dev/null and b/icons/sandrone-linux/cursors/pencil differ
diff --git a/icons/sandrone-linux/cursors/person b/icons/sandrone-linux/cursors/person
new file mode 100644
index 0000000..22982ab
Binary files /dev/null and b/icons/sandrone-linux/cursors/person differ
diff --git a/icons/sandrone-linux/cursors/pin b/icons/sandrone-linux/cursors/pin
new file mode 100644
index 0000000..2a6a7a9
Binary files /dev/null and b/icons/sandrone-linux/cursors/pin differ
diff --git a/icons/sandrone-linux/cursors/pointer b/icons/sandrone-linux/cursors/pointer
new file mode 120000
index 0000000..0b08654
--- /dev/null
+++ b/icons/sandrone-linux/cursors/pointer
@@ -0,0 +1 @@
+hand2
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/pointing_hand b/icons/sandrone-linux/cursors/pointing_hand
new file mode 120000
index 0000000..0b08654
--- /dev/null
+++ b/icons/sandrone-linux/cursors/pointing_hand
@@ -0,0 +1 @@
+hand2
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/progress b/icons/sandrone-linux/cursors/progress
new file mode 120000
index 0000000..b0e6589
--- /dev/null
+++ b/icons/sandrone-linux/cursors/progress
@@ -0,0 +1 @@
+left_ptr_watch
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/question_arrow b/icons/sandrone-linux/cursors/question_arrow
new file mode 120000
index 0000000..4cea3ac
--- /dev/null
+++ b/icons/sandrone-linux/cursors/question_arrow
@@ -0,0 +1 @@
+help
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/right_side b/icons/sandrone-linux/cursors/right_side
new file mode 120000
index 0000000..baba492
--- /dev/null
+++ b/icons/sandrone-linux/cursors/right_side
@@ -0,0 +1 @@
+sb_h_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/row-resize b/icons/sandrone-linux/cursors/row-resize
new file mode 120000
index 0000000..a3693c3
--- /dev/null
+++ b/icons/sandrone-linux/cursors/row-resize
@@ -0,0 +1 @@
+sb_v_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/s-resize b/icons/sandrone-linux/cursors/s-resize
new file mode 120000
index 0000000..a3693c3
--- /dev/null
+++ b/icons/sandrone-linux/cursors/s-resize
@@ -0,0 +1 @@
+sb_v_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/sb_h_double_arrow b/icons/sandrone-linux/cursors/sb_h_double_arrow
new file mode 100644
index 0000000..788fa75
Binary files /dev/null and b/icons/sandrone-linux/cursors/sb_h_double_arrow differ
diff --git a/icons/sandrone-linux/cursors/sb_v_double_arrow b/icons/sandrone-linux/cursors/sb_v_double_arrow
new file mode 100644
index 0000000..0e047aa
Binary files /dev/null and b/icons/sandrone-linux/cursors/sb_v_double_arrow differ
diff --git a/icons/sandrone-linux/cursors/se-resize b/icons/sandrone-linux/cursors/se-resize
new file mode 120000
index 0000000..a8afe37
--- /dev/null
+++ b/icons/sandrone-linux/cursors/se-resize
@@ -0,0 +1 @@
+bd_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/size_all b/icons/sandrone-linux/cursors/size_all
new file mode 120000
index 0000000..147f744
--- /dev/null
+++ b/icons/sandrone-linux/cursors/size_all
@@ -0,0 +1 @@
+fleur
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/size_bdiag b/icons/sandrone-linux/cursors/size_bdiag
new file mode 120000
index 0000000..3d249d7
--- /dev/null
+++ b/icons/sandrone-linux/cursors/size_bdiag
@@ -0,0 +1 @@
+fd_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/size_fdiag b/icons/sandrone-linux/cursors/size_fdiag
new file mode 120000
index 0000000..a8afe37
--- /dev/null
+++ b/icons/sandrone-linux/cursors/size_fdiag
@@ -0,0 +1 @@
+bd_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/size_hor b/icons/sandrone-linux/cursors/size_hor
new file mode 120000
index 0000000..baba492
--- /dev/null
+++ b/icons/sandrone-linux/cursors/size_hor
@@ -0,0 +1 @@
+sb_h_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/size_ver b/icons/sandrone-linux/cursors/size_ver
new file mode 120000
index 0000000..a3693c3
--- /dev/null
+++ b/icons/sandrone-linux/cursors/size_ver
@@ -0,0 +1 @@
+sb_v_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/split_h b/icons/sandrone-linux/cursors/split_h
new file mode 120000
index 0000000..baba492
--- /dev/null
+++ b/icons/sandrone-linux/cursors/split_h
@@ -0,0 +1 @@
+sb_h_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/split_v b/icons/sandrone-linux/cursors/split_v
new file mode 120000
index 0000000..a3693c3
--- /dev/null
+++ b/icons/sandrone-linux/cursors/split_v
@@ -0,0 +1 @@
+sb_v_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/sw-resize b/icons/sandrone-linux/cursors/sw-resize
new file mode 120000
index 0000000..3d249d7
--- /dev/null
+++ b/icons/sandrone-linux/cursors/sw-resize
@@ -0,0 +1 @@
+fd_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/tcross b/icons/sandrone-linux/cursors/tcross
new file mode 120000
index 0000000..67580a7
--- /dev/null
+++ b/icons/sandrone-linux/cursors/tcross
@@ -0,0 +1 @@
+crosshair
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/text b/icons/sandrone-linux/cursors/text
new file mode 120000
index 0000000..18632c4
--- /dev/null
+++ b/icons/sandrone-linux/cursors/text
@@ -0,0 +1 @@
+xterm
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/top_left_arrow b/icons/sandrone-linux/cursors/top_left_arrow
new file mode 120000
index 0000000..0de4e80
--- /dev/null
+++ b/icons/sandrone-linux/cursors/top_left_arrow
@@ -0,0 +1 @@
+left_ptr
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/top_left_corner b/icons/sandrone-linux/cursors/top_left_corner
new file mode 120000
index 0000000..a8afe37
--- /dev/null
+++ b/icons/sandrone-linux/cursors/top_left_corner
@@ -0,0 +1 @@
+bd_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/top_right_corner b/icons/sandrone-linux/cursors/top_right_corner
new file mode 120000
index 0000000..3d249d7
--- /dev/null
+++ b/icons/sandrone-linux/cursors/top_right_corner
@@ -0,0 +1 @@
+fd_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/top_side b/icons/sandrone-linux/cursors/top_side
new file mode 120000
index 0000000..a3693c3
--- /dev/null
+++ b/icons/sandrone-linux/cursors/top_side
@@ -0,0 +1 @@
+sb_v_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/up-arrow b/icons/sandrone-linux/cursors/up-arrow
new file mode 120000
index 0000000..40bef41
--- /dev/null
+++ b/icons/sandrone-linux/cursors/up-arrow
@@ -0,0 +1 @@
+center_ptr
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/up_arrow b/icons/sandrone-linux/cursors/up_arrow
new file mode 120000
index 0000000..40bef41
--- /dev/null
+++ b/icons/sandrone-linux/cursors/up_arrow
@@ -0,0 +1 @@
+center_ptr
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/v_double_arrow b/icons/sandrone-linux/cursors/v_double_arrow
new file mode 120000
index 0000000..a3693c3
--- /dev/null
+++ b/icons/sandrone-linux/cursors/v_double_arrow
@@ -0,0 +1 @@
+sb_v_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/w-resize b/icons/sandrone-linux/cursors/w-resize
new file mode 120000
index 0000000..baba492
--- /dev/null
+++ b/icons/sandrone-linux/cursors/w-resize
@@ -0,0 +1 @@
+sb_h_double_arrow
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/wait b/icons/sandrone-linux/cursors/wait
new file mode 120000
index 0000000..1655a60
--- /dev/null
+++ b/icons/sandrone-linux/cursors/wait
@@ -0,0 +1 @@
+watch
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/watch b/icons/sandrone-linux/cursors/watch
new file mode 100644
index 0000000..98fcf12
Binary files /dev/null and b/icons/sandrone-linux/cursors/watch differ
diff --git a/icons/sandrone-linux/cursors/whats_this b/icons/sandrone-linux/cursors/whats_this
new file mode 120000
index 0000000..4cea3ac
--- /dev/null
+++ b/icons/sandrone-linux/cursors/whats_this
@@ -0,0 +1 @@
+help
\ No newline at end of file
diff --git a/icons/sandrone-linux/cursors/xterm b/icons/sandrone-linux/cursors/xterm
new file mode 100644
index 0000000..f02290a
Binary files /dev/null and b/icons/sandrone-linux/cursors/xterm differ
diff --git a/icons/sandrone-linux/index.theme b/icons/sandrone-linux/index.theme
new file mode 100644
index 0000000..8de0975
--- /dev/null
+++ b/icons/sandrone-linux/index.theme
@@ -0,0 +1,4 @@
+[Icon Theme]
+Name=Sandrone Windows Animated
+Comment=Animated Sandrone cursor theme
+Inherits=default
diff --git a/install b/install
new file mode 100755
index 0000000..3e70a50
--- /dev/null
+++ b/install
@@ -0,0 +1,103 @@
+#!/usr/bin/env bash
+# install: full setup, run from inside a clone.
+#
+# git clone https://github.com/doughmination/moon-dots && cd moon-dots && ./install
+# ./install --dry-run
+
+set -uo pipefail
+
+usage() {
+ cat <<'EOF'
+install: full setup from this clone. Runs, in order:
+ 1. install-deps.sh software (packages, rust + hyfetch, oh-my-posh, flatpaks, services)
+ 2. install-git.sh git name, email and default branch
+ 3. install-assets.sh font and cursor themes
+ 4. install-config.sh copy configs into ~/.config, bashrc to ~/.bashrc
+ 5. install-scripts.sh copy binaries/ into ~/.local/bin
+ 6. install-sddm.sh the Moon login screen
+
+ ./install
+ ./install --dry-run
+
+ --dry-run print every command without running anything
+ --no-flatpak, --no-services passed through to install-deps.sh
+ --git-name=, --git-email=, --git-branch=, --defaults
+ passed through to install-git.sh
+
+Everything is copied, so a clone can be deleted afterwards.
+EOF
+}
+
+# Moon colours: glow cyan, gold, subtext grey
+banner() {
+ local glow=$'\e[1;38;2;144;205;246m'
+ local gold=$'\e[38;2;226;201;138m'
+ local muted=$'\e[38;2;152;167;218m'
+ local off=$'\e[0m'
+
+ printf '\n'
+ printf ' %sMoon Dots%s - A theme inspired by Sandrone\n' "$glow" "$off"
+ printf ' %sby Clove Twilight (doughmination)%s\n' "$gold" "$off"
+ printf ' %s%s%s\n' "$muted" "https://github.com/doughmination/moon-dots" "$off"
+ printf '\n'
+}
+
+main() {
+ local ALL=()
+ local DEPS=()
+ local GIT=()
+ local PARTS=(
+ deps
+ git
+ assets
+ config
+ scripts
+ sddm
+ )
+
+ for arg in "$@"; do
+ case $arg in
+ --dry-run) ALL+=("$arg") ;;
+ --no-flatpak|--no-services) DEPS+=("$arg") ;;
+ --git-*=*|--defaults) GIT+=("$arg") ;;
+ -h|--help) usage; exit 0 ;;
+ *) echo "Unknown option: $arg (try --help)"; exit 1 ;;
+ esac
+ done
+
+ banner
+
+ REPO=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
+ if [ ! -f "$REPO/install-config.sh" ]; then
+ echo "Run this from inside a clone of the dots."
+ exit 1
+ fi
+
+ # Prompts (git name, sudo, package managers) read the terminal.
+ # No terminal at all means no prompts.
+ local input=/dev/null
+ if { : </dev/tty; } 2>/dev/null; then
+ input=/dev/tty
+ fi
+
+ local failed=()
+ local extra
+ for part in "${PARTS[@]}"; do
+ printf '\n\e[1;35m######## install-%s ########\e[0m\n' "$part"
+
+ extra=()
+ [ "$part" = deps ] && extra=("${DEPS[@]}")
+ [ "$part" = git ] && extra=("${GIT[@]}")
+
+ bash "$REPO/install-$part.sh" "${ALL[@]}" "${extra[@]}" <"$input" || failed+=("$part")
+ done
+
+ echo
+ if [ ${#failed[@]} -gt 0 ]; then
+ printf '\e[1;33mFinished, but these steps reported errors: %s\e[0m\n' "${failed[*]}"
+ exit 1
+ fi
+ printf '\e[1;32mAll done.\e[0m Log out and back in (or reboot) to start sway with everything.\n'
+}
+
+main "$@"
diff --git a/install-assets.sh b/install-assets.sh
new file mode 100755
index 0000000..7005fe7
--- /dev/null
+++ b/install-assets.sh
@@ -0,0 +1,77 @@
+#!/usr/bin/env bash
+# install-assets.sh: put this repo's non-config files where apps look for them.
+#
+# ./install-assets.sh install the font and link the cursor themes
+# ./install-assets.sh --dry-run print the commands without running them
+#
+# - JetBrainsMono Nerd Font Mono -> ~/.local/share/fonts/jetbrainsmono-nfm (downloaded)
+# - icons/<cursor theme>/ -> copied into ~/.icons/
+# The SDDM login theme has its own script: install-sddm.sh
+# The wallpaper needs no step: sway/config points straight at sway/background.png.
+# Needs curl, unzip and fontconfig, which install-deps.sh installs.
+
+set -uo pipefail
+
+DRY=0
+for arg in "$@"; do
+ case $arg in
+ --dry-run) DRY=1 ;;
+ -h|--help) sed -n '2,11p' "$0" | sed 's/^# \{0,1\}//'; exit 0 ;;
+ *) echo "Unknown option: $arg (try --help)"; exit 1 ;;
+ esac
+done
+
+c_head=$'\e[1;36m' c_warn=$'\e[1;33m' c_off=$'\e[0m'
+step() { printf '\n%s==> %s%s\n' "$c_head" "$*" "$c_off"; }
+warn() { printf '%s ! %s%s\n' "$c_warn" "$*" "$c_off"; }
+run() { printf ' $ %s\n' "$*"; [ "$DRY" = 1 ] || "$@"; }
+
+REPO=$(cd "$(dirname "$0")" && pwd -P)
+[ "$DRY" = 1 ] && echo "Dry run: nothing will be changed."
+
+# ---------- Font ----------
+step "JetBrainsMono Nerd Font Mono"
+if [ -n "$(fc-list ':family=JetBrainsMono Nerd Font Mono' family 2>/dev/null)" ]; then
+ echo " already installed"
+else
+ fontdir="$HOME/.local/share/fonts/jetbrainsmono-nfm"
+ url=https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.zip
+ if [ "$DRY" = 1 ]; then
+ echo " $ download $url, extract the *NerdFontMono-*.ttf files to $fontdir, fc-cache -f"
+ else
+ tmp=$(mktemp -d)
+ if curl -fsSL -o "$tmp/font.zip" "$url" &&
+ mkdir -p "$fontdir" &&
+ unzip -oq "$tmp/font.zip" 'JetBrainsMonoNerdFontMono-*.ttf' -d "$fontdir"; then
+ fc-cache -f "$fontdir" >/dev/null
+ echo " installed to $fontdir"
+ else
+ warn "Font download failed; install JetBrainsMono Nerd Font Mono by hand"
+ fi
+ rm -rf "$tmp"
+ fi
+fi
+
+# ---------- Cursor themes ----------
+step "Cursor themes -> ~/.icons"
+stamp=$(date +%Y%m%d-%H%M%S)
+for theme in "$REPO"/icons/*/; do
+ [ -d "$theme" ] || continue
+ theme=${theme%/}
+ name=$(basename "$theme") dest="$HOME/.icons/$name"
+ if [ -L "$dest" ] && [[ $(readlink -f "$dest") == "$REPO"/* ]]; then
+ echo " $name is a link into the repo, replacing it with a copy"
+ run rm "$dest"
+ elif [ -e "$dest" ] || [ -L "$dest" ]; then
+ if diff -rq "$theme" "$dest" >/dev/null 2>&1; then
+ echo " $name already up to date"
+ continue
+ fi
+ warn "$name exists, moving it to $name.bak-$stamp"
+ run mv "$dest" "$dest.bak-$stamp"
+ fi
+ run mkdir -p "$HOME/.icons"
+ run cp -a "$theme" "$dest"
+done
+
+step "Done"
diff --git a/install-config.sh b/install-config.sh
new file mode 100755
index 0000000..27842d2
--- /dev/null
+++ b/install-config.sh
@@ -0,0 +1,97 @@
+#!/usr/bin/env bash
+# install-config.sh: copy this repo's configs into ~/.config (and bashrc to ~/.bashrc).
+#
+# ./install-config.sh copy every config folder/file into ~/.config
+# ./install-config.sh --dry-run print the commands without running them
+#
+# If the repo already *is* ~/.config there is nothing to do.
+# If you cloned it somewhere else (e.g. ~/dots), each config the .gitignore
+# allow-list tracks is copied into ~/.config, so you can delete the clone
+# afterwards. Anything different already there is moved aside to
+# <name>.bak-<date> first, never deleted. Old symlinks into the repo are replaced.
+
+set -uo pipefail
+
+DRY=0 SOUND=0
+for arg in "$@"; do
+ case $arg in
+ --dry-run) DRY=1 ;;
+ -h|--help) sed -n '2,10p' "$0" | sed 's/^# \{0,1\}//'; exit 0 ;;
+ *) echo "Unknown option: $arg (try --help)"; exit 1 ;;
+ esac
+done
+
+c_head=$'\e[1;36m' c_warn=$'\e[1;33m' c_off=$'\e[0m'
+step() { printf '\n%s==> %s%s\n' "$c_head" "$*" "$c_off"; }
+warn() { printf '%s ! %s%s\n' "$c_warn" "$*" "$c_off"; }
+run() { printf ' $ %s\n' "$*"; [ "$DRY" = 1 ] || "$@"; }
+
+REPO=$(cd "$(dirname "$0")" && pwd -P)
+TARGET="${XDG_CONFIG_HOME:-$HOME/.config}"
+[ "$DRY" = 1 ] && echo "Dry run: nothing will be changed."
+
+step "Copying configs into $TARGET"
+if [ "$REPO" = "$(cd "$TARGET" 2>/dev/null && pwd -P)" ]; then
+ echo " The repo is $TARGET itself, so every config is already in place."
+ IN_PLACE=1
+else
+ IN_PLACE=0
+fi
+
+# Every "!/name" line in .gitignore is a tracked config, minus the repo's own
+# files and the assets that install-assets.sh handles.
+mapfile -t ITEMS < <(sed -n 's|^!/\([^/]*\)/\{0,1\}$|\1|p' "$REPO/.gitignore" |
+ grep -v -x -E '\.gitignore|\.github|README\.md|screenshot\.png|install.*|icons|binaries|sddm|bashrc')
+
+# place <src> <dest> <label>: copy src to dest. An old link into the repo is
+# swapped for a copy, an identical copy is left alone, anything else is
+# moved to <dest>.bak-<date> first.
+place() {
+ local src=$1 dest=$2 label=$3
+ if [ -L "$dest" ] && [[ $(readlink -f "$dest") == "$REPO"/* ]]; then
+ echo " $label is a link into the repo, replacing it with a copy"
+ run rm "$dest"
+ elif [ -e "$dest" ] || [ -L "$dest" ]; then
+ if diff -rq "$src" "$dest" >/dev/null 2>&1; then
+ echo " $label already up to date"
+ return
+ fi
+ warn "$label exists, moving it to $label.bak-$stamp"
+ run mv "$dest" "$dest.bak-$stamp"
+ fi
+ run cp -a "$src" "$dest"
+}
+
+# Keep the background sound on if a previous install turned it on
+grep -qx 'set $ambient_sound on' "$TARGET/sway/config" 2>/dev/null && SOUND=1
+
+# The sway folder is copied from a staged version with the sound setting
+# applied, so re-running doesn't flag it as changed and back it up.
+stage=$(mktemp -d)
+trap 'rm -rf "$stage"' EXIT
+cp -a "$REPO/sway" "$stage/sway"
+[ "$SOUND" = 1 ] && sed -i 's/^set \$ambient_sound .*/set $ambient_sound on/' "$stage/sway/config"
+
+stamp=$(date +%Y%m%d-%H%M%S)
+if [ "$IN_PLACE" = 0 ]; then
+ run mkdir -p "$TARGET"
+ for item in "${ITEMS[@]}"; do
+ src="$REPO/$item"
+ [ "$item" = sway ] && src="$stage/sway"
+ [ -e "$src" ] || continue
+ place "$src" "$TARGET/$item" "$item"
+ done
+fi
+
+if [ "$SOUND" = 1 ]; then
+ step "Background sound: on"
+ grep -qx 'set $ambient_sound on' "$TARGET/sway/config" ||
+ run sed -i 's/^set \$ambient_sound .*/set $ambient_sound on/' "$TARGET/sway/config"
+ ls "$TARGET"/sway/background-sound.* >/dev/null 2>&1 ||
+ warn "No sway/background-sound.* file yet; add one to $TARGET/sway and it'll start playing"
+fi
+
+step "Shell config -> ~/.bashrc"
+[ -f "$REPO/bashrc" ] && place "$REPO/bashrc" "$HOME/.bashrc" ".bashrc"
+
+step "Done"
diff --git a/install-deps.sh b/install-deps.sh
new file mode 100755
index 0000000..8137e60
--- /dev/null
+++ b/install-deps.sh
@@ -0,0 +1,305 @@
+#!/usr/bin/env bash
+# install-deps.sh: install the software these dotfiles need, on whatever distro this is.
+# Software only: fonts, cursors etc. are install-assets.sh, linking configs is install-config.sh,
+# and ./install runs all of them.
+#
+# ./install-deps.sh install all dependencies
+# ./install-deps.sh --dry-run print the commands without running them
+# ./install-deps.sh --no-flatpak skip the Flatpak apps (Equibop, VSCodium)
+# ./install-deps.sh --no-services don't enable NetworkManager / bluetooth / power profiles
+#
+# Supported: Void, Arch (+ derivatives), Fedora, Debian/Ubuntu (+ derivatives), openSUSE.
+# Packages a distro doesn't carry are skipped and listed at the end, never fatal.
+# On any other distro the package step is skipped and the rest still runs.
+
+set -uo pipefail
+
+DRY=0 FLATPAK=1 SERVICES=1
+for arg in "$@"; do
+ case $arg in
+ --dry-run) DRY=1 ;;
+ --no-flatpak) FLATPAK=0 ;;
+ --no-services) SERVICES=0 ;;
+ -h|--help) sed -n '2,12p' "$0" | sed 's/^# \{0,1\}//'; exit 0 ;;
+ *) echo "Unknown option: $arg (try --help)"; exit 1 ;;
+ esac
+done
+
+# ---------- helpers ----------
+c_head=$'\e[1;36m' c_warn=$'\e[1;33m' c_ok=$'\e[1;32m' c_off=$'\e[0m'
+step() { printf '\n%s==> %s%s\n' "$c_head" "$*" "$c_off"; }
+warn() { printf '%s ! %s%s\n' "$c_warn" "$*" "$c_off"; }
+run() { printf ' $ %s\n' "$*"; [ "$DRY" = 1 ] || "$@"; }
+have() { command -v "$1" >/dev/null 2>&1; }
+
+if [ "$(id -u)" = 0 ]; then SUDO=()
+elif have sudo; then SUDO=(sudo)
+elif have doas; then SUDO=(doas)
+else echo "Need sudo or doas to install packages."; exit 1
+fi
+
+MISSING=()
+
+[ -r /etc/os-release ] && . /etc/os-release
+FAMILY=""
+for id in ${ID:-} ${ID_LIKE:-}; do
+ case $id in
+ void) FAMILY=void ;;
+ arch) FAMILY=arch ;;
+ fedora|rhel) FAMILY=fedora ;;
+ debian|ubuntu) FAMILY=debian ;;
+ opensuse*|suse) FAMILY=suse ;;
+ esac
+ [ -n "$FAMILY" ] && break
+done
+if [ -n "$FAMILY" ]; then
+ echo "Detected ${PRETTY_NAME:-$ID} (using the $FAMILY package list)"
+else
+ FAMILY=unknown
+ warn "Unsupported distro (${PRETTY_NAME:-unknown}): install the packages yourself; the rest still runs"
+fi
+# Never stop at a prompt, so this can run unattended
+export DEBIAN_FRONTEND=noninteractive
+[ "$DRY" = 1 ] && echo "Dry run: nothing will be installed."
+
+# ---------- package lists ----------
+# Same roles in the same order on every distro:
+# compositor + bar + session, notifications/launcher/lock, terminal + files,
+# clipboard, audio, hardware controls, network/bluetooth, monitors, screenshots,
+# apps, portals, build tools for the cargo steps below.
+case $FAMILY in
+void)
+ PKGS=(swayfx Waybar swaybg mpvpaper mpv wlsunset swayidle autotiling polkit-gnome gnome-keyring
+ mako libnotify fuzzel gtklock ImageMagick kitty yazi
+ wl-clipboard cliphist pipewire wireplumber pavucontrol
+ brightnessctl playerctl power-profiles-daemon
+ NetworkManager bluez bluetui btop
+ grim slurp wf-recorder firefox flatpak xdg-desktop-portal-wlr
+ jq curl unzip git fontconfig rustup) ;;
+arch)
+ PKGS=(swayfx waybar swaybg mpvpaper mpv wlsunset swayidle autotiling polkit-gnome gnome-keyring
+ mako libnotify fuzzel gtklock imagemagick kitty yazi
+ wl-clipboard cliphist pipewire pipewire-pulse wireplumber pavucontrol
+ brightnessctl playerctl power-profiles-daemon
+ networkmanager bluez bluez-utils bluetui btop
+ grim slurp wf-recorder firefox flatpak xdg-desktop-portal-wlr
+ jq curl unzip git fontconfig base-devel rustup)
+ # rustup conflicts with the rust package, and --noconfirm would abort the whole install
+ if have cargo && ! have rustup; then
+ kept=()
+ for pkg in "${PKGS[@]}"; do
+ [ "$pkg" = rustup ] || kept+=("$pkg")
+ done
+ PKGS=("${kept[@]}")
+ fi ;;
+fedora)
+ PKGS=(swayfx waybar swaybg mpvpaper mpv wlsunset swayidle autotiling polkit-gnome gnome-keyring
+ mako libnotify fuzzel gtklock ImageMagick kitty yazi
+ wl-clipboard cliphist pipewire wireplumber pavucontrol
+ brightnessctl playerctl power-profiles-daemon
+ NetworkManager NetworkManager-tui bluez bluetui btop
+ grim slurp wf-recorder firefox flatpak xdg-desktop-portal-wlr
+ jq curl unzip git fontconfig gcc rustup) ;;
+debian)
+ PKGS=(swayfx waybar swaybg mpvpaper mpv wlsunset swayidle autotiling policykit-1-gnome gnome-keyring
+ mako-notifier libnotify-bin fuzzel gtklock imagemagick kitty yazi
+ wl-clipboard cliphist pipewire pipewire-pulse wireplumber pavucontrol
+ brightnessctl playerctl power-profiles-daemon
+ network-manager bluez bluetui btop
+ grim slurp wf-recorder firefox flatpak xdg-desktop-portal-wlr
+ jq curl unzip git fontconfig build-essential rustup) ;;
+suse)
+ PKGS=(swayfx waybar swaybg mpvpaper mpv wlsunset swayidle autotiling polkit-gnome gnome-keyring
+ mako libnotify-tools fuzzel gtklock ImageMagick kitty yazi
+ wl-clipboard cliphist pipewire wireplumber pavucontrol
+ brightnessctl playerctl power-profiles-daemon
+ NetworkManager bluez bluetui btop
+ grim slurp wf-recorder MozillaFirefox flatpak xdg-desktop-portal-wlr
+ jq curl unzip git fontconfig gcc rustup) ;;
+esac
+
+# Is this package in the distro's repos?
+available() {
+ case $FAMILY in
+ void) xbps-query -R "$1" >/dev/null 2>&1 ;;
+ arch) pacman -Si "$1" >/dev/null 2>&1 ;;
+ fedora) dnf -q info "$1" >/dev/null 2>&1 ;;
+ debian) [ -n "$(apt-cache policy "$1" 2>/dev/null | grep 'Candidate:' | grep -v '(none)')" ] ;;
+ suse) zypper -q se -x "$1" >/dev/null 2>&1 ;;
+ esac
+}
+
+# Install a list of packages in one go. If that fails (one bad package or a
+# conflict sinks the whole transaction), retry them one at a time and record
+# the ones that still fail in MISSING.
+install_pkgs() {
+ [ $# -gt 0 ] || return 0
+ local cmd
+ case $FAMILY in
+ arch) cmd=(pacman -S --needed --noconfirm) ;;
+ fedora) cmd=(dnf install -y) ;;
+ debian) cmd=(apt-get install -y) ;;
+ suse) cmd=(zypper -n install) ;;
+ esac
+ run "${SUDO[@]}" "${cmd[@]}" "$@" && return 0
+ [ "$DRY" = 1 ] && return 0
+ warn "Installing everything at once failed, trying one package at a time"
+ for p in "$@"; do
+ "${SUDO[@]}" "${cmd[@]}" "$p" >/dev/null 2>&1 || { warn "Couldn't install $p"; MISSING+=("$p"); }
+ done
+}
+
+# Arch: find an AUR helper, or build paru if there isn't one.
+aur_helper() {
+ for h in paru yay; do have "$h" && { AUR=$h; return 0; }; done
+ if [ "$(id -u)" = 0 ]; then
+ warn "Running as root: makepkg won't build as root, so no AUR helper"
+ return 1
+ fi
+ step "No yay or paru found, building paru from the AUR"
+ if [ "$DRY" = 1 ]; then
+ echo " $ git clone https://aur.archlinux.org/paru-bin.git && makepkg -si --noconfirm"
+ AUR=paru; return 0
+ fi
+ local tmp; tmp=$(mktemp -d)
+ if git clone --depth 1 https://aur.archlinux.org/paru-bin.git "$tmp/paru-bin" &&
+ (cd "$tmp/paru-bin" && makepkg -si --noconfirm); then
+ rm -rf "$tmp"; AUR=paru; return 0
+ fi
+ rm -rf "$tmp"
+ warn "Building paru failed"
+ return 1
+}
+
+# ---------- 1. distro packages ----------
+if [ "$FAMILY" != unknown ]; then
+step "Refreshing package lists"
+case $FAMILY in
+ void) run "${SUDO[@]}" xbps-install -S ;;
+ # -Syu, not -Sy: installing after a bare -Sy is a partial upgrade, which Arch doesn't support
+ arch) run "${SUDO[@]}" pacman -Syu --noconfirm ;;
+ fedora)
+ # swayfx lives in its own COPR on Fedora
+ run "${SUDO[@]}" dnf install -y dnf-plugins-core
+ run "${SUDO[@]}" dnf copr enable -y swayfx/swayfx ;;
+ debian) run "${SUDO[@]}" apt-get update ;;
+ suse) run "${SUDO[@]}" zypper -n refresh ;;
+esac
+
+step "Checking which packages your repos carry"
+INSTALL=()
+for p in "${PKGS[@]}"; do
+ if available "$p"; then INSTALL+=("$p"); else MISSING+=("$p"); fi
+done
+echo " ${#INSTALL[@]} found, ${#MISSING[@]} not in your repos"
+
+step "Installing packages"
+case $FAMILY in
+ void) run "${SUDO[@]}" xbps-install -y "${INSTALL[@]}" ;;
+ arch|fedora|debian|suse) install_pkgs "${INSTALL[@]}" ;;
+esac
+
+# Arch: whatever pacman lacked, try the AUR
+if [ "$FAMILY" = arch ] && [ ${#MISSING[@]} -gt 0 ]; then
+ AUR=""
+ if aur_helper; then
+ step "Installing from the AUR with $AUR: ${MISSING[*]}"
+ # Skip the PKGBUILD review/diff prompts so it can run unattended
+ case $AUR in
+ paru) AUR_CMD=(paru -S --needed --noconfirm --skipreview) ;;
+ yay) AUR_CMD=(yay -S --needed --noconfirm --answerdiff None --answerclean None) ;;
+ esac
+ # swayfx replaces sway, and --noconfirm answers "no" to removing it
+ if printf '%s\n' "${MISSING[@]}" | grep -qx swayfx &&
+ pacman -Qq sway >/dev/null 2>&1 && ! pacman -Qq swayfx >/dev/null 2>&1; then
+ warn "Plain sway is installed and conflicts with swayfx. Replace it with: $AUR -S swayfx"
+ fi
+ STILL=()
+ for p in "${MISSING[@]}"; do
+ run "${AUR_CMD[@]}" "$p" || STILL+=("$p")
+ done
+ MISSING=("${STILL[@]}")
+ else
+ warn "No AUR helper available, so these were skipped: ${MISSING[*]}"
+ fi
+fi
+fi # FAMILY != unknown
+
+# ---------- 2. Rust toolchain + hyfetch ----------
+step "Rust toolchain (rustup, stable)"
+export PATH="$HOME/.cargo/bin:$PATH"
+if ! have rustup && have cargo; then
+ echo " using the cargo already on this system ($(command -v cargo))"
+elif ! have rustup; then
+ warn "rustup isn't packaged here, using the official installer"
+ if [ "$DRY" = 1 ]; then echo " $ curl https://sh.rustup.rs | sh -s -- -y --no-modify-path"
+ else curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path
+ fi
+fi
+have rustup || [ "$DRY" = 1 ] && run rustup default stable
+
+step "hyfetch (cargo)"
+run cargo install hyfetch
+
+# bluetui is also a cargo crate, so fall back to that if the distro lacks it
+if printf '%s\n' "${MISSING[@]}" | grep -qx bluetui; then
+ step "bluetui (cargo, not in your repos)"
+ run cargo install bluetui && MISSING=("${MISSING[@]/bluetui}")
+fi
+
+# ---------- 3. oh-my-posh ----------
+step "oh-my-posh prompt"
+if have oh-my-posh; then
+ echo " already installed: $(command -v oh-my-posh)"
+else
+ run mkdir -p "$HOME/.local/bin"
+ if [ "$DRY" = 1 ]; then echo " $ curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/.local/bin"
+ else curl -s https://ohmyposh.dev/install.sh | bash -s -- -d "$HOME/.local/bin"
+ fi
+fi
+
+# ---------- 4. Flatpak apps (bound to Super+Z / Super+C in sway) ----------
+if [ "$FLATPAK" = 1 ] && { have flatpak || [ "$DRY" = 1 ]; }; then
+ step "Flatpak apps: Equibop, VSCodium"
+ run flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
+ run flatpak install --user -y flathub org.equicord.equibop com.vscodium.codium
+fi
+
+# ---------- 5. Services ----------
+if [ "$SERVICES" = 1 ]; then
+ step "Enabling services: NetworkManager, bluetooth, power profiles"
+ if [ -d /run/runit ] || [ "$FAMILY" = void ]; then
+ for sv in dbus NetworkManager bluetoothd power-profiles-daemon; do
+ if [ -e "/var/service/$sv" ]; then echo " $sv already enabled"
+ elif [ -d "/etc/sv/$sv" ]; then run "${SUDO[@]}" ln -s "/etc/sv/$sv" /var/service/
+ else warn "No runit service named $sv"
+ fi
+ done
+ elif have systemctl; then
+ # One at a time so a missing unit doesn't stop the others. Without a running
+ # systemd (chroot, container) just enable them for the next boot.
+ now=(--now); [ -d /run/systemd/system ] || now=()
+ for unit in NetworkManager bluetooth power-profiles-daemon; do
+ if systemctl list-unit-files "$unit.service" 2>/dev/null | grep -q "^$unit\.service" || [ "$DRY" = 1 ]; then
+ run "${SUDO[@]}" systemctl enable "${now[@]}" "$unit" || warn "Couldn't enable $unit"
+ else
+ warn "No systemd unit named $unit"
+ fi
+ done
+ else
+ warn "Unknown init system; enable NetworkManager, bluetooth and power-profiles-daemon yourself"
+ fi
+fi
+
+# ---------- Summary ----------
+mapfile -t MISSING < <(printf '%s\n' "${MISSING[@]}" | grep -v '^$')
+step "Done"
+if [ ${#MISSING[@]} -gt 0 ]; then
+ warn "Not available from your package manager: ${MISSING[*]}"
+ case " ${MISSING[*]} " in *" swayfx "*)
+ warn "Without swayfx, plain sway will reject the blur/shadow/corner_radius lines in sway/config." ;;
+ esac
+else
+ printf '%s Everything installed.%s\n' "$c_ok" "$c_off"
+fi
+echo "Log out and back in (or reboot) so sway picks up the new session."
diff --git a/install-git.sh b/install-git.sh
new file mode 100755
index 0000000..8ca06a9
--- /dev/null
+++ b/install-git.sh
@@ -0,0 +1,63 @@
+#!/usr/bin/env bash
+# install-git.sh: set your git name, email and default branch (git config --global).
+#
+# ./install-git.sh ask for each one (Enter keeps the default)
+# ./install-git.sh --dry-run print the commands without running them
+# ./install-git.sh --git-name="Jo Doe" [email protected] --git-branch=main
+# ./install-git.sh --defaults don't ask, use the defaults
+#
+# Defaults: your current git setting if you have one, otherwise
+# User / [email protected] / main. Without a terminal (an unattended run) it
+# never asks, and only fills in settings that aren't set yet.
+
+set -uo pipefail
+
+DRY=0 ASK=1 NAME="" EMAIL="" BRANCH=""
+for arg in "$@"; do
+ case $arg in
+ --dry-run) DRY=1 ;;
+ --defaults) ASK=0 ;;
+ --git-name=*) NAME=${arg#*=} ;;
+ --git-email=*) EMAIL=${arg#*=} ;;
+ --git-branch=*) BRANCH=${arg#*=} ;;
+ -h|--help) sed -n '2,11p' "$0" | sed 's/^# \{0,1\}//'; exit 0 ;;
+ *) echo "Unknown option: $arg (try --help)"; exit 1 ;;
+ esac
+done
+
+c_head=$'\e[1;36m' c_warn=$'\e[1;33m' c_off=$'\e[0m'
+step() { printf '\n%s==> %s%s\n' "$c_head" "$*" "$c_off"; }
+warn() { printf '%s ! %s%s\n' "$c_warn" "$*" "$c_off"; }
+run() { printf ' $ %s\n' "$*"; [ "$DRY" = 1 ] || "$@"; }
+
+command -v git >/dev/null || { warn "git isn't installed; run install-deps.sh first"; exit 1; }
+[ "$DRY" = 1 ] && echo "Dry run: nothing will be changed."
+[ -t 0 ] || ASK=0
+
+step "Git identity"
+
+# setting <key> <value from flag> <fallback default> <question>
+setting() {
+ local key=$1 value=$2 fallback=$3 question=$4 current
+ current=$(git config --global --get "$key" 2>/dev/null)
+ if [ -z "$value" ]; then
+ if [ "$ASK" = 1 ]; then
+ read -r -p " $question [${current:-$fallback}]: " value
+ elif [ -n "$current" ]; then
+ echo " $key already set to $current"
+ return
+ fi
+ value=${value:-${current:-$fallback}}
+ fi
+ if [ "$value" = "$current" ]; then
+ echo " $key already set to $current"
+ else
+ run git config --global "$key" "$value"
+ fi
+}
+
+setting user.name "$NAME" "User" "Your name"
+setting user.email "$EMAIL" "[email protected]" "Your email"
+setting init.defaultBranch "$BRANCH" "main" "Default branch for new repos"
+
+step "Done"
diff --git a/install-scripts.sh b/install-scripts.sh
new file mode 100755
index 0000000..a55a8bf
--- /dev/null
+++ b/install-scripts.sh
@@ -0,0 +1,57 @@
+#!/usr/bin/env bash
+# install-scripts.sh: copy every script in binaries/ into ~/.local/bin.
+#
+# ./install-scripts.sh copy the scripts
+# ./install-scripts.sh --dry-run print the commands without running them
+#
+# sway and waybar call these as ~/.local/bin/<name>, so they must live there.
+# They're copied, so you can delete the clone afterwards. A different file
+# already in the way is moved to <name>.bak-<date>, never deleted.
+
+set -uo pipefail
+
+DRY=0
+for arg in "$@"; do
+ case $arg in
+ --dry-run) DRY=1 ;;
+ -h|--help) sed -n '2,9p' "$0" | sed 's/^# \{0,1\}//'; exit 0 ;;
+ *) echo "Unknown option: $arg (try --help)"; exit 1 ;;
+ esac
+done
+
+c_head=$'\e[1;36m' c_warn=$'\e[1;33m' c_off=$'\e[0m'
+step() { printf '\n%s==> %s%s\n' "$c_head" "$*" "$c_off"; }
+warn() { printf '%s ! %s%s\n' "$c_warn" "$*" "$c_off"; }
+run() { printf ' $ %s\n' "$*"; [ "$DRY" = 1 ] || "$@"; }
+
+REPO=$(cd "$(dirname "$0")" && pwd -P)
+BIN="$HOME/.local/bin"
+[ "$DRY" = 1 ] && echo "Dry run: nothing will be changed."
+
+step "Copying scripts into $BIN"
+run mkdir -p "$BIN"
+stamp=$(date +%Y%m%d-%H%M%S)
+for src in "$REPO"/binaries/*; do
+ [ -f "$src" ] || continue
+ name=$(basename "$src") dest="$BIN/$name"
+ if [ -L "$dest" ] && [[ $(readlink -f "$dest") == "$REPO"/* ]]; then
+ echo " $name is a link into the repo, replacing it with a copy"
+ run rm "$dest"
+ elif [ -e "$dest" ] || [ -L "$dest" ]; then
+ if cmp -s "$src" "$dest" && [ -x "$dest" ]; then
+ echo " $name already up to date"
+ continue
+ fi
+ warn "$name exists, moving it to $name.bak-$stamp"
+ run mv "$dest" "$dest.bak-$stamp"
+ fi
+ run cp "$src" "$dest"
+ run chmod +x "$dest"
+done
+
+case ":$PATH:" in
+ *":$BIN:"*) ;;
+ *) warn "$BIN isn't on your PATH; sway still works (it uses full paths), but add it for your shell" ;;
+esac
+
+step "Done"
diff --git a/install-sddm.sh b/install-sddm.sh
new file mode 100755
index 0000000..c72a404
--- /dev/null
+++ b/install-sddm.sh
@@ -0,0 +1,141 @@
+#!/usr/bin/env bash
+# install-sddm.sh: install the Moon SDDM login theme. Works on its own,
+# without the rest of the dotfiles.
+#
+# ./install-sddm.sh install the theme and make it the login screen
+# ./install-sddm.sh --dry-run print the commands without running them
+# ./install-sddm.sh --no-video use the still wallpaper instead of the animated one
+# ./install-sddm.sh --uninstall remove the theme and restore your previous sddm.conf
+#
+# The theme is copied (not linked) to /usr/share/sddm/themes/moon, because
+# the login screen runs as its own user and can't read your home folder.
+# Needs: sddm (Qt 6 greeter), Qt 6 declarative + multimedia, curl and unzip.
+
+set -uo pipefail
+
+DRY=0 VIDEO=1 UNINSTALL=0
+for arg in "$@"; do
+ case $arg in
+ --dry-run) DRY=1 ;;
+ --no-video) VIDEO=0 ;;
+ --uninstall) UNINSTALL=1 ;;
+ -h|--help) sed -n '2,13p' "$0" | sed 's/^# \{0,1\}//'; exit 0 ;;
+ *) echo "Unknown option: $arg (try --help)"; exit 1 ;;
+ esac
+done
+
+c_head=$'\e[1;36m' c_warn=$'\e[1;33m' c_ok=$'\e[1;32m' c_off=$'\e[0m'
+step() { printf '\n%s==> %s%s\n' "$c_head" "$*" "$c_off"; }
+warn() { printf '%s ! %s%s\n' "$c_warn" "$*" "$c_off"; }
+run() { printf ' $ %s\n' "$*"; [ "$DRY" = 1 ] || "$@"; }
+
+if [ "$(id -u)" = 0 ]; then SUDO=()
+elif command -v sudo >/dev/null; then SUDO=(sudo)
+elif command -v doas >/dev/null; then SUDO=(doas)
+else echo "Need sudo or doas to install a login theme."; exit 1
+fi
+
+REPO=$(cd "$(dirname "$0")" && pwd)
+THEMES=/usr/share/sddm/themes
+DEST=$THEMES/moon
+CONF=/etc/sddm.conf
+[ "$DRY" = 1 ] && echo "Dry run: nothing will be changed."
+
+# ---------- Uninstall ----------
+if [ "$UNINSTALL" = 1 ]; then
+ step "Removing the Moon login theme"
+ run "${SUDO[@]}" rm -rf "$DEST" /etc/sddm.conf.d/moon.conf
+ backup=$(ls -1t "$CONF".bak-* 2>/dev/null | head -1)
+ if [ -n "$backup" ]; then
+ run "${SUDO[@]}" cp "$backup" "$CONF"
+ echo " restored $backup"
+ elif [ -f "$CONF" ] && grep -qx 'Current=moon' "$CONF"; then
+ run "${SUDO[@]}" sed -i '/^Current=moon$/d' "$CONF"
+ echo " SDDM will use its default theme"
+ fi
+ step "Done"
+ exit 0
+fi
+
+# ---------- Checks ----------
+step "Checking requirements"
+missing=()
+command -v sddm >/dev/null || missing+=("sddm")
+command -v sddm-greeter-qt6 >/dev/null || [ -x /usr/lib/sddm/sddm-greeter-qt6 ] ||
+ missing+=("the SDDM Qt 6 greeter (sddm-greeter-qt6)")
+qml_has() { for d in /usr/lib*/qt6/qml /usr/lib/*/qt6/qml /usr/share/qt6/qml; do [ -d "$d/$1" ] && return 0; done; return 1; }
+qml_has QtQuick/Effects || missing+=("Qt 6 declarative (QtQuick.Effects)")
+if [ "$VIDEO" = 1 ] && ! qml_has QtMultimedia; then
+ warn "Qt 6 multimedia isn't installed, so the theme will use the still wallpaper"
+ VIDEO=0
+fi
+for t in curl unzip; do command -v $t >/dev/null || missing+=("$t"); done
+if [ ${#missing[@]} -gt 0 ]; then
+ warn "Install these first: ${missing[*]}"
+ [ "$DRY" = 1 ] || exit 1
+fi
+[ -d "$THEMES" ] || { warn "$THEMES doesn't exist; is SDDM installed?"; [ "$DRY" = 1 ] || exit 1; }
+echo " ok"
+
+# ---------- Build the theme folder ----------
+step "Building the theme"
+stage=$(mktemp -d)
+trap 'rm -rf "$stage"' EXIT
+mkdir -p "$stage/moon/fonts"
+cp "$REPO"/sddm/moon/* "$stage/moon/"
+cp "$REPO/sway/background.png" "$stage/moon/background.png"
+cp "$REPO/gtklock/avatar.png" "$stage/moon/avatar.png"
+if [ "$VIDEO" = 1 ] && [ -f "$REPO/sway/background.webm" ]; then
+ cp "$REPO/sway/background.webm" "$stage/moon/background.webm"
+else
+ sed -i 's/^useVideo=.*/useVideo=false/' "$stage/moon/theme.conf"
+ echo " using the still wallpaper"
+fi
+
+# Font: reuse the dotfiles' copy if it's there, otherwise download it
+fonts="$HOME/.local/share/fonts/jetbrainsmono-nfm"
+if cp "$fonts"/JetBrainsMonoNerdFontMono-{Regular,Bold}.ttf "$stage/moon/fonts/" 2>/dev/null; then
+ echo " font copied from $fonts"
+else
+ url=https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.zip
+ echo " downloading JetBrainsMono Nerd Font"
+ if curl -fsSL -o "$stage/font.zip" "$url" &&
+ unzip -oq "$stage/font.zip" 'JetBrainsMonoNerdFontMono-Regular.ttf' 'JetBrainsMonoNerdFontMono-Bold.ttf' \
+ -d "$stage/moon/fonts"; then
+ echo " font downloaded"
+ else
+ warn "Font download failed; the login screen will use a plain font and lose its icons"
+ fi
+fi
+
+# ---------- Install ----------
+step "Installing to $DEST"
+run "${SUDO[@]}" rm -rf "$DEST"
+run "${SUDO[@]}" cp -r "$stage/moon" "$DEST"
+
+step "Setting Moon as the login theme"
+# /etc/sddm.conf overrides sddm.conf.d, so edit it directly when it has a [Theme] section.
+if [ -f "$CONF" ] && grep -q '^\[Theme\]' "$CONF"; then
+ if grep -qx 'Current=moon' "$CONF"; then
+ echo " already the login theme"
+ else
+ run "${SUDO[@]}" cp "$CONF" "$CONF.bak-$(date +%Y%m%d-%H%M%S)"
+ if grep -q '^Current=' "$CONF"; then
+ run "${SUDO[@]}" sed -i 's/^Current=.*/Current=moon/' "$CONF"
+ else
+ run "${SUDO[@]}" sed -i 's/^\[Theme\]$/[Theme]\nCurrent=moon/' "$CONF"
+ fi
+ # Settings for other themes' on-screen keyboards don't apply here
+ run "${SUDO[@]}" sed -i 's/^\(InputMethod=qtvirtualkeyboard\)/#\1/; s/^\(GreeterEnvironment=.*QML2_IMPORT_PATH.*\)/#\1/' "$CONF"
+ fi
+else
+ run "${SUDO[@]}" mkdir -p /etc/sddm.conf.d
+ if [ "$DRY" = 1 ]; then echo " $ write /etc/sddm.conf.d/moon.conf ([Theme] Current=moon)"
+ else printf '[Theme]\nCurrent=moon\n' | "${SUDO[@]}" tee /etc/sddm.conf.d/moon.conf >/dev/null
+ fi
+fi
+
+step "Done"
+printf '%s Log out or reboot to see it.%s Preview without logging out:\n' "$c_ok" "$c_off"
+echo " sddm-greeter-qt6 --test-mode --theme $DEST"
+echo " Undo with: $0 --uninstall"
diff --git a/kitty/current-theme.conf b/kitty/current-theme.conf
new file mode 100644
index 0000000..7c7d3e3
--- /dev/null
+++ b/kitty/current-theme.conf
@@ -0,0 +1,41 @@
+# Moon palette, matches ~/.config/sway/moon
+foreground #DBE2F2
+background #080C1C
+selection_foreground #080C1C
+selection_background #90CDF6
+cursor #90CDF6
+cursor_text_color #080C1C
+url_color #CFE9FB
+active_border_color #90CDF6
+inactive_border_color #20304F
+
+active_tab_foreground #080C1C
+active_tab_background #90CDF6
+inactive_tab_foreground #98A7DA
+inactive_tab_background #101830
+tab_bar_background #080C1C
+
+# black
+color0 #20304F
+color8 #4A5A85
+# red (ribbons)
+color1 #C8406A
+color9 #E06A8E
+# green
+color2 #7FD1B9
+color10 #A6E3CF
+# yellow (gold trim)
+color3 #E2C98A
+color11 #F0D98C
+# blue
+color4 #558AD5
+color12 #74ABEB
+# magenta (rose)
+color5 #8D75CB
+color13 #BDAADE
+# cyan (gear glow)
+color6 #90CDF6
+color14 #CFE9FB
+# white (ivory)
+color7 #B8C4E6
+color15 #DBE2F2
diff --git a/kitty/kitty.conf b/kitty/kitty.conf
new file mode 100644
index 0000000..1f5b14a
--- /dev/null
+++ b/kitty/kitty.conf
@@ -0,0 +1,33 @@
+include current-theme.conf
+
+font_family JetBrainsMono Nerd Font
+font_size 11.5
+disable_ligatures never
+
+# See-through so swayfx's blur shows behind the text
+background_opacity 0.82
+dynamic_background_opacity yes
+
+window_padding_width 10
+confirm_os_window_close 0
+enable_audio_bell no
+visual_bell_duration 0
+
+cursor_shape beam
+cursor_blink_interval 0.6
+cursor_trail 3
+
+scrollback_lines 10000
+copy_on_select clipboard
+strip_trailing_spaces smart
+
+tab_bar_edge bottom
+tab_bar_style powerline
+tab_powerline_style slanted
+
+# Tabs and splits
+map ctrl+shift+t new_tab_with_cwd
+map ctrl+shift+enter new_window_with_cwd
+map ctrl+shift+equal change_font_size all +1.0
+map ctrl+shift+minus change_font_size all -1.0
+map ctrl+shift+0 change_font_size all 0
diff --git a/mako/config b/mako/config
new file mode 100644
index 0000000..dfeaf79
--- /dev/null
+++ b/mako/config
@@ -0,0 +1,42 @@
+# Moon palette, matches ~/.config/sway/moon
+font=JetBrainsMono Nerd Font 11
+background-color=#080C1CD9
+text-color=#DBE2F2
+border-color=#90CDF6
+progress-color=over #1C326D
+border-size=2
+border-radius=14
+padding=12
+outer-margin=12
+width=360
+max-visible=5
+max-history=50
+default-timeout=6000
+icons=1
+max-icon-size=48
+anchor=top-right
+layer=overlay
+format=<b>%s</b>\n%b
+
+[urgency=low]
+border-color=#4A5A85
+
+[urgency=critical]
+border-color=#E06A8E
+background-color=#4A1A35D9
+default-timeout=0
+
+[mode=do-not-disturb]
+invisible=1
+
+# The clock's calendar: body only (it carries its own title), tall enough for 6 weeks
+[app-name=calendar]
+format=%b
+height=320
+
+# ...and these are opened on purpose, so they show even in do-not-disturb
+[mode=do-not-disturb app-name=calendar]
+invisible=0
+
+[mode=do-not-disturb app-name=notifications]
+invisible=0
diff --git a/omp/config.toml b/omp/config.toml
new file mode 100644
index 0000000..069f8f2
--- /dev/null
+++ b/omp/config.toml
@@ -0,0 +1,162 @@
+# omp/config.toml
+
+console_title_template = '{{ .Shell }} in {{ .Folder }}'
+version = 3
+final_space = true
+
+# Moon palette, matches ~/.config/sway/moon
+[palette]
+ bg = '#080C1C'
+ fg = '#DBE2F2'
+ glow = '#90CDF6'
+ frost = '#CFE9FB'
+ blue = '#558AD5'
+ sky = '#74ABEB'
+ crimson = '#C8406A'
+ scarlet = '#E06A8E'
+ rose = '#BDAADE'
+ gold = '#E2C98A'
+ yellow = '#F0D98C'
+ peach = '#F2D4C2'
+ jade = '#7FD1B9'
+ mint = '#A6E3CF'
+ grey = '#4A5A85'
+
+[secondary_prompt]
+ template = '❯❯ '
+ foreground = 'p:blue'
+ background = 'transparent'
+
+[transient_prompt]
+ template = '❯ '
+ background = 'transparent'
+ foreground_templates = [
+ '{{ if gt .Code 0 }}p:scarlet{{ end }}',
+ '{{ if eq .Code 0 }}p:glow{{ end }}',
+ ]
+
+[[blocks]]
+ type = 'prompt'
+ alignment = 'left'
+ newline = true
+
+ # user@host
+ [[blocks.segments]]
+ type = 'session'
+ style = 'powerline'
+ powerline_symbol = ''
+ template = ' {{ if .Root }}⚡ {{ end }}{{ .UserName }}@{{ .HostName }} '
+ foreground = 'p:bg'
+ background = 'p:glow'
+
+ [blocks.segments.properties]
+ cache_duration = 'none'
+
+ # Working directory
+ [[blocks.segments]]
+ type = 'path'
+ style = 'powerline'
+ powerline_symbol = ''
+ template = ' {{ .Path }} '
+ foreground = 'p:bg'
+ background = 'p:sky'
+
+ [blocks.segments.properties]
+ cache_duration = 'none'
+ style = 'full'
+ home_icon = '~'
+ folder_separator_icon = '/'
+
+ # Git branch, dirty flag, ahead/behind counts
+ [[blocks.segments]]
+ type = 'git'
+ style = 'powerline'
+ powerline_symbol = ''
+ template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }}{{ if gt .Behind 0 }} ⇣{{ .Behind }}{{ end }}{{ if gt .Ahead 0 }} ⇡{{ .Ahead }}{{ end }} '
+ foreground = 'p:bg'
+ background = 'p:jade'
+ background_templates = [
+ '{{ if or (.Working.Changed) (.Staging.Changed) }}p:gold{{ end }}',
+ '{{ if gt .Behind 0 }}p:frost{{ end }}',
+ '{{ if gt .Ahead 0 }}p:frost{{ end }}',
+ ]
+
+ [blocks.segments.properties]
+ cache_duration = 'none'
+ branch_icon = ' '
+ commit_icon = '@'
+ fetch_status = true
+ fetch_upstream_icon = true
+
+ # Python, only inside Python projects
+ [[blocks.segments]]
+ type = 'python'
+ style = 'powerline'
+ powerline_symbol = ''
+ template = ' {{ if .Venv }}{{ .Venv }}{{ else }}{{ .Full }}{{ end }} '
+ foreground = 'p:bg'
+ background = 'p:yellow'
+
+ [blocks.segments.properties]
+ cache_duration = 'none'
+ display_mode = 'files'
+ fetch_virtual_env = true
+
+ # Node, only inside Node projects
+ [[blocks.segments]]
+ type = 'node'
+ style = 'powerline'
+ powerline_symbol = ''
+ template = ' {{ .Full }} '
+ foreground = 'p:bg'
+ background = 'p:mint'
+
+ [blocks.segments.properties]
+ cache_duration = 'none'
+ display_mode = 'files'
+ fetch_package_manager = false
+
+ # Command duration, shown past 5s
+ [[blocks.segments]]
+ type = 'executiontime'
+ style = 'powerline'
+ powerline_symbol = ''
+ template = ' {{ .FormattedMs }} '
+ foreground = 'p:bg'
+ background = 'p:peach'
+
+ [blocks.segments.properties]
+ cache_duration = 'none'
+ threshold = 5000
+ style = 'austin'
+
+ # Exit code, shown only on failure
+ [[blocks.segments]]
+ type = 'status'
+ style = 'powerline'
+ powerline_symbol = ''
+ template = ' {{ .Code }} '
+ foreground = 'p:fg'
+ background = 'p:crimson'
+
+ [blocks.segments.properties]
+ cache_duration = 'none'
+ always_enabled = false
+
+[[blocks]]
+ type = 'prompt'
+ alignment = 'left'
+ newline = true
+
+ [[blocks.segments]]
+ type = 'text'
+ style = 'plain'
+ template = '❯'
+ background = 'transparent'
+ foreground_templates = [
+ '{{ if gt .Code 0 }}p:scarlet{{ end }}',
+ '{{ if eq .Code 0 }}p:glow{{ end }}',
+ ]
+
+ [blocks.segments.properties]
+ cache_duration = 'none'
diff --git a/screenshot.png b/screenshot.png
new file mode 100644
index 0000000..80d0cc6
Binary files /dev/null and b/screenshot.png differ
diff --git a/sddm/moon/Main.qml b/sddm/moon/Main.qml
new file mode 100644
index 0000000..c23a1ac
--- /dev/null
+++ b/sddm/moon/Main.qml
@@ -0,0 +1,400 @@
+// Moon SDDM theme: the login twin of the gtklock lock screen.
+// Palette matches ~/.config/sway/moon. Needs Qt 6.5+ (QtQuick.Effects).
+
+import QtQuick
+import QtQuick.Effects
+import QtMultimedia
+
+Rectangle {
+ id: root
+ width: 1920
+ height: 1080
+ color: c.base
+
+ // ---------- Moon palette ----------
+ QtObject {
+ id: c
+ readonly property color base: "#080C1C"
+ readonly property color surface: "#101830"
+ readonly property color line: "#20304F"
+ readonly property color muted: "#98A7DA"
+ readonly property color text: "#DBE2F2"
+ readonly property color glow: "#90CDF6"
+ readonly property color frost: "#CFE9FB"
+ readonly property color gold: "#E2C98A"
+ readonly property color amber: "#E8A87C"
+ readonly property color scarlet: "#E06A8E"
+ }
+
+ // ---------- Config (theme.conf) ----------
+ function cfg(key, fallback) {
+ var v = config[key]
+ return (v === undefined || v === null || v === "") ? fallback : String(v)
+ }
+ readonly property bool useVideo: cfg("useVideo", "true") === "true"
+ readonly property real dim: parseFloat(cfg("dim", "0.25"))
+
+ FontLoader { id: mono; source: "fonts/JetBrainsMonoNerdFontMono-Regular.ttf" }
+ FontLoader { id: monoBold; source: "fonts/JetBrainsMonoNerdFontMono-Bold.ttf" }
+ readonly property string fontName: mono.status === FontLoader.Ready ? mono.name : "monospace"
+ function icon(cp) { return String.fromCodePoint(cp) }
+
+ // ---------- Users and sessions ----------
+ property var users: []
+ property int userIndex: userModel.lastIndex >= 0 ? userModel.lastIndex : 0
+ property var sessions: []
+ property int sessionIndex: sessionModel.lastIndex >= 0 ? sessionModel.lastIndex : 0
+
+ Repeater {
+ model: userModel
+ Item {
+ Component.onCompleted: {
+ var u = root.users.slice()
+ u[index] = { name: model.name, real: model.realName || model.name }
+ root.users = u
+ }
+ }
+ }
+ Repeater {
+ model: sessionModel
+ Item {
+ Component.onCompleted: {
+ var s = root.sessions.slice()
+ s[index] = model.name
+ root.sessions = s
+ }
+ }
+ }
+ readonly property string userName: users.length ? users[userIndex].name : userModel.lastUser
+ readonly property string userLabel: users.length ? users[userIndex].real : userModel.lastUser
+ readonly property string sessionName: sessions.length ? sessions[sessionIndex] : "Session"
+
+ // ---------- Background: still underneath, video on top ----------
+ Item {
+ id: background
+ anchors.fill: parent
+
+ Image {
+ anchors.fill: parent
+ source: Qt.resolvedUrl(root.cfg("background", "background.png"))
+ fillMode: Image.PreserveAspectCrop
+ asynchronous: true
+ }
+ Video {
+ anchors.fill: parent
+ visible: root.useVideo
+ source: root.useVideo ? Qt.resolvedUrl(root.cfg("video", "background.webm")) : ""
+ fillMode: VideoOutput.PreserveAspectCrop
+ loops: MediaPlayer.Infinite
+ muted: true
+ autoPlay: true
+ }
+ Rectangle { anchors.fill: parent; color: c.base; opacity: root.dim }
+ }
+
+
+ // ---------- The glass box ----------
+ Item {
+ id: box
+ width: 520
+ height: column.implicitHeight + 72
+ anchors.centerIn: parent
+ transform: Translate { id: shake }
+
+ // Frosted glass: the box's slice of the background, blurred and
+ // masked to rounded corners, then tinted.
+ ShaderEffectSource {
+ id: boxSource
+ sourceItem: background
+ sourceRect: Qt.rect(box.x, box.y, box.width, box.height)
+ live: true
+ visible: false
+ }
+ Rectangle {
+ id: glassMask
+ anchors.fill: parent
+ radius: 16
+ visible: false
+ layer.enabled: true
+ }
+ MultiEffect {
+ anchors.fill: parent
+ source: boxSource
+ autoPaddingEnabled: false
+ blurEnabled: true
+ blur: 1.0
+ blurMax: 64
+ maskEnabled: true
+ maskSource: glassMask
+ }
+ Rectangle { anchors.fill: parent; radius: 16; color: c.base; opacity: 0.55 }
+ Rectangle {
+ anchors.fill: parent
+ radius: 16
+ color: "transparent"
+ border.color: c.glow
+ border.width: 2
+ }
+
+ Column {
+ id: column
+ anchors.centerIn: parent
+ width: parent.width - 72
+ spacing: 14
+
+ // Avatar
+ Item {
+ width: 112; height: 112
+ anchors.horizontalCenter: parent.horizontalCenter
+ Image {
+ id: avatar
+ anchors.fill: parent
+ source: Qt.resolvedUrl(root.cfg("avatar", "avatar.png"))
+ fillMode: Image.PreserveAspectCrop
+ visible: false
+ layer.enabled: true
+ }
+ Rectangle {
+ id: avatarMask
+ anchors.fill: parent
+ radius: width / 2
+ visible: false
+ layer.enabled: true
+ }
+ MultiEffect {
+ anchors.fill: parent
+ source: avatar
+ maskEnabled: true
+ maskSource: avatarMask
+ }
+ Rectangle {
+ anchors.fill: parent
+ radius: width / 2
+ color: "transparent"
+ border.color: c.glow
+ border.width: 2
+ }
+ }
+
+ // User name (click the arrows to switch user when there are several)
+ Row {
+ anchors.horizontalCenter: parent.horizontalCenter
+ spacing: 10
+ Text {
+ visible: root.users.length > 1
+ text: root.icon(0xf0141)
+ color: prevUser.containsMouse ? c.frost : c.muted
+ font { family: root.fontName; pixelSize: 18 }
+ MouseArea {
+ id: prevUser
+ anchors.fill: parent; hoverEnabled: true
+ onClicked: root.userIndex = (root.userIndex - 1 + root.users.length) % root.users.length
+ }
+ }
+ Text {
+ text: root.userLabel
+ color: c.text
+ font { family: root.fontName; pixelSize: 18; bold: true }
+ }
+ Text {
+ visible: root.users.length > 1
+ text: root.icon(0xf0142)
+ color: nextUser.containsMouse ? c.frost : c.muted
+ font { family: root.fontName; pixelSize: 18 }
+ MouseArea {
+ id: nextUser
+ anchors.fill: parent; hoverEnabled: true
+ onClicked: root.userIndex = (root.userIndex + 1) % root.users.length
+ }
+ }
+ }
+
+ // Clock and date
+ Text {
+ id: clock
+ anchors.horizontalCenter: parent.horizontalCenter
+ color: c.frost
+ font { family: monoBold.status === FontLoader.Ready ? monoBold.name : root.fontName; pixelSize: 72; bold: true }
+ text: Qt.formatDateTime(new Date(), "HH:mm")
+ }
+ Text {
+ id: date
+ anchors.horizontalCenter: parent.horizontalCenter
+ color: c.gold
+ font { family: root.fontName; pixelSize: 18 }
+ text: Qt.formatDateTime(new Date(), "dddd, dd MMMM")
+ }
+ Timer {
+ interval: 1000; running: true; repeat: true
+ onTriggered: {
+ clock.text = Qt.formatDateTime(new Date(), "HH:mm")
+ date.text = Qt.formatDateTime(new Date(), "dddd, dd MMMM")
+ }
+ }
+
+ Item { width: 1; height: 6 }
+
+ // Password
+ Rectangle {
+ id: field
+ width: parent.width
+ height: 46
+ radius: 8
+ color: Qt.rgba(0.03, 0.05, 0.11, 0.9)
+ border.color: password.activeFocus ? c.frost : c.line
+ border.width: 2
+
+ TextInput {
+ id: password
+ anchors.fill: parent
+ anchors.leftMargin: 16
+ anchors.rightMargin: 52
+ verticalAlignment: TextInput.AlignVCenter
+ echoMode: TextInput.Password
+ passwordCharacter: "●"
+ color: c.frost
+ selectionColor: c.glow
+ selectedTextColor: c.base
+ font { family: root.fontName; pixelSize: 18 }
+ clip: true
+ focus: true
+ onAccepted: root.login()
+ onTextChanged: if (text.length) message.text = ""
+ }
+ Text {
+ anchors.left: parent.left
+ anchors.leftMargin: 16
+ anchors.verticalCenter: parent.verticalCenter
+ visible: password.text.length === 0
+ text: "Password"
+ color: c.muted
+ font { family: root.fontName; pixelSize: 16 }
+ }
+ // Go button
+ Rectangle {
+ width: 36; height: 36; radius: 6
+ anchors.right: parent.right
+ anchors.rightMargin: 5
+ anchors.verticalCenter: parent.verticalCenter
+ color: go.containsMouse ? c.frost : c.glow
+ Text {
+ anchors.centerIn: parent
+ text: root.icon(0xf0054)
+ color: c.base
+ font { family: root.fontName; pixelSize: 20 }
+ }
+ MouseArea { id: go; anchors.fill: parent; hoverEnabled: true; onClicked: root.login() }
+ }
+ }
+
+ // Errors and caps lock
+ Text {
+ id: message
+ width: parent.width
+ horizontalAlignment: Text.AlignHCenter
+ color: c.scarlet
+ font { family: root.fontName; pixelSize: 15; bold: true }
+ text: ""
+ visible: text.length > 0
+ }
+ Text {
+ width: parent.width
+ horizontalAlignment: Text.AlignHCenter
+ visible: keyboard.capsLock
+ text: root.icon(0xf030e) + " Caps Lock is on"
+ color: c.amber
+ font { family: root.fontName; pixelSize: 15; bold: true }
+ }
+ }
+
+ SequentialAnimation {
+ id: shakeAnim
+ NumberAnimation { target: shake; property: "x"; to: -14; duration: 50 }
+ NumberAnimation { target: shake; property: "x"; to: 12; duration: 70 }
+ NumberAnimation { target: shake; property: "x"; to: -8; duration: 70 }
+ NumberAnimation { target: shake; property: "x"; to: 0; duration: 60 }
+ }
+ }
+
+ // ---------- Bottom bar: session (left), power (right) ----------
+ Row {
+ anchors.left: parent.left
+ anchors.bottom: parent.bottom
+ anchors.margins: 28
+ spacing: 10
+ Text {
+ text: root.icon(0xf0379) + " " + root.sessionName
+ color: sessionArea.containsMouse ? c.frost : c.text
+ font { family: root.fontName; pixelSize: 16 }
+ MouseArea {
+ id: sessionArea
+ anchors.fill: parent; hoverEnabled: true
+ onClicked: if (root.sessions.length) root.sessionIndex = (root.sessionIndex + 1) % root.sessions.length
+ }
+ }
+ Text {
+ visible: root.sessions.length > 1
+ text: "(click to change)"
+ color: c.muted
+ font { family: root.fontName; pixelSize: 13 }
+ anchors.verticalCenter: parent.verticalCenter
+ }
+ }
+
+ Row {
+ anchors.right: parent.right
+ anchors.bottom: parent.bottom
+ anchors.margins: 28
+ spacing: 22
+ Repeater {
+ model: [
+ { glyph: 0xf0904, label: "Sleep", ok: sddm.canSuspend, run: function() { sddm.suspend() } },
+ { glyph: 0xf0709, label: "Restart", ok: sddm.canReboot, run: function() { sddm.reboot() } },
+ { glyph: 0xf0425, label: "Shut down", ok: sddm.canPowerOff, run: function() { sddm.powerOff() } }
+ ]
+ delegate: Item {
+ visible: modelData.ok
+ width: buttonCol.implicitWidth
+ height: buttonCol.implicitHeight
+ Column {
+ id: buttonCol
+ spacing: 4
+ Text {
+ anchors.horizontalCenter: parent.horizontalCenter
+ text: root.icon(modelData.glyph)
+ color: area.containsMouse ? (index === 2 ? c.scarlet : c.frost) : c.text
+ font { family: root.fontName; pixelSize: 26 }
+ }
+ Text {
+ anchors.horizontalCenter: parent.horizontalCenter
+ text: modelData.label
+ color: c.muted
+ font { family: root.fontName; pixelSize: 12 }
+ }
+ }
+ MouseArea {
+ id: area
+ anchors.fill: parent; hoverEnabled: true
+ onClicked: modelData.run()
+ }
+ }
+ }
+ }
+
+ // ---------- Login ----------
+ function login() {
+ message.text = ""
+ sddm.login(root.userName, password.text, root.sessionIndex)
+ }
+ Connections {
+ target: sddm
+ function onLoginFailed() {
+ password.text = ""
+ message.text = root.icon(0xf05d6) + " Wrong password, try again"
+ shakeAnim.restart()
+ password.forceActiveFocus()
+ }
+ }
+
+ Component.onCompleted: password.forceActiveFocus()
+}
diff --git a/sddm/moon/metadata.desktop b/sddm/moon/metadata.desktop
new file mode 100644
index 0000000..c4afe7d
--- /dev/null
+++ b/sddm/moon/metadata.desktop
@@ -0,0 +1,12 @@
+[SddmGreeterTheme]
+Name=Moon
+Description=Moon login screen, matching the dotfiles' lock screen
+Website=https://github.com/doughmination/moon-dots
+License=MIT
+Type=sddm-theme
+Version=1.0
+MainScript=Main.qml
+ConfigFile=theme.conf
+Theme-Id=moon
+Theme-API=2.0
+QtVersion=6
diff --git a/sddm/moon/theme.conf b/sddm/moon/theme.conf
new file mode 100644
index 0000000..34e5684
--- /dev/null
+++ b/sddm/moon/theme.conf
@@ -0,0 +1,10 @@
+[General]
+# These files are copied in next to Main.qml by install-assets.sh
+# (the login screen can't read your home folder).
+background=background.png
+video=background.webm
+# Play the animated wallpaper behind the login box (false = still only)
+useVideo=true
+avatar=avatar.png
+# Darken the wallpaper a little so the box stands out (0 = none, 1 = black)
+dim=0.25
diff --git a/sway/background-sound.mp3 b/sway/background-sound.mp3
new file mode 100644
index 0000000..31effec
Binary files /dev/null and b/sway/background-sound.mp3 differ
diff --git a/sway/background.png b/sway/background.png
new file mode 100644
index 0000000..f6fae87
Binary files /dev/null and b/sway/background.png differ
diff --git a/sway/background.webm b/sway/background.webm
new file mode 100644
index 0000000..f11b392
Binary files /dev/null and b/sway/background.webm differ
diff --git a/sway/config b/sway/config
new file mode 100644
index 0000000..6701a9f
--- /dev/null
+++ b/sway/config
@@ -0,0 +1,250 @@
+include moon
+
+### Variables
+#
+# Logo key. Use Mod1 for Alt.
+set $mod Mod4
+set $term kitty
+set $browser firefox
+set $menu fuzzel
+set $lock ~/.local/bin/lock-screen
+set $ss ~/.local/bin/screenshot
+set $files kitty -e yazi
+set $wallpaper ~/.config/sway/background.png
+
+# Bar, launcher, power menu, notifications, clipboard
+set $launcher $menu
+set $bar pkill -SIGUSR1 waybar
+set $logout ~/.local/bin/powermenu
+set $notification makoctl restore
+set $clipboard cliphist list | $menu --dmenu --prompt "clip " | cliphist decode | wl-copy
+set $clipwipe cliphist wipe
+
+### Startup
+#
+exec waybar
+exec ~/.local/bin/wallpaper restore
+
+# Background sound: on or off, volume 0-100. Plays sway/background-sound.*
+# while plugged in and out of power-saver. Super+M mutes it until the next reload.
+set $ambient_sound off
+set $ambient_volume 30
+exec_always ~/.local/bin/ambient config $ambient_sound $ambient_volume
+exec mako
+exec --no-startup-id autotiling
+
+# Idle: lock after 5 min, screen off after 10, always lock before sleep
+exec swayidle -w \
+ timeout 300 '~/.local/bin/lock-screen' \
+ timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
+ before-sleep '~/.local/bin/lock-screen'
+
+# Polkit authentication agent (needed for fprintd enroll, udisks, etc.)
+exec --no-startup-id /usr/libexec/polkit-gnome-authentication-agent-1
+
+# Secret service (GCM's credentialStore=secretservice needs this running)
+exec --no-startup-id gnome-keyring-daemon --start --components=secrets,ssh,pkcs11
+
+# Clipboard history (text + images)
+exec --no-startup-id wl-paste --type text --watch cliphist store
+exec --no-startup-id wl-paste --type image --watch cliphist store
+
+# Give D-Bus services (screen-sharing portal, etc.) the Wayland session vars.
+# Without this xdg-desktop-portal-wlr can't reach sway, so OBS/browsers can't capture the screen.
+exec dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP SWAYSOCK DISPLAY
+
+exec /usr/bin/pipewire
+
+# Cursor Style
+seat seat0 xcursor_theme sandrone-linux 28
+
+### Input
+#
+input type:keyboard {
+ xkb_layout "gb"
+}
+
+### Output configuration
+#
+output eDP-1 scale 1
+output * bg $wallpaper fill
+
+focus_follows_mouse yes
+
+### SwayFX
+#
+corner_radius 15
+
+# Window background blur
+blur on
+blur_xray off
+blur_passes 3
+blur_radius 5
+
+# Slightly deepened, cool glass to sit over the space art
+blur_brightness 0.95
+blur_contrast 1.15
+blur_saturation 1.15
+blur_noise 0.02
+
+# Gear glow under the focused window, a faint ribbon-red under the rest
+shadows enable
+shadows_on_csd enable
+shadow_blur_radius 28
+shadow_offset 0 0
+shadow_color #90CDF6AA
+shadow_inactive_color #C8406A30
+
+# Glass treatment for the bar, launcher and notifications
+layer_effects "waybar" "blur enable; blur_ignore_transparent enable; shadows enable; corner_radius 16"
+layer_effects "launcher" "blur enable; shadows enable; corner_radius 16"
+layer_effects "notifications" "blur enable; shadows enable; corner_radius 16"
+
+# Inactive window fade amount. 0.0 = no dimming, 1.0 = fully dimmed
+default_dim_inactive 0.17
+dim_inactive_colors.unfocused #03050CFF
+dim_inactive_colors.urgent #4A1A35FF
+
+scratchpad_minimize disable
+
+### Colors
+#
+# target title bg text indicator border
+client.focused $glow $base $text $frost $glow
+client.focused_inactive $surface2 $base $text $surface2 $surface2
+client.unfocused $surface2 $base $text $surface2 $surface2
+client.urgent $crimson $base $text $scarlet $crimson
+client.placeholder $surface2 $base $text $surface2 $surface2
+client.background $base
+
+### Key bindings
+#
+# Basics:
+bindsym $mod+Return exec $term
+bindsym Ctrl+Mod1+t exec $term
+bindsym $mod+q kill
+bindsym $mod+space exec $launcher
+bindsym $mod+f exec $browser
+bindsym $mod+b exec $bar
+bindsym $mod+e exec $files
+bindsym $mod+Mod1+l exec $lock
+bindsym $mod+n exec $notification
+bindsym $mod+v exec $clipboard
+bindsym $mod+Shift+v exec $clipwipe
+bindsym $mod+slash exec ~/.local/bin/keybinds
+bindsym $mod+m exec ~/.local/bin/ambient toggle
+# $mod+grave (dashboard) is unbound for now.
+
+floating_modifier $mod normal
+
+bindsym $mod+Shift+r reload
+bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
+bindsym Ctrl+Mod1+Delete exec $logout
+
+# Moving around:
+bindsym $mod+Left focus left
+bindsym $mod+Down focus down
+bindsym $mod+Up focus up
+bindsym $mod+Right focus right
+
+bindsym $mod+Shift+Left move left
+bindsym $mod+Shift+Down move down
+bindsym $mod+Shift+Up move up
+bindsym $mod+Shift+Right move right
+
+# Workspaces:
+bindsym $mod+1 workspace number 1
+bindsym $mod+2 workspace number 2
+bindsym $mod+3 workspace number 3
+bindsym $mod+4 workspace number 4
+bindsym $mod+5 workspace number 5
+bindsym $mod+6 workspace number 6
+bindsym $mod+7 workspace number 7
+bindsym $mod+8 workspace number 8
+bindsym $mod+9 workspace number 9
+
+bindsym $mod+Mod1+1 move container to workspace number 1
+bindsym $mod+Mod1+2 move container to workspace number 2
+bindsym $mod+Mod1+3 move container to workspace number 3
+bindsym $mod+Mod1+4 move container to workspace number 4
+bindsym $mod+Mod1+5 move container to workspace number 5
+bindsym $mod+Mod1+6 move container to workspace number 6
+bindsym $mod+Mod1+7 move container to workspace number 7
+bindsym $mod+Mod1+8 move container to workspace number 8
+bindsym $mod+Mod1+9 move container to workspace number 9
+
+bindsym $mod+Ctrl+Left workspace prev_on_output
+bindsym $mod+Ctrl+Right workspace next_on_output
+
+# Layout stuff:
+bindsym $mod+w floating toggle
+bindsym $mod+Shift+minus move scratchpad
+bindsym $mod+minus scratchpad show
+
+mode "resize" {
+ bindsym Left resize shrink width 10px
+ bindsym Down resize grow height 10px
+ bindsym Up resize shrink height 10px
+ bindsym Right resize grow width 10px
+
+ bindsym Return mode "default"
+ bindsym Escape mode "default"
+}
+bindsym $mod+r mode "resize"
+
+# Laptop Lid
+bindswitch lid:on exec --no-startup-id $lock
+
+# Volume
+bindsym XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+ -l 1.5
+bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05- -l 1.0
+bindsym XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
+bindsym XF86AudioMicMute exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
+bindsym Shift+XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.01+ -l 1.5
+bindsym Shift+XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.01- -l 1.0
+
+# Brightness
+bindsym XF86MonBrightnessUp exec brightnessctl -q s 5%+
+bindsym XF86MonBrightnessDown exec brightnessctl -q s 5%-
+bindsym $mod+o exec brightnessctl --device='tpacpi::kbd_backlight' set 1-
+bindsym $mod+p exec brightnessctl --device='tpacpi::kbd_backlight' set +1
+
+# Screenshots
+bindsym Print exec $ss -c
+bindsym Ctrl+Shift+Print exec $ss -s -c
+bindsym Ctrl+Print exec $ss
+bindsym Shift+Print exec $ss -s
+# Same bind starts and stops the recording
+bindsym Ctrl+Alt+Print exec $ss -r
+
+# Music
+bindsym $mod+a exec playerctl previous
+bindsym $mod+d exec playerctl next
+bindsym $mod+s exec playerctl play-pause
+
+# Custom Apps
+bindsym $mod+z exec flatpak run org.equicord.equibop
+bindsym $mod+c exec flatpak run com.vscodium.codium
+
+### Window Rules
+#
+default_border pixel 3
+gaps inner 5
+gaps outer 12
+
+# Opacity
+for_window [all] opacity set 0.75
+for_window [app_id="gimp*"] opacity set 1.0
+for_window [app_id="krita*"] opacity set 1.0
+for_window [app_id="org.inkscape.Inkscape"] opacity set 1.0
+for_window [app_id="virt-manager"] opacity set 1.0
+for_window [app_id="com.obsproject.Studio"] opacity set 1.0
+
+# Blur
+for_window [app_id="gimp*"] blur disable
+for_window [class="krita*"] blur disable
+for_window [app_id="org.inkscape.Inkscape"] blur disable
+for_window [app_id="virt-manager"] blur disable
+for_window [app_id="com.obsproject.Studio"] blur disable
+
+include /etc/sway/config.d/*
diff --git a/sway/moon b/sway/moon
new file mode 100644
index 0000000..9b4f55d
--- /dev/null
+++ b/sway/moon
@@ -0,0 +1,42 @@
+# Moon palette, sampled from sway/wallpaper.jpeg
+# Night indigo, moonlit petal blue, lavender, pale gold trim, moon white.
+# Every themed app (waybar, kitty, fuzzel, mako, gtklock, swaylock, omp)
+# uses these same hex values.
+
+# Night (backgrounds, darkest to lightest)
+set $crust #03050Cff
+set $mantle #050812ff
+set $base #080C1Cff
+set $surface0 #101830ff
+set $surface1 #18233Fff
+set $surface2 #20304Fff
+set $overlay0 #2E4066ff
+set $overlay1 #4A5A85ff
+set $overlay2 #6B78A3ff
+
+# Moon white and periwinkle (text)
+set $subtext0 #98A7DAff
+set $subtext1 #B8C4E6ff
+set $text #DBE2F2ff
+
+# Petal glow (main accent)
+set $glow #90CDF6ff
+set $frost #CFE9FBff
+set $sky #74ABEBff
+set $blue #558AD5ff
+set $navy #1C326Dff
+
+# Rose and lavender (alerts)
+set $crimson #C8406Aff
+set $scarlet #E06A8Eff
+set $wine #4A1A35ff
+set $rose #BDAADEff
+
+# Pale gold trim (highlights and warnings)
+set $gold #E2C98Aff
+set $yellow #F0D98Cff
+set $amber #E8A87Cff
+set $peach #F2D4C2ff
+
+# Not in the art; terminals and "ok" states need a green
+set $jade #7FD1B9ff
diff --git a/swaylock/config b/swaylock/config
new file mode 100644
index 0000000..cf80671
--- /dev/null
+++ b/swaylock/config
@@ -0,0 +1,53 @@
+# Moon palette, matches ~/.config/sway/moon
+daemonize
+ignore-empty-password
+show-failed-attempts
+indicator-caps-lock
+indicator-idle-visible
+hide-keyboard-layout
+
+# lock-screen passes a blurred copy of the wallpaper if imagemagick is installed;
+# this is the fallback
+image=~/.config/sway/background.png
+scaling=fill
+color=080C1C
+
+font=JetBrainsMono Nerd Font
+font-size=22
+indicator-radius=110
+indicator-thickness=9
+
+# Idle
+inside-color=080C1Ccc
+ring-color=90CDF6ff
+line-color=00000000
+separator-color=00000000
+text-color=DBE2F2ff
+key-hl-color=E2C98Aff
+bs-hl-color=E06A8Eff
+
+# Checking password
+inside-ver-color=080C1Ccc
+ring-ver-color=E2C98Aff
+line-ver-color=00000000
+text-ver-color=E2C98Aff
+
+# Wrong password
+inside-wrong-color=4A1A35cc
+ring-wrong-color=E06A8Eff
+line-wrong-color=00000000
+text-wrong-color=E06A8Eff
+
+# Cleared input
+inside-clear-color=080C1Ccc
+ring-clear-color=558AD5ff
+line-clear-color=00000000
+text-clear-color=558AD5ff
+
+# Caps lock on
+inside-caps-lock-color=080C1Ccc
+ring-caps-lock-color=E8A87Cff
+line-caps-lock-color=00000000
+text-caps-lock-color=E8A87Cff
+caps-lock-key-hl-color=E2C98Aff
+caps-lock-bs-hl-color=E06A8Eff
diff --git a/waybar/config.jsonc b/waybar/config.jsonc
new file mode 100644
index 0000000..6d775c1
--- /dev/null
+++ b/waybar/config.jsonc
@@ -0,0 +1,181 @@
+{
+ "layer": "top",
+ "position": "top",
+ "height": 34,
+ "margin-top": 8,
+ "margin-left": 12,
+ "margin-right": 12,
+ "spacing": 6,
+ "reload_style_on_change": true,
+
+ "modules-left": ["custom/launcher", "custom/decor", "sway/workspaces", "sway/mode", "sway/scratchpad", "mpris"],
+ "modules-center": [],
+ "modules-right": ["custom/recording", "custom/updates", "idle_inhibitor", "custom/nightlight", "custom/dnd", "memory", "cpu", "wireplumber", "backlight", "network", "bluetooth", "custom/battery", "tray", "clock", "custom/power"],
+
+ "custom/launcher": {
+ "exec": "~/.config/waybar/scripts/distro-icon",
+ "return-type": "json",
+ "interval": "once",
+ "format": "{}",
+ "on-click": "fuzzel"
+ },
+
+ "custom/decor": {
+ "exec": "~/.local/bin/wallpaper status",
+ "return-type": "json",
+ "interval": "once",
+ "signal": 9,
+ "on-click": "~/.local/bin/wallpaper toggle"
+ },
+
+ "sway/workspaces": {
+ "all-outputs": true,
+ "format": "{name}"
+ },
+
+ "sway/mode": {
+ "format": " {}"
+ },
+
+ "sway/scratchpad": {
+ "format": " {count}",
+ "show-empty": false,
+ "tooltip-format": "{app}: {title}"
+ },
+
+ "mpris": {
+ "format": "{status_icon} {dynamic}",
+ "dynamic-order": ["title", "artist"],
+ "dynamic-len": 40,
+ "status-icons": { "playing": "", "paused": "", "stopped": "" },
+ "on-click": "playerctl play-pause",
+ "on-scroll-up": "playerctl next",
+ "on-scroll-down": "playerctl previous"
+ },
+
+ "clock": {
+ "format": "{:%a %d %b %H:%M}",
+ "tooltip": false,
+ "on-click": "~/.local/bin/calendar"
+ },
+
+ "custom/recording": {
+ "exec": "~/.local/bin/recording-status",
+ "return-type": "json",
+ "interval": 5,
+ "signal": 11,
+ "on-click": "~/.local/bin/screenshot -r"
+ },
+
+ "custom/updates": {
+ "exec": "~/.local/bin/updates status",
+ "return-type": "json",
+ "interval": 3600,
+ "signal": 13,
+ "on-click": "~/.local/bin/updates run"
+ },
+
+ "idle_inhibitor": {
+ "format": "{icon}",
+ "format-icons": { "activated": "", "deactivated": "" },
+ "tooltip-format-activated": "Staying awake (no auto-lock)\nClick to allow locking",
+ "tooltip-format-deactivated": "Auto-lock after 5 min\nClick to stay awake"
+ },
+
+ "custom/nightlight": {
+ "exec": "~/.local/bin/nightlight status",
+ "return-type": "json",
+ "interval": "once",
+ "signal": 12,
+ "on-click": "~/.local/bin/nightlight toggle"
+ },
+
+ "custom/dnd": {
+ "exec": "~/.local/bin/dnd status",
+ "return-type": "json",
+ "interval": 5,
+ "signal": 10,
+ "on-click": "~/.local/bin/notifications",
+ "on-click-right": "~/.local/bin/dnd toggle"
+ },
+
+ "memory": {
+ "interval": 5,
+ "format": " {percentage}%",
+ "tooltip-format": "RAM {used:0.1f} / {total:0.1f} GiB\nSwap {swapUsed:0.1f} / {swapTotal:0.1f} GiB",
+ "states": { "warning": 75, "critical": 90 },
+ "on-click": "kitty -e btop"
+ },
+
+ "cpu": {
+ "interval": 3,
+ "format": " {usage}%",
+ "states": { "warning": 75, "critical": 90 },
+ "on-click": "kitty -e btop"
+ },
+
+ "wireplumber": {
+ "format": "{icon} {volume}%",
+ "format-muted": " muted",
+ "format-icons": ["", "", ""],
+ "scroll-step": 5,
+ "max-volume": 100,
+ "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
+ "on-click-middle": "pavucontrol"
+ },
+
+ "backlight": {
+ "device": "amdgpu_bl0",
+ "format": "{icon} {percent}%",
+ "format-icons": ["", "", ""],
+ "on-click": "[ $(brightnessctl -m | cut -d, -f4 | tr -d %) -le 15 ] && brightnessctl -q s 100% || brightnessctl -q s 15%",
+ "on-scroll-up": "brightnessctl -q s 5%+",
+ "on-scroll-down": "brightnessctl -q s 5%-"
+ },
+
+ "network": {
+ "format-wifi": " {essid}",
+ "format-ethernet": " wired",
+ "format-disconnected": " offline",
+ "format-disabled": "\udb81\uddaa wifi off",
+ "format-linked": "\udb82\udd2b {essid} (no IP)",
+ "tooltip-format-disabled": "Wi-Fi is off\nClick to turn it on",
+ "tooltip-format-disconnected": "Not connected\nClick to turn Wi-Fi off · Right-click for nmtui",
+ "tooltip-format-wifi": "{essid} ({signalStrength}%)\n{ipaddr}\n {bandwidthDownBytes} {bandwidthUpBytes}",
+ "tooltip-format-ethernet": "{ifname}\n{ipaddr}",
+ "on-click": "~/.local/bin/net-toggle",
+ "on-click-right": "kitty -e nmtui"
+ },
+
+ "bluetooth": {
+ "format": "",
+ "format-off": "",
+ "format-disabled": "",
+ "format-connected": " {device_alias}",
+ "tooltip-format-connected": "{device_enumerate}",
+ "tooltip-format-enumerate-connected": "{device_alias}",
+ "on-click": "~/.local/bin/bt-toggle",
+ "on-click-middle": "kitty -e bluetui"
+ },
+
+ "custom/battery": {
+ "exec": "~/.local/bin/waybar-battery",
+ "return-type": "json",
+ "interval": 30,
+ "signal": 8,
+ "on-click": "~/.local/bin/waybar-battery saver",
+ "on-click-right": "~/.local/bin/waybar-battery performance",
+ "on-click-middle": "~/.local/bin/waybar-battery menu"
+ },
+
+ "tray": {
+ "icon-size": 16,
+ "spacing": 8
+ },
+
+ "custom/power": {
+ "format": "",
+ "tooltip": false,
+ "on-click": "~/.local/bin/powermenu"
+ }
+}
diff --git a/waybar/scripts/distro-icon b/waybar/scripts/distro-icon
new file mode 100755
index 0000000..a4fa5ed
--- /dev/null
+++ b/waybar/scripts/distro-icon
@@ -0,0 +1,57 @@
+#!/bin/sh
+# Waybar launcher icon: this distro's logo in its brand color.
+# Reads /etc/os-release, tries ID first, then each ID_LIKE parent,
+# and falls back to Tux. Glyphs come from Nerd Fonts (nf-linux-*).
+
+[ -r /etc/os-release ] && . /etc/os-release
+
+icon_for() {
+ case $1 in
+ void) echo "f32e #478061" ;;
+ arch|archarm) echo "f303 #1793D1" ;;
+ artix) echo "f31f #10A0CC" ;;
+ endeavouros) echo "f322 #7F7FFF" ;;
+ manjaro|manjaro-arm) echo "f312 #35BF5C" ;;
+ cachyos) echo "f385 #00B9A5" ;;
+ garuda) echo "f337 #2BB3C5" ;;
+ arcolinux) echo "f346 #6DA5E3" ;;
+ debian) echo "f306 #D70A53" ;;
+ ubuntu) echo "f31b #E95420" ;;
+ linuxmint) echo "f30e #87CF3E" ;;
+ pop) echo "f32a #48B9C7" ;;
+ elementary) echo "f309 #64BAFF" ;;
+ zorin) echo "f32f #15A6F0" ;;
+ kali) echo "f327 #367BF0" ;;
+ devuan) echo "f307 #9A8FC2" ;;
+ fedora) echo "f30a #51A2DA" ;;
+ nobara) echo "f380 #9C6FE4" ;;
+ rhel) echo "f316 #EE0000" ;;
+ centos) echo "f304 #9CCD2A" ;;
+ rocky) echo "f32b #10B981" ;;
+ almalinux) echo "f31d #FFCB12" ;;
+ opensuse-tumbleweed) echo "f37d #73BA25" ;;
+ opensuse-leap) echo "f37e #73BA25" ;;
+ opensuse|suse) echo "f314 #73BA25" ;;
+ nixos) echo "f313 #7EBAE4" ;;
+ gentoo) echo "f30d #9A8FC2" ;;
+ alpine) echo "f300 #2B8EC8" ;;
+ postmarketos) echo "f374 #009900" ;;
+ slackware) echo "f318 #6577B3" ;;
+ solus) echo "f32d #5294E2" ;;
+ guix) echo "f325 #FFCC00" ;;
+ freebsd) echo "f30c #D5242C" ;;
+ openbsd) echo "f328 #F2CA30" ;;
+ *) return 1 ;;
+ esac
+}
+
+for id in $ID $ID_LIKE; do
+ pick=$(icon_for "$id") && break
+done
+[ -n "$pick" ] || pick="f31a #E9E4DF" # Tux
+
+glyph=${pick% *}
+color=${pick#* }
+name=${PRETTY_NAME:-${NAME:-Linux}}
+printf '{"text":"<span color=\\"%s\\">\\u%s</span>","tooltip":"%s","class":"%s"}\n' \
+ "$color" "$glyph" "$name" "${ID:-linux}"
diff --git a/waybar/style.css b/waybar/style.css
new file mode 100644
index 0000000..26c1678
--- /dev/null
+++ b/waybar/style.css
@@ -0,0 +1,192 @@
+/* Moon palette, matches ~/.config/sway/moon */
+@define-color base #080C1C;
+@define-color surface0 #101830;
+@define-color surface2 #20304F;
+@define-color overlay1 #4A5A85;
+@define-color subtext0 #98A7DA;
+@define-color text #DBE2F2;
+@define-color glow #90CDF6;
+@define-color frost #CFE9FB;
+@define-color sky #74ABEB;
+@define-color blue #558AD5;
+@define-color crimson #C8406A;
+@define-color scarlet #E06A8E;
+@define-color rose #BDAADE;
+@define-color gold #E2C98A;
+@define-color yellow #F0D98C;
+@define-color amber #E8A87C;
+@define-color peach #F2D4C2;
+@define-color jade #7FD1B9;
+
+* {
+ font-family: "JetBrainsMono Nerd Font", "Adwaita Sans", sans-serif;
+ font-size: 13px;
+ font-weight: 600;
+ min-height: 0;
+ border: none;
+ border-radius: 0;
+}
+
+window#waybar {
+ background: alpha(@base, 0.50);
+ border: 1px solid alpha(@glow, 0.55);
+ border-radius: 16px;
+ color: @text;
+}
+
+window#waybar > box { padding: 0 4px; }
+
+tooltip {
+ background: alpha(@base, 0.94);
+ border: 1px solid alpha(@glow, 0.7);
+ border-radius: 10px;
+}
+
+/* Every module is its own glass pill */
+#custom-launcher,
+#custom-decor,
+#workspaces,
+#mode,
+#scratchpad,
+#mpris,
+#clock,
+#custom-recording,
+#custom-updates,
+#idle_inhibitor,
+#custom-nightlight,
+#custom-dnd,
+#memory,
+#cpu,
+#wireplumber,
+#backlight,
+#network,
+#bluetooth,
+#custom-battery,
+#tray,
+#custom-power {
+ background: alpha(@surface0, 0.72);
+ border: 1px solid alpha(@overlay1, 0.55);
+ border-radius: 12px;
+ padding: 0 12px;
+ margin: 2px 0;
+}
+
+/* Distro logo; its brand color comes from scripts/distro-icon */
+#custom-launcher {
+ font-size: 17px;
+}
+
+/* Wallpaper toggle: crimson picture = still, cyan play = animated */
+#custom-decor {
+ font-size: 15px;
+ border-color: alpha(@crimson, 0.55);
+}
+#custom-decor.animated { border-color: alpha(@glow, 0.55); }
+#custom-decor.paused { border-color: alpha(@amber, 0.55); }
+#custom-decor:hover { background: alpha(@surface2, 0.95); }
+
+#workspaces { padding: 0 4px; }
+
+#workspaces button {
+ color: @overlay1;
+ background: transparent;
+ padding: 0 8px;
+ margin: 4px 2px;
+ border-radius: 8px;
+ transition: all 150ms ease;
+}
+
+#workspaces button:hover {
+ color: @text;
+ background: alpha(@surface2, 0.9);
+ box-shadow: none;
+}
+
+#workspaces button.focused {
+ color: @base;
+ background: @glow;
+ box-shadow: 0 0 10px alpha(@glow, 0.75);
+}
+
+#workspaces button.urgent {
+ color: @text;
+ background: @crimson;
+}
+
+#mode {
+ color: @base;
+ background: @gold;
+}
+
+#scratchpad { color: @rose; }
+#mpris { color: @peach; }
+
+#clock {
+ color: @glow;
+ border-color: alpha(@glow, 0.55);
+}
+
+/* Quick toggles: dim when off, lit when on */
+#idle_inhibitor,
+#custom-nightlight,
+#custom-dnd { color: @subtext0; }
+#idle_inhibitor.activated { color: @peach; border-color: alpha(@peach, 0.55); }
+#custom-nightlight.on { color: @amber; border-color: alpha(@amber, 0.55); }
+#custom-dnd.on { color: @rose; border-color: alpha(@rose, 0.55); }
+
+#custom-updates { color: @gold; }
+
+@keyframes rec-pulse {
+ to { background: alpha(@crimson, 0.35); }
+}
+#custom-recording {
+ color: @text;
+ background: @crimson;
+ border-color: @scarlet;
+ animation: rec-pulse 1s ease-in-out infinite alternate;
+}
+
+#memory { color: @frost; }
+#cpu { color: @sky; }
+#memory.warning,
+#cpu.warning { color: @yellow; }
+#memory.critical,
+#cpu.critical { color: @scarlet; }
+#wireplumber { color: @rose; }
+#wireplumber.muted { color: @overlay1; }
+#backlight { color: @peach; }
+#network { color: @glow; }
+#network.disconnected,
+#network.disabled { color: @overlay1; }
+#network.linked { color: @amber; }
+#bluetooth { color: @blue; }
+#bluetooth.off,
+#bluetooth.disabled { color: @overlay1; }
+
+#custom-battery { color: @jade; }
+#custom-battery.charging,
+#custom-battery.plugged { color: @frost; }
+#custom-battery.warning { color: @yellow; }
+#custom-battery.powersave { color: @amber; border-color: alpha(@amber, 0.55); }
+#custom-battery.performance { color: @rose; border-color: alpha(@rose, 0.55); }
+
+@keyframes blink {
+ to { background: @crimson; color: @text; }
+}
+
+#custom-battery.critical {
+ color: @scarlet;
+ animation: blink 1s steps(2) infinite alternate;
+}
+
+#tray > .needs-attention { background: alpha(@crimson, 0.6); }
+
+#custom-power {
+ color: @scarlet;
+ font-size: 15px;
+}
+
+#custom-power:hover,
+#custom-launcher:hover {
+ background: alpha(@surface2, 0.95);
+}
diff --git a/xsettingsd/xsettingsd.conf b/xsettingsd/xsettingsd.conf
new file mode 100644
index 0000000..c954e59
--- /dev/null
+++ b/xsettingsd/xsettingsd.conf
@@ -0,0 +1,17 @@
+Gdk/UnscaledDPI 98304
+Gdk/WindowScalingFactor 1
+Gtk/EnableAnimations 1
+Gtk/DecorationLayout "icon:minimize,maximize,close"
+Net/ThemeName "Breeze-Dark"
+Gtk/PrimaryButtonWarpsSlider 1
+Gtk/ToolbarStyle 3
+Gtk/MenuImages 1
+Gtk/ButtonImages 1
+Net/CursorBlinkTime 1000
+Net/CursorBlink 1
+Gtk/CursorThemeSize 24
+Gtk/CursorThemeName "sandrone-linux"
+Net/SoundThemeName "ocean"
+Net/IconThemeName "candy-icons"
+Gtk/FontName "Noto Sans, 10"
+