porting launchers and themes to more general solution, moving away from

This commit is contained in:
spinach 2026-01-13 18:14:42 -05:00
parent d04eab7465
commit eda5bf9f74
2 changed files with 15 additions and 2 deletions

View File

@ -15,8 +15,8 @@ configuration {
}
/*****----- Global Properties -----*****/
@import "../../shared/colors.rasi"
@import "../../shared/fonts.rasi"
@import "../../palette/onedark.rasi"
@import "../../base/base.rasi"
/*****----- Main Window -----*****/
window {

13
scripts/wallpaper-picker.sh Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
WALL_DIR="${1:-$HOME/.local/share/wallpapers}"
# Build list: display text = filename; icon = thumbnail of file; payload = full path
# Use NUL + unit-separator fields per rofi's extended dmenu protocol.
while IFS= read -r -d '' f; do
base="$(basename "$f")"
printf '%s\0icon\x1fthumbnail://%s\0info\x1f%s\n' "$base" "$f" "$f"
done < <(find "$WALL_DIR" -type f \( -iname '*.png' -o -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.webp' \) -print0 | sort -z)
# Run rofi dmenu, capturing the selected line (which includes the base text)