fix(nixos): replace removed light option and harden char-count script

Restore flake checks by removing deprecated `programs.light` from sunken-ship and switching to brightnessctl guidance. Also clean up flake formatting and make the Raycast char-count script safer for empty input.

Made-with: Cursor
This commit is contained in:
DannyDannyDanny 2026-03-24 12:58:40 +01:00
parent befe2f8a5b
commit 463249961e
3 changed files with 10 additions and 10 deletions

View file

@ -1,4 +1,5 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail
# Required parameters:
# @raycast.schemaVersion 1
@ -7,11 +8,11 @@
# Optional parameters:
# @raycast.icon 🤖
# @raycast.argument1 { "type": "text", "placeholder": "Placeholder" }
# @raycast.argument1 { "type": "text", "placeholder": "Text to count" }
# Documentation:
# @raycast.description counts chars in selected text
# @raycast.author DannyDannyDanny
# @raycast.authorURL https://raycast.com/DannyDannyDanny
echo -n "$1" | wc -c
printf '%s' "${1:-}" | wc -c | awk '{ print $1 }'