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

View File

@@ -10,10 +10,10 @@ pkgs.writeShellApplication {
str="''${str::-1}"
if [ "$char" = "-" ]; then return 0; fi
case "$char" in
"a") if checkbools; then echo "$usage" && exit 1; else all=true; fi ;;
"s") if checkbools; then system=true; else echo "$usage" && exit 1; fi ;;
"h") if checkbools; then home=true; else echo "$usage" && exit 1; fi ;;
"n") if [ "$dry" = false ]; then dry=true; else echo "$usage" && exit 1; fi ;;
"a") if checkbools; then all=true; else echo -e "$usage" && exit 1; fi ;;
"s") if checkbools; then system=true; else echo -e "$usage" && exit 1; fi ;;
"h") if checkbools; then home=true; else echo -e "$usage" && exit 1; fi ;;
"n") if [ "$dry" = false ]; then dry=true; else echo -e "$usage" && exit 1; fi ;;
*) echo -e "$usage" && exit 1 ;;
esac
checkflags "$str"