Updates
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user