add(hyprlock): use no animation

This commit is contained in:
kenji
2026-01-01 17:31:50 -06:00
parent 237a7996f5
commit 7bdc88389b
3 changed files with 26 additions and 17 deletions
+11 -11
View File
@@ -30,6 +30,17 @@ in {
vibrancy = 0.2
}
# Typewriter greeting (above clock)
label {
monitor = DP-1
text = cmd[update:1000] hakase-hyprlock-text-generator
color = $on_surface_variant
font_size = 120
font_family = ${clockFont} Bold
position = 0, 480
halign = center
valign = center
}
# Hours (top)
label {
@@ -105,17 +116,6 @@ in {
fail_transition = 300
}
# Typewriter greeting (above clock)
label {
monitor =
text = cmd[update:50] hakase-hyprlock-typewriter 'They do be like that, huh?'
color = $on_surface_variant
font_size = 24
font_family = ${clockFont} Bold
position = 0, 200
halign = center
valign = center
}
'';
};
+7 -3
View File
@@ -1,16 +1,20 @@
{pkgs, ...}: let
hakase-hyprlock-text-generator = pkgs.writeShellScriptBin "hakase-hyprlock-text-generator" ''
hour=$(date +%H)
name="$USER"
if [[ $hour -lt 12 ]]; then
echo ""
greeting=""
elif [[ $hour -lt 18 ]]; then
echo ""
greeting=""
else
echo ""
greeting=""
fi
echo "$greeting"
'';
in {
home.packages = [
hakase-hyprlock-text-generator
];
}
+8 -3
View File
@@ -1,11 +1,16 @@
#!/usr/bin/env bash
hour=$(date +%H)
# TODO(human): Set your name here
name="kenji"
if [[ $hour -lt 12 ]]; then
echo "おはようございます"
greeting="おはようございます"
elif [[ $hour -lt 18 ]]; then
echo "こんにちは"
greeting="こんにちは"
else
echo "こんばんは"
greeting="こんばんは"
fi
echo "$greeting
$name様"