ci: format
This commit is contained in:
parent
310bd074e7
commit
25b821a4fd
8 changed files with 374 additions and 331 deletions
|
|
@ -51,7 +51,7 @@ echo "$themes" | grep -Fxq "$theme" || exit 1
|
|||
|
||||
state_dir="${XDG_STATE_HOME:-$HOME/.local/state}"
|
||||
mkdir -p "$state_dir"
|
||||
printf '%s\n' "$theme" > "$state_dir/theme"
|
||||
printf '%s\n' "$theme" >"$state_dir/theme"
|
||||
export THEME="$theme"
|
||||
|
||||
case "$(uname)" in
|
||||
|
|
@ -81,7 +81,6 @@ Linux)
|
|||
pkill -USR2 waybar
|
||||
}
|
||||
|
||||
|
||||
hypr_themes="$cfg/hypr/themes"
|
||||
[ -f "$hypr_themes/$theme.conf" ] && {
|
||||
ln -sf "$hypr_themes/$theme.conf" "$hypr_themes/theme.conf"
|
||||
|
|
@ -132,8 +131,8 @@ if command -v claude >/dev/null 2>&1 && command -v jq >/dev/null 2>&1; then
|
|||
daylight) claude_theme='light' ;;
|
||||
esac
|
||||
[ -f "$CLAUDE_CONFIG" ] && {
|
||||
jq ".theme=\"$claude_theme\"" "$CLAUDE_CONFIG" > "$CLAUDE_CONFIG.tmp" &&
|
||||
mv "$CLAUDE_CONFIG.tmp" "$CLAUDE_CONFIG"
|
||||
jq ".theme=\"$claude_theme\"" "$CLAUDE_CONFIG" >"$CLAUDE_CONFIG.tmp" &&
|
||||
mv "$CLAUDE_CONFIG.tmp" "$CLAUDE_CONFIG"
|
||||
}
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue