My configurations for the software I use

`thm` now puts its files in XDG_STATE_HOME instead of XDG_CACHE_HOME

yemou 0e0cbf48 45eef76c

Changed files
+8 -8
config
foot
kak
loksh
rc
sway
thm
local
+1 -1
config/foot/foot.ini
···
# Alternatively I could create a wrapper script that uses an environment variable
-
include=~/.cache/thm/foot-colors.ini
+
include=~/.local/state/thm/foot-colors.ini
font=monospace:size=10
pad=8x8 center
+1 -1
config/kak/kakrc
···
printf '%s\n' "decl str theme_type none"
return 0
}
-
. $(cat "${XDG_CACHE_HOME:-$HOME/.cache}/thm/current_thm")
+
. $(cat "${XDG_STATE_HOME:-$HOME/.local/state}/thm/current_thm")
case $theme_type in
light ) printf '%s\n' "decl str theme_type light" ;;
dark ) printf '%s\n' "decl str theme_type dark" ;;
+1 -1
config/loksh/rc
···
PS2="\[\033[1;36m\]>\[\033[m\] "
} || {
# Try and get OSC-133;A working
-
case $(. "$(<"${XDG_CACHE_HOME:-$HOME/.cache}/thm/current_thm")"; printf '%s' "$theme_type") in
+
case $(. "$(<"${XDG_STATE_HOME:-$HOME/.local/state}/thm/current_thm")"; printf '%s' "$theme_type") in
dark ) PS1="\[\033[1;91m\]\u\[\033[92m\]@\[\033[93m\]\h \[\033[94m\]\W\[\033[m\] "
PS2="\[\033[1;96m\]>\[\033[m\] " ;;
* ) PS1="\[\033[1;31m\]\u\[\033[32m\]@\[\033[33m\]\h \[\033[34m\]\W\[\033[m\] "
+1 -1
config/sway/config
···
include /etc/sway/config.d/*
-
include ${XDG_CACHE_HOME}/thm/sway-appearance
+
include ${XDG_STATE_HOME}/thm/sway-appearance
output "LG Electronics LG HDR WFHD 0x0000B11B" {
mode 2560x1080@74.991Hz
+1 -1
config/thm/templates/dark/foot-colors.ini.template
···
-
include=~/.cache/thm/foot-colors-base.ini
+
include=~/.local/state/thm/foot-colors-base.ini
[csd]
color=ff{fg_color}
+1 -1
config/thm/templates/light/foot-colors.ini.template
···
-
include=~/.cache/thm/foot-colors-base.ini
+
include=~/.local/state/thm/foot-colors-base.ini
[csd]
color=ff{bg_color}
+1 -1
local/bin/bemenu
···
#!/bin/sh
# shellcheck source=/dev/null
-
. "${XDG_CACHE_HOME:-$HOME/.cache}/thm/colors.sh"
+
. "${XDG_STATE_HOME:-$HOME/.local/state}/thm/colors.sh"
# shellcheck disable=SC2154
exec /usr/bin/bemenu -i \
+1 -1
local/bin/bemenu-run
···
#!/bin/sh
# shellcheck source=/dev/null
-
. "${XDG_CACHE_HOME:-$HOME/.cache}/thm/colors.sh"
+
. "${XDG_STATE_HOME:-$HOME/.local/state}/thm/colors.sh"
# shellcheck disable=SC2154
exec /usr/bin/bemenu-run -i \