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:
@@ -5,7 +5,7 @@
|
||||
movOpts = {
|
||||
sysEnv = {
|
||||
issue.enable = true;
|
||||
sddmConfig.enable = true;
|
||||
sddmConfig.enable = false;
|
||||
stylixConfig.enable = true;
|
||||
nixSettings.enable = true;
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
[ "$numresults" -eq 0 ] && echo "$1 not found in \$FLAKEPATH" && exit 1
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user