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:
@@ -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 { };
|
||||
}
|
||||
|
||||
@@ -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)"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, }:
|
||||
{ pkgs }:
|
||||
pkgs.writeShellApplication {
|
||||
name = "runbg";
|
||||
runtimeInputs = with pkgs; [
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user