This commit is contained in:
Stephan Raabe
2023-04-11 10:27:01 +02:00
parent 6fe65fe53f
commit 3052b7dad4
6 changed files with 37 additions and 13 deletions

View File

@@ -13,6 +13,8 @@
selected=$(ls -1 ~/wallpaper | grep "jpg" | rofi -dmenu -p "Select the wallpaper")
if [ "$selected" ]; then
echo "Changing theme..."
# Update wallpaper with pywal
wal -q -i ~/wallpaper/$selected
@@ -21,4 +23,14 @@ if [ "$selected" ]; then
# 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."
fi