mirror of
https://github.com/xsghetti/HyprCrux.git
synced 2025-07-03 22:00:38 -04:00
hyprpm/hyprlock
This commit is contained in:
parent
d4376c8ddf
commit
e973ebbc15
39 changed files with 2500 additions and 7 deletions
27
.config/hypr/scripts/wallbashtoggle.sh
Executable file
27
.config/hypr/scripts/wallbashtoggle.sh
Executable 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue