hyprpm/hyprlock

This commit is contained in:
xsghetti 2024-02-26 00:59:53 -05:00
parent d4376c8ddf
commit e973ebbc15
39 changed files with 2500 additions and 7 deletions

View file

@ -0,0 +1,27 @@
#!/usr/bin/env sh
# set variables
ScrDir=`dirname "$(realpath "$0")"`
DcoDir="${XDG_CONFIG_HOME:-$HOME/.config}/hypr/wallbash"
TgtScr=$ScrDir/globalcontrol.sh
source $ScrDir/globalcontrol.sh
# switch WallDcol variable
if [ $EnableWallDcol -eq 1 ] ; then
sed -i "/^EnableWallDcol/c\EnableWallDcol=0" $TgtScr
notif=" Wallbash disabled..."
else
sed -i "/^EnableWallDcol/c\EnableWallDcol=1" $TgtScr
notif=" Wallbash enabled..."
fi
# reset the colors
grep -m 1 '.' $DcoDir/*.dcol | awk -F '|' '{print $2}' | while read wallbash
do
if [ ! -z "$wallbash" ] ; then
eval "${wallbash}"
fi
done
dunstify "t1" -a "$notif" -i "~/.config/dunst/icons/hyprdots.png" -r 91190 -t 2200