Add wallpaper picker, screenshot menu, cheatsheet, waybar hw drawer

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 23:49:08 +05:00
co-authored by Claude Sonnet 5.5
parent fc4a744e12
commit 91bd6ededf
14 changed files with 58 additions and 4 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
# Wallpaper picker with previews. Also used by sway at start (arg: apply).
dir=$HOME/Pictures/wallpapers
cur=$dir/current
if [ "$1" != apply ]; then
pick=$(find "$dir" -maxdepth 1 -type f \( -name '*.jpg' -o -name '*.png' \) | sort | while read -r f; do
printf '%s\0icon\x1f%s\n' "$(basename "$f" | sed 's/\.[^.]*$//')" "$f"
done | rofi -dmenu -i -p "Wallpaper" -show-icons -theme ~/.config/rofi/catppuccin.rasi \
-theme-str 'window {width: 760px;} listview {columns: 3; lines: 2;} element {orientation: vertical; padding: 10px;} element-icon {size: 9em;} element-text {horizontal-align: 0.5;} entry {enabled: false;}')
[ -n "$pick" ] || exit 0
file=$(find "$dir" -maxdepth 1 -type f -name "$pick.*" | head -1)
ln -sf "$file" "$cur"
fi
swaymsg output '*' bg "$cur" fill >/dev/null