colorscheme: fix colorscheme switch script

This commit is contained in:
EdenQwQ 2025-03-03 15:39:04 +08:00
parent dd4017ab39
commit c052b4c36f
2 changed files with 2 additions and 4 deletions

View file

@ -1,7 +1,5 @@
{
user,
config,
lib,
...
}:
{

View file

@ -7,12 +7,12 @@ os_specialisations=$(find /nix/store/*nixos-system* -lname "$(realpath $current_
if [ -z "$specialisations" ]; then
specialisations=$current_profile/specialisation
else
specialisations=$(dirname "$specialisations")
specialisations=$(dirname $specialisations | xargs ls -dt | head -n1)
fi
if [ -z "$os_specialisations" ]; then
os_specialisations=$current_os_profile/specialisation
else
specialisations=$(dirname "$specialisations")
specialisations=$(dirname $specialisations | xargs ls -dt | head -n1)
fi
colorscheme=$( (ls "$specialisations"; echo default) | tofi --require-match=false)