2023-03-24 14:31:45 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# __ __ _ _
|
|
|
|
# \ \ / /_ _| | |_ __ __ _ _ __ ___ _ __
|
|
|
|
# \ \ /\ / / _` | | | '_ \ / _` | '_ \ / _ \ '__|
|
|
|
|
# \ V V / (_| | | | |_) | (_| | |_) | __/ |
|
|
|
|
# \_/\_/ \__,_|_|_| .__/ \__,_| .__/ \___|_|
|
|
|
|
# |_| |_|
|
|
|
|
#
|
|
|
|
# by Stephan Raabe (2023)
|
|
|
|
# -----------------------------------------------------
|
|
|
|
|
|
|
|
# Select wallpaper
|
2023-04-03 14:20:44 +00:00
|
|
|
selected=$(ls -1 ~/wallpaper | grep "jpg" | rofi -dmenu -p "Select the wallpaper")
|
2023-03-24 14:31:45 +00:00
|
|
|
|
2023-04-03 14:20:44 +00:00
|
|
|
if [ "$selected" ]; then
|
|
|
|
# Update wallpaper with pywal
|
|
|
|
wal -q -i ~/wallpaper/$selected
|
2023-03-24 14:31:45 +00:00
|
|
|
|
2023-04-03 14:20:44 +00:00
|
|
|
# Wait for 1 sec
|
|
|
|
sleep 1
|
2023-03-24 14:31:45 +00:00
|
|
|
|
2023-04-03 14:20:44 +00:00
|
|
|
# Reload qtile to color bar
|
|
|
|
qtile cmd-obj -o cmd -f reload_config
|
|
|
|
fi
|