From 6626995445e12c044bd324d8af51739abaa45b8f Mon Sep 17 00:00:00 2001 From: yemou Date: Sat, 14 Sep 2024 08:09:41 -0400 Subject: [PATCH] Store theme files in XDG_STATE_HOME instead of XDG_CACHE_HOME --- flake.lock | 6 +++--- scritps/thm | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index 1877792..a653918 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "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": { diff --git a/scritps/thm b/scritps/thm index 7961f93..fc3ee14 100755 --- a/scritps/thm +++ b/scritps/thm @@ -23,7 +23,7 @@ hex2rgb() { [ "$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" -- 2.51.2