mirror of
https://github.com/EdenQwQ/nixos.git
synced 2025-12-26 18:34:56 +08:00
colorscheme: fix colorscheme switch script
This commit is contained in:
parent
dd4017ab39
commit
c052b4c36f
2 changed files with 2 additions and 4 deletions
|
|
@ -1,7 +1,5 @@
|
|||
{
|
||||
user,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue