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,24 @@
#!/usr/bin/env sh
# set variables
ScrDir=`dirname "$(realpath "$0")"`
source $ScrDir/globalcontrol.sh
hypDir="${XDG_CONFIG_HOME:-$HOME/.config}/hypr/themes"
# regen color conf
if [ "$EnableWallDcol" -eq 1 ] ; then
kvantummanager --set Wall-Dcol
else
kvantummanager --set $gtkTheme
fi
# reload dolphin
a_ws=$(hyprctl -j activeworkspace | jq '.id')
if [ "$(hyprctl -j clients | jq --arg wid "$a_ws" '.[] | select(.workspace.id == ($wid | tonumber)) | select(.class == "org.kde.dolphin") | .mapped')" == "true" ] ; then
pkill -x dolphin
dolphin &
fi