-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
#modify_font cell_height 180% | ||
#window_padding_width 100 | ||
# | ||
#font_size 20 | ||
##font_family Humor Sans | ||
# | ||
#font_family Humor Sans |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
# shellcheck disable=SC2002 | ||
|
||
conf=$HOME/.config/kitty/readability.conf | ||
conf="$HOME/.config/kitty/readability.conf" | ||
temp="$TMPDIR/readability.conf" | ||
|
||
firstline=$(cat $conf | head -n 1) | ||
|
||
firstline=$(cat "$conf" | head -n 1) | ||
|
||
|
||
if [[ "$firstline" == \#* ]]; then | ||
cat "$conf" | cut -c 2- | tee "$conf" | ||
cat "$conf" | cut -c 2- > "$temp" | ||
else | ||
cat "$conf" | sed 's/^/#/' | tee "$conf" | ||
cat "$conf" | sed 's/^/#/' > "$temp" | ||
fi | ||
|
||
kill -s USR1 $(pgrep -a kitty) | ||
mv "$temp" "$conf" | ||
|
||
kill -s USR1 "$(pgrep -a kitty)" |