dotfiles/scripts/currentWallpaperHyprlock.sh
RafayAhmad7548 358503f857 better now
2024-09-30 10:39:14 +05:00

7 lines
258 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
hyprlock -c "$configFile"