dotfiles/scripts/currentWallpaperHyprlock.sh
RafayAhmad7548 30542228ee clean files
2025-07-26 20:13:37 +05:00

8 lines
277 B
Bash
Executable file

#!/bin/bash
currentWallpaper=$(hyprctl hyprpaper listactive)
currentWallpaper=${currentWallpaper:8}
configFile=${currentWallpaper: -5:1}
configFile="/home/rafayahmad/.config/hypr/hyprlock/${configFile}.conf"
export currentWallpaper
echo "$configFile"
hyprlock -c "$configFile"