This commit is contained in:
Stephan Raabe
2023-08-20 11:46:46 +02:00
parent 7fb836bfbb
commit 585834d31d
12 changed files with 205 additions and 88 deletions
+10 -2
View File
@@ -11,22 +11,30 @@
echo "Changing theme..."
# -----------------------------------------------------
# Update Wallpaper with pywal
# -----------------------------------------------------
wal -q -i ~/wallpaper/
# -----------------------------------------------------
# Wait for 1 sec
# -----------------------------------------------------
sleep 1
# -----------------------------------------------------
# Reload qtile to color bar
# -----------------------------------------------------
qtile cmd-obj -o cmd -f reload_config
# -----------------------------------------------------
# Get new theme
# -----------------------------------------------------
source "$HOME/.cache/wal/colors.sh"
newwall=$(echo $wallpaper | sed "s|$HOME/wallpaper/||g")
# -----------------------------------------------------
# Send notification
# -----------------------------------------------------
notify-send "Theme and Wallpaper updated" "With image $newwall"
echo "Done."