mirror of
https://github.com/belsabbagh/dotfiles.git
synced 2026-04-11 17:47:09 +00:00
quickshell and hyprland additions
This commit is contained in:
24
.config/quickshell/nucleus-shell/scripts/interface/selectfolder.sh
Executable file
24
.config/quickshell/nucleus-shell/scripts/interface/selectfolder.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Folder selector for wallpaper slideshow
|
||||
|
||||
START_DIR="${1:-$HOME/Pictures/Wallpapers}"
|
||||
|
||||
# Ensure start dir exists, fallback to Pictures or Home
|
||||
if [ ! -d "$START_DIR" ]; then
|
||||
START_DIR="$HOME/Pictures"
|
||||
fi
|
||||
if [ ! -d "$START_DIR" ]; then
|
||||
START_DIR="$HOME"
|
||||
fi
|
||||
|
||||
FOLDER=$(zenity --file-selection \
|
||||
--directory \
|
||||
--title="Select Wallpaper Folder" \
|
||||
--filename="$START_DIR/" 2>/dev/null)
|
||||
|
||||
if [ $? -eq 0 ] && [ -n "$FOLDER" ]; then
|
||||
echo "$FOLDER"
|
||||
else
|
||||
echo "null"
|
||||
fi
|
||||
Reference in New Issue
Block a user