mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Zathura template
This commit is contained in:
@@ -432,10 +432,11 @@ mango)
|
||||
echo "Warning: mmsg command not found, manual restart may be needed." >&2
|
||||
fi
|
||||
;;
|
||||
|
||||
btop)
|
||||
echo "🎨 Applying 'noctalia' theme to btop..."
|
||||
CONFIG_FILE="$HOME/.config/btop/btop.conf"
|
||||
|
||||
|
||||
if [ -f "$CONFIG_FILE" ]; then
|
||||
if grep -q '^color_theme = "noctalia"' "$CONFIG_FILE"; then
|
||||
echo "Theme already set to noctalia, skipping modification."
|
||||
@@ -447,7 +448,7 @@ btop)
|
||||
fi
|
||||
echo "✅ Updated btop config to use noctalia theme."
|
||||
fi
|
||||
|
||||
|
||||
if pgrep -x btop >/dev/null; then
|
||||
echo "Reloading btop..."
|
||||
pkill -SIGUSR2 -x btop
|
||||
@@ -456,6 +457,28 @@ btop)
|
||||
echo "Warning: btop config file not found at $CONFIG_FILE" >&2
|
||||
fi
|
||||
;;
|
||||
|
||||
zathura)
|
||||
echo "🎨 Applying 'noctalia' theme to zathura..."
|
||||
|
||||
ZATHURA_INSTANCES=$(dbus-send --session \
|
||||
--dest=org.freedesktop.DBus \
|
||||
--type=method_call \
|
||||
--print-reply \
|
||||
/org/freedesktop/DBus \
|
||||
org.freedesktop.DBus.ListNames \
|
||||
| grep -o 'org.pwmt.zathura.PID-[0-9]*')
|
||||
|
||||
for id in $ZATHURA_INSTANCES; do
|
||||
dbus-send --session \
|
||||
--dest="$id" \
|
||||
--type=method_call \
|
||||
/org/pwmt/zathura \
|
||||
org.pwmt.zathura.ExecuteCommand \
|
||||
string:"source"
|
||||
done
|
||||
;;
|
||||
|
||||
*)
|
||||
# Handle unknown application names.
|
||||
echo "Error: Unknown application '$APP_NAME'." >&2
|
||||
|
||||
Reference in New Issue
Block a user