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 = {
|
movOpts = {
|
||||||
sysEnv = {
|
sysEnv = {
|
||||||
issue.enable = true;
|
issue.enable = true;
|
||||||
sddmConfig.enable = true;
|
sddmConfig.enable = false;
|
||||||
stylixConfig.enable = true;
|
stylixConfig.enable = true;
|
||||||
nixSettings.enable = true;
|
nixSettings.enable = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -5,10 +5,14 @@ pkgs.writeShellApplication {
|
|||||||
text = ''
|
text = ''
|
||||||
#!/usr/bin/env bash
|
#!/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
|
[ "$numresults" -eq 0 ] && echo "$1 not found in \$FLAKEPATH" && exit 1
|
||||||
|
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ pkgs.writeShellApplication {
|
|||||||
str="''${str::-1}"
|
str="''${str::-1}"
|
||||||
if [ "$char" = "-" ]; then return 0; fi
|
if [ "$char" = "-" ]; then return 0; fi
|
||||||
case "$char" in
|
case "$char" in
|
||||||
"a") if checkbools; then echo "$usage" && exit 1; else all=true; fi ;;
|
"a") if checkbools; then all=true; else echo -e "$usage" && exit 1; fi ;;
|
||||||
"s") if checkbools; then system=true; else echo "$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 "$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 "$usage" && exit 1; fi ;;
|
"n") if [ "$dry" = false ]; then dry=true; else echo -e "$usage" && exit 1; fi ;;
|
||||||
*) echo -e "$usage" && exit 1 ;;
|
*) echo -e "$usage" && exit 1 ;;
|
||||||
esac
|
esac
|
||||||
checkflags "$str"
|
checkflags "$str"
|
||||||
|
|||||||
Reference in New Issue
Block a user