disabled sddm for now because hyprland is having issues with it

also changed viconf to allow for no arguments, which opens a fzf window
with every config file in it
This commit is contained in:
2024-11-16 17:35:02 -05:00
parent 8c23248bd2
commit 4d254077ba
3 changed files with 12 additions and 8 deletions

View File

@@ -5,10 +5,14 @@ pkgs.writeShellApplication {
text = ''
#!/usr/bin/env bash
[ ! $# -eq 1 ] && echo "Usage: viconf <*.nix>" && exit 1
if [ ! $# -eq 1 ]; then
results=$(find "$FLAKEPATH" -exec find {} \; | sort | uniq | rg '\.nix$')
numresults=$(echo "$results" | wc -l)
else
results=$(find "$FLAKEPATH" -wholename "*$1*" -exec find {} \; | sort | uniq | rg '\.nix$')
numresults=$(echo "$results" | wc -l)
fi
results=$(find "$FLAKEPATH" -wholename "*$1*" -exec find {} \; | sort | uniq | rg '\.nix$')
numresults=$(echo "$results" | wc -l)
[ "$numresults" -eq 0 ] && echo "$1 not found in \$FLAKEPATH" && exit 1