Added PowerOff button with wlogout
This commit is contained in:
@@ -5,8 +5,6 @@ IMAGE="$1"
|
||||
image_name=$(basename "$IMAGE")
|
||||
image="$HOME/Pictures/Wallpapers/$image_name"
|
||||
|
||||
echo "$image"
|
||||
|
||||
echo "start"
|
||||
|
||||
# Check if an image was provided
|
||||
@@ -45,4 +43,16 @@ elif [ -x "/usr/bin/hyprpaper" ]; then
|
||||
echo "daemon started"
|
||||
fi
|
||||
hyprctl hyprpaper wallpaper ", $image"
|
||||
fi
|
||||
fi
|
||||
|
||||
### Blured Wallpaper for wlogout
|
||||
blur="50x30"
|
||||
static_wallpaper_dir="/home/honney/Pictures/Wallpapers/Static"
|
||||
|
||||
if [ ! -d $static_wallpaper_dir ]; then
|
||||
mkdir -p $static_wallpaper_dir;
|
||||
fi
|
||||
|
||||
blurred_wp="$static_wallpaper_dir/blurred.jpg"
|
||||
|
||||
magick $image -blur $blur $blurred_wp
|
||||
|
||||
Reference in New Issue
Block a user