fix(screensaver): line increase to prevent branding from moving after the effect is finished
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
home.packages = [
|
home.packages = [
|
||||||
|
# TODO: will rewrite later
|
||||||
(pkgs.writeShellScriptBin "tte-loop" ''
|
(pkgs.writeShellScriptBin "tte-loop" ''
|
||||||
trap 'printf "\e[?25h"; exit 0' INT
|
trap 'printf "\e[?25h"; exit 0' INT
|
||||||
printf '\e[?25l'
|
printf '\e[?25l'
|
||||||
@@ -14,7 +15,7 @@
|
|||||||
lines=$(tput lines)
|
lines=$(tput lines)
|
||||||
effect="''${effects[RANDOM % ''${#effects[@]}]}"
|
effect="''${effects[RANDOM % ''${#effects[@]}]}"
|
||||||
printf '\e[?25l'
|
printf '\e[?25l'
|
||||||
${pkgs.terminaltexteffects}/bin/tte --input-file ${config.home.homeDirectory}/.config/nixos/assets/branding.txt --anchor-canvas c --anchor-text c --canvas-width "$cols" --canvas-height "$((lines-1))" --frame-rate 120 "$effect"
|
${pkgs.terminaltexteffects}/bin/tte --input-file ${config.home.homeDirectory}/.config/nixos/assets/branding.txt --anchor-canvas c --anchor-text c --canvas-width "$cols" --canvas-height "$((lines-2))" --frame-rate 120 "$effect"
|
||||||
printf '\e[?25l'
|
printf '\e[?25l'
|
||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user