Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
heussd committed Aug 3, 2024
1 parent b6ec045 commit 4436289
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .config/kitty/readability.conf
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
17 changes: 11 additions & 6 deletions .scripts/kitty-readability
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)"

0 comments on commit 4436289

Please sign in to comment.