Last active
September 7, 2024 15:56
-
-
Save binarynoise/492f243cdcb8902f85509fb47629802d to your computer and use it in GitHub Desktop.
Revisions
-
binarynoise renamed this gist
Sep 7, 2024 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
binarynoise revised this gist
Sep 18, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
Empty file. -
binarynoise revised this gist
Sep 18, 2023 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ Automatically make kitty toggle between light and dark themes to follow the theme you set. Just put it into autostart. -
binarynoise created this gist
Sep 18, 2023 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ #!/usr/bin/bash IFS=$'\n' changeTheme() { case "$1" in *dark*) kitty +kitten themes --reload-in all Tango Dark ;; *light* | *default*) kitty +kitten themes --reload-in all Tango Light ;; esac } changeTheme "$(dconf read /org/x/apps/portal/color-scheme)" dconf watch /org/x/apps/portal/color-scheme | grep --line-buffered -ve '/org/x/apps/portal/color-scheme' -e '^\s*$' | while read -r line; do changeTheme "$line" done