porting launchers and themes to more general solution, moving away from
This commit is contained in:
parent
d04eab7465
commit
eda5bf9f74
@ -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
13
scripts/wallpaper-picker.sh
Executable 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)
|
||||
Loading…
x
Reference in New Issue
Block a user