mirror of
https://github.com/xsghetti/HyprCrux.git
synced 2025-07-03 13:50:38 -04:00
24 lines
570 B
Bash
Executable file
24 lines
570 B
Bash
Executable file
#!/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
|
|
|