From 025148cc875a2fe8281be795442bcd1f9893590d Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sat, 1 Mar 2025 21:11:09 +0545 Subject: [PATCH] idk --- config/material-colors/hooks/kitty.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 config/material-colors/hooks/kitty.sh diff --git a/config/material-colors/hooks/kitty.sh b/config/material-colors/hooks/kitty.sh new file mode 100755 index 0000000..d6c3dfd --- /dev/null +++ b/config/material-colors/hooks/kitty.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# Define the cache path where your colors-kitty.conf file is stored. +CACHE_PATH="${HOME}/.cache/material" +COLORS_FILE="${CACHE_PATH}/colors-kitty.conf" + +if [ -f "$COLORS_FILE" ]; then + # Reload kitty colors using kitty's remote control. + kitty @ set-colors --all "$COLORS_FILE" + # Send the USR1 signal to kitty to complete the reload process. + pkill -USR1 kitty + echo "Kitty colors reloaded successfully." +else + echo "Colors file not found at $COLORS_FILE." +fi