2.6 KiB
2.6 KiB
pagedMov's Custom Command Scripts
- icanhazip
- Description:
- Leverages
ipandicanhazip.comto return relevant IP information for the current machine.
- Leverages
- Usage:
icanhazip- Returns public IP, local IP, and default gateway.icanhazip -p- Returns only public IP.icanhazip -l- Returns only local IP.icanhazip -d- Returns only default gateway.
- Defined in:
modules/home/scripts/commands/icanhazip.nix
- Description:
- invoke
- Description:
- Leverages
nix runto run any command once. Works with arguments.
- Leverages
- Usage:
invoke <command>
- Example:
invoke hello
- Defined in:
modules/home/scripts/commands/invoke.nix
- Description:
- runbg
- Description:
- Runs a command and detaches the process from the shell silently. Works with arguments.
- Credit to Frost-Phoenix for writing this script.
- Usage:
runbg <command> <args>
- Example:
runbg waybar
- Defined in:
modules/home/scripts/commands/runbg.nix
- Description:
- toolbelt
- Description:
- Opens a fuzzyfinder window with some useful utilities.
- Meant to be used with the
Super + Pbind defined inhyprland.nix, and not invoked directly from the shell.
- Defined in:
modules/home/scripts/commands/toolbelt.nix
- Description:
- viconf
- Description:
- Searches the directory held in the
$FLAKEPATHenvironment variable for a given Nix file or directory name. - Opens the file in Neovim, or if there are multiple matches, opens a fuzzyfinder window to allow you to choose one.
- Searches the directory held in the
- Usage:
viconf <part of path or filename>
- Examples:
viconf hyprland- Opens$FLAKEPATH/modules/home/environment/hyprland.nix.viconf sys- Opens a fuzzyfinder window containing all Nix files inmodules/sysand its subdirectories.viconf config- Opens a fuzzyfinder window containing all Nix files calledconfig.nix.viconf scripts/def- Opens$FLAKEPATH/modules/home/scripts/default.nix.
- Defined in:
modules/home/scripts/commands/viconf.nix
- Description:
- vipkg
- Description:
- Searches the
pkgsdirectory from the Nixpkgs GitHub repository. - Works almost identically to
viconfwith a few tweaks to accommodate the different directory structure. - Useful for overriding a package's build attributes or searching for a package name.
- Searches the
- Usage:
vipkg <part of package name>
- Example:
vipkg neofetch- Opensnixpkgs/pkgs/tools/misc/neofetch/default.nix.
- Defined in:
modules/home/scripts/commands/vipkg.nix
- Description: