dotfiles/scripts/currentWallpaperHyprlock.sh
2026-03-13 01:11:46 +05:00

9 lines
381 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"
currentWallpaper=/home/rafayahmad/dotfiles/bgs/2.png
export currentWallpaper
# echo "$configFile"
hyprlock -c /home/rafayahmad/dotfiles/.config/hypr/hyprlock/2.conf