add(hyprlock): random-text

This commit is contained in:
kenji
2026-01-01 17:07:24 -06:00
parent a85014188f
commit 237a7996f5
3 changed files with 20 additions and 0 deletions
+1
View File
@@ -8,6 +8,7 @@
in {
imports = [
./scripts/typewriter.nix
./scripts/random-text.nix
];
programs.hyprlock = {
enable = true;
+8
View File
@@ -1,6 +1,14 @@
{pkgs, ...}: let
hakase-hyprlock-text-generator = pkgs.writeShellScriptBin "hakase-hyprlock-text-generator" ''
hour=$(date +%H)
if [[ $hour -lt 12 ]]; then
echo ""
elif [[ $hour -lt 18 ]]; then
echo ""
else
echo ""
fi
'';
in {
home.packages = [
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
hour=$(date +%H)
if [[ $hour -lt 12 ]]; then
echo "おはようございます"
elif [[ $hour -lt 18 ]]; then
echo "こんにちは"
else
echo "こんばんは"
fi