2023-03-09 08:25:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# ____ _ _____ _
|
|
|
|
# / ___| |__ __ _ _ __ __ _ ___ |_ _| |__ ___ _ __ ___ ___
|
|
|
|
# | | | '_ \ / _` | '_ \ / _` |/ _ \ | | | '_ \ / _ \ '_ ` _ \ / _ \
|
|
|
|
# | |___| | | | (_| | | | | (_| | __/ | | | | | | __/ | | | | | __/
|
|
|
|
# \____|_| |_|\__,_|_| |_|\__, |\___| |_| |_| |_|\___|_| |_| |_|\___|
|
|
|
|
# |___/
|
|
|
|
#
|
|
|
|
# by Stephan Raabe (2023)
|
|
|
|
# -----------------------------------------------------
|
2023-02-09 09:27:03 +00:00
|
|
|
|
2023-03-06 16:55:42 +00:00
|
|
|
echo "Changing theme..."
|
2023-04-08 14:26:43 +00:00
|
|
|
|
2023-02-09 09:27:03 +00:00
|
|
|
# Update Wallpaper with pywal
|
2023-03-06 16:55:42 +00:00
|
|
|
wal -q -i ~/wallpaper/
|
2023-02-09 09:27:03 +00:00
|
|
|
|
|
|
|
# Wait for 1 sec
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
# Reload qtile to color bar
|
|
|
|
qtile cmd-obj -o cmd -f reload_config
|
|
|
|
|
2023-04-08 14:26:43 +00:00
|
|
|
# Get new theme
|
|
|
|
source "$HOME/.cache/wal/colors.sh"
|
|
|
|
|
2023-04-11 08:27:01 +00:00
|
|
|
newwall=$(echo $wallpaper | sed "s|$HOME/wallpaper/||g")
|
2023-04-10 15:04:46 +00:00
|
|
|
|
2023-04-08 14:26:43 +00:00
|
|
|
# Send notification
|
2023-04-11 08:27:01 +00:00
|
|
|
notify-send "Theme and Wallpaper updated" "With image $newwall"
|
2023-04-08 14:26:43 +00:00
|
|
|
|
2023-03-06 16:55:42 +00:00
|
|
|
echo "Done."
|
2023-04-11 08:27:01 +00:00
|
|
|
|