A collection of scripts

Store theme files in XDG_STATE_HOME instead of XDG_CACHE_HOME

yemou 66269954 1e613a83

Changed files
+4 -4
scritps
thm
+3 -3
flake.lock
···
"nodes": {
"nixpkgs": {
"locked": {
-
"lastModified": 1715961556,
-
"narHash": "sha256-+NpbZRCRisUHKQJZF3CT+xn14ZZQO+KjxIIanH3Pvn4=",
+
"lastModified": 1726062873,
+
"narHash": "sha256-IiA3jfbR7K/B5+9byVi9BZGWTD4VSbWe8VLpp9B/iYk=",
"owner": "NixOS",
"repo": "nixpkgs",
-
"rev": "4a6b83b05df1a8bd7d99095ec4b4d271f2956b64",
+
"rev": "4f807e8940284ad7925ebd0a0993d2a1791acb2f",
"type": "github"
},
"original": {
+1 -1
scritps/thm
···
[ "$THM_DEST_DIR" ] \
&& dest_dir="$THM_DEST_DIR" \
-
|| dest_dir="${XDG_CACHE_HOME:-$HOME/.cache}/thm"
+
|| dest_dir="${XDG_STATE_HOME:-$HOME/.local/state}/thm"
err() {
[ "$*" ] && err_msg="$*" || err_msg="error"