From: Skullheadx Date: Wed, 29 Apr 2026 21:33:13 +0000 (-0400) Subject: scripts dir X-Git-Url: http://git.skullheadx.com/nixos/static/gitweb.css?a=commitdiff_plain;h=63dacf13def241461cdbadde012751d62551cb31;p=nixos.git scripts dir --- diff --git a/configuration.nix b/configuration.nix index cf9c76e..ea3ac6e 100644 --- a/configuration.nix +++ b/configuration.nix @@ -50,6 +50,7 @@ exec ${pkgs.nvi}/bin/vi "$@" ''; }) + neovim wget git @@ -66,9 +67,11 @@ xdotool gcc slstatus + scrolling-title surf terminus_font terminus_font_ttf + ]; programs.git = { diff --git a/flake.lock b/flake.lock index 0c75e07..ee28f4b 100644 --- a/flake.lock +++ b/flake.lock @@ -28,11 +28,11 @@ ] }, "locked": { - "lastModified": 1777454369, - "narHash": "sha256-inaQz2ijnGAGCYCVUN8u09KkNujPSRdU2+ikcL4gW5Q=", + "lastModified": 1777494424, + "narHash": "sha256-2cLtUE+vHQcAf8C9T6UGl1VLNFsHqxlBLcv/q6kXJCk=", "owner": "Skullheadx", "repo": "dwm", - "rev": "230d4c1552be9378e16cd1b14daff57ad1e00b19", + "rev": "07b18fb47183244401c4389e469d6a249ac282ab", "type": "github" }, "original": { @@ -48,11 +48,11 @@ ] }, "locked": { - "lastModified": 1777453951, - "narHash": "sha256-ZMtKdkzIFFkruKhbkIi+6snBIyhsUETYqIA3LoQFXwQ=", + "lastModified": 1777498357, + "narHash": "sha256-Ij9dCS37935ieuSk67KtU+7pp9YVr6M3s5IhVkRd1Q0=", "owner": "Skullheadx", "repo": "slstatus", - "rev": "88af0b1eab66ff753004e55b549764f9cfa1af6c", + "rev": "efd7e7de9197b0136b0f9a011e6a78d792991168", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index dc838ff..81cdfa6 100644 --- a/flake.nix +++ b/flake.nix @@ -17,13 +17,13 @@ url = "github:Skullheadx/surf"; inputs.nixpkgs.follows = "nixpkgs"; }; - + my-dwm = { url = "github:Skullheadx/dwm"; inputs.nixpkgs.follows = "nixpkgs"; }; - my-st = { + my-st = { url = "github:Skullheadx/st"; inputs.nixpkgs.follows = "nixpkgs"; }; diff --git a/overlays.nix b/overlays.nix index a5b6c3a..0cd01f1 100644 --- a/overlays.nix +++ b/overlays.nix @@ -2,7 +2,10 @@ { nixpkgs.overlays = [ (final: prev: { - lock-screen = import ./lock-screen.nix { pkgs = prev; }; + lock-screen = import ./scripts/lock-screen.nix { pkgs = prev; }; + }) + (final: prev: { + scrolling-title = import ./scripts/scrolling-title.nix { pkgs = prev; }; }) (final: prev: { slstatus = inputs.my-slstatus.packages.${pkgs.stdenv.hostPlatform.system}.default; diff --git a/lock-screen.nix b/scripts/lock-screen.nix similarity index 100% rename from lock-screen.nix rename to scripts/lock-screen.nix diff --git a/scripts/scrolling-title.nix b/scripts/scrolling-title.nix new file mode 100644 index 0000000..0bafa1b --- /dev/null +++ b/scripts/scrolling-title.nix @@ -0,0 +1,24 @@ +{ pkgs }: +pkgs.writeShellApplication { + name = "scrolling-title"; + runtimeInputs = with pkgs; [ mpc coreutils ]; + text = '' + WIDTH=16 + PADDING=" " + + RAW_STR=$(mpc current) + + if [ -z "$RAW_STR" ]; then + echo "Stopped" + exit 0 + fi + + STR="$RAW_STR$PADDING" + LEN=''${#STR} + + T=$(date +%s) + INDEX=$(( T % LEN )) + + # Output the scrolled window + echo "$STR$STR" | cut -c "$((INDEX + 1))-$((INDEX + WIDTH))"''; +} diff --git a/x11.nix b/x11.nix index cd2d10d..2648bf8 100644 --- a/x11.nix +++ b/x11.nix @@ -49,7 +49,6 @@ ''; }; - services.picom = { enable = true; };