new wallpaper, altered terminal transparency, added 'viconf', a command that will take a word as input and then find matching files in the sysflake folder to open in neovim
This commit is contained in:
17
modules/home/scripts/commands/viconf.nix
Normal file
17
modules/home/scripts/commands/viconf.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
pkgs,
|
||||
}:
|
||||
|
||||
pkgs.writeShellScriptBin "viconf" ''
|
||||
#!/usr/bin/env bash
|
||||
|
||||
[ ! $# -eq 1 ] && echo "Usage: viconf <*.nix>" && exit 1
|
||||
results=$(find "$FLAKEPATH" -name "*$1*" -exec find {} \; | sort | uniq | rg '\.nix$')
|
||||
numresults=$(echo "$results" | wc -l)
|
||||
[ "$numresults" -eq 0 ] && echo "$1 not found in \$FLAKEPATH" && exit 1
|
||||
if [ "$numresults" -gt 1 ]; then
|
||||
echo "$results" | tr ' ' '\n' | fzf | xargs -I {} nvim {}
|
||||
else
|
||||
nvim "$results"
|
||||
fi
|
||||
''
|
||||
@@ -85,6 +85,9 @@
|
||||
host = host;
|
||||
self = self;
|
||||
pkgs = pkgs;
|
||||
};
|
||||
viconf = import ./commands/viconf.nix {
|
||||
pkgs = pkgs;
|
||||
};
|
||||
chscheme = import ./nix/chscheme.nix {
|
||||
pkgs = pkgs;
|
||||
@@ -113,5 +116,6 @@ in {
|
||||
toggle_float
|
||||
toggle_oppacity
|
||||
toggle_waybar
|
||||
viconf
|
||||
];
|
||||
}
|
||||
|
||||
@@ -3,6 +3,5 @@ pkgs.writeShellScriptBin "hyprland" ''
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
|
||||
exec Hyprland
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user