mirror of
https://github.com/Nexoniarz/nexoniarz-config-nixos.git
synced 2026-11-03 12:34:27 +00:00
nixos config
This commit is contained in:
commit
5dc9fb020e
46 changed files with 6194 additions and 0 deletions
16
modules/scripts/cursor-set.sh
Executable file
16
modules/scripts/cursor-set.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
# Applies a cursor theme immediately (hyprctl) and persists it across
|
||||
# restarts by writing env vars to a file hyprland.conf sources on startup.
|
||||
set -euo pipefail
|
||||
|
||||
theme="${1:?usage: cursor-set <theme-name> [size]}"
|
||||
size="${2:-24}"
|
||||
|
||||
hyprctl setcursor "$theme" "$size" > /dev/null
|
||||
|
||||
mkdir -p "$HOME/.config/hypr"
|
||||
cat > "$HOME/.config/hypr/cursor.conf" <<EOF
|
||||
env = HYPRCURSOR_THEME,$theme
|
||||
env = XCURSOR_THEME,$theme
|
||||
env = XCURSOR_SIZE,$size
|
||||
EOF
|
||||
Loading…
Reference in a new issue