Implemented custom system for creating and distributing color schemes based on wallpapers, and also cycling through wallpapers.

nixfmt'd the codebase
This commit is contained in:
2026-03-09 22:02:46 -04:00
parent 4308b8eb16
commit 8ee748a997
145 changed files with 2776 additions and 1125 deletions

View File

@@ -1,12 +1,12 @@
{ super, root }:
{
icanhazip = super.callPackage ./icanhazip.nix {};
icanhazip = super.callPackage ./icanhazip.nix { };
invoke = super.callPackage ./invoke.nix { self = root; };
git-compose = super.callPackage ./git-compose.nix { self = root; };
runbg = super.callPackage ./runbg.nix {};
splash = super.callPackage ./splash.nix {};
toolbelt = super.callPackage ./toolbelt.nix {};
viconf = super.callPackage ./viconf.nix {};
vipkg = super.callPackage ./vipkg.nix {};
runbg = super.callPackage ./runbg.nix { };
splash = super.callPackage ./splash.nix { };
toolbelt = super.callPackage ./toolbelt.nix { };
viconf = super.callPackage ./viconf.nix { };
vipkg = super.callPackage ./vipkg.nix { };
}

View File

@@ -2,7 +2,12 @@
pkgs.writeShellApplication {
name = "icanhazip";
runtimeInputs = with pkgs; [ iproute2 curl gawk coreutils ];
runtimeInputs = with pkgs; [
iproute2
curl
gawk
coreutils
];
text = ''
if [ $# -eq 0 ]; then
echo "Public IP: $(curl -s icanhazip.com -4)"

View File

@@ -1,4 +1,4 @@
{ pkgs, }:
{ pkgs }:
pkgs.writeShellApplication {
name = "runbg";
runtimeInputs = with pkgs; [

View File

@@ -1,7 +1,11 @@
{ pkgs }:
pkgs.writeShellApplication {
name = "splash";
runtimeInputs = with pkgs; [ lolcat toilet coreutils ];
runtimeInputs = with pkgs; [
lolcat
toilet
coreutils
];
text = ''
echo "NixOS kernel ver. $(uname -a | awk '{print $3}') x86_64 GNU/Linux"
date +"%A %B %-d %Y"

View File

@@ -1,14 +1,19 @@
{ pkgs }:
pkgs.writeShellApplication {
name = "viconf";
runtimeInputs = with pkgs; [ coreutils fd ripgrep fzf ];
runtimeInputs = with pkgs; [
coreutils
fd
ripgrep
fzf
];
text = ''
open_file() {
file="$1"
if grep -Pq "[^\x00-\x7F]" "$file"; then
NIXD_FLAGS="--semantic-tokens=false" nvim "$file"
NIXD_FLAGS="--semantic-tokens=false" $EDITOR "$file"
else
nvim "$file"
$EDITOR "$file"
fi
}

View File

@@ -1,4 +1,6 @@
{ pkgs ? import <nixpkgs> { } }:
{
pkgs ? import <nixpkgs> { },
}:
let
nixpkgs_toplevel = pkgs.fetchFromGitHub {
owner = "NixOS";
@@ -6,9 +8,15 @@ let
rev = "63dacb46bf939521bdc93981b4cbb7ecb58427a0";
hash = "sha256-vboIEwIQojofItm2xGCdZCzW96U85l9nDW3ifMuAIdM=";
};
in pkgs.writeShellApplication {
in
pkgs.writeShellApplication {
name = "vipkg";
runtimeInputs = with pkgs; [ coreutils fd ripgrep fzf ];
runtimeInputs = with pkgs; [
coreutils
fd
ripgrep
fzf
];
text = ''
[ ! $# -eq 1 ] && echo "Usage: vipkg <nixpkgs package name>" && exit 1