From 079b242b93ede06ce1128210ddea0ee2972a4fbf Mon Sep 17 00:00:00 2001 From: Jakub Trzeciak Date: Wed, 20 Sep 2023 22:33:31 +0200 Subject: Flake and css --- build.sh | 9 +++++++++ flake.lock | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 24 +++++++++++++++++++++++ lux-theme.css | 26 +++++++++++++++++++++++++ makefile | 3 +++ 5 files changed, 123 insertions(+) create mode 100755 build.sh create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 lux-theme.css diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..5780178 --- /dev/null +++ b/build.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env dash + +echo ":root {" > lux-theme.css + +cat lux-theme.yaml \ + | sed 's/\s*#.*//;/author/d;/scheme/d;/^$/d' \ + | sed 's/"$/\;/;s/"/#/;s/base/ --fuck-/' >> lux-theme.css + +echo "}" >> lux-theme.css diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..0dc6453 --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1694529238, + "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1694948089, + "narHash": "sha256-d2B282GmQ9o8klc22/Rbbbj6r99EnELQpOQjWMyv0rU=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "5148520bfab61f99fd25fb9ff7bfbb50dad3c9db", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..8550f33 --- /dev/null +++ b/flake.nix @@ -0,0 +1,24 @@ +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { + self, + nixpkgs, + flake-utils, + ... + } @ inputs: flake-utils.lib.eachDefaultSystem ( + system: let + pkgs = import nixpkgs {inherit system;}; + in { + devShells.default = pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + dash + dasel + ]; + }; + } + ); +} diff --git a/lux-theme.css b/lux-theme.css new file mode 100644 index 0000000..8d6f808 --- /dev/null +++ b/lux-theme.css @@ -0,0 +1,26 @@ +:root { + --fuck-00: #181926; + --fuck-01: #232434; + --fuck-02: #383949; + --fuck-03: #4a4d5c; + --fuck-04: #9ca7b2; + --fuck-05: #bcc2c3; + --fuck-06: #eceadd; + --fuck-07: #f1f1f1; + --fuck-08: #e32929; + --fuck-09: #ff920d; + --fuck-0A: #bdcc27; + --fuck-0B: #11c842; + --fuck-0C: #55c8b9; + --fuck-0D: #1984db; + --fuck-0E: #af18db; + --fuck-0F: #9d4e0e; + --fuck-10: #202031; + --fuck-11: #090618; + --fuck-12: #d94545; + --fuck-13: #bac455; + --fuck-14: #50c76f; + --fuck-15: #61b5aa; + --fuck-16: #609aca; + --fuck-17: #ba5ac9; +} diff --git a/makefile b/makefile index 1b3f083..2b8dc74 100644 --- a/makefile +++ b/makefile @@ -1,2 +1,5 @@ +build: + ./build.sh + scale: ffmpeg -i banner-small.png -vf scale="iw*10:-1:flags=neighbor" banner.png -- cgit v1.2.3