summaryrefslogtreecommitdiff
path: root/modules/home-manager/hypr/waybar-hyprland.nix
diff options
context:
space:
mode:
authorscouckel <james.krinsky@gmail.com>2026-03-10 01:38:38 -0500
committerscouckel <james.krinsky@gmail.com>2026-03-10 01:38:38 -0500
commit7d441dadf096b3152e5a0973f486b79a28f654ce (patch)
tree11592d983611885c5646f35fac4d60825113806f /modules/home-manager/hypr/waybar-hyprland.nix
parenta88ea2380f4bd5845bc3b035a0a8bbfee42f4292 (diff)
vecna up to date + update
Diffstat (limited to 'modules/home-manager/hypr/waybar-hyprland.nix')
-rw-r--r--modules/home-manager/hypr/waybar-hyprland.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/home-manager/hypr/waybar-hyprland.nix b/modules/home-manager/hypr/waybar-hyprland.nix
index ebbae3a..eed22c6 100644
--- a/modules/home-manager/hypr/waybar-hyprland.nix
+++ b/modules/home-manager/hypr/waybar-hyprland.nix
@@ -64,12 +64,12 @@
on-scroll-down = "playerctl --player=,Feishin previous";
exec = "${pkgs.writeShellScriptBin "feishin-module-script" ''
shorten() {
- if [ ''${#1} -le 12 ]; then
+ if [ ''${#1} -le 24 ]; then
printf "%s" "$1"
else
- local truncated="''${1:0:9}"
+ local truncated="''${1:0:21}"
if [ "''${truncated: -1}" = " " ]; then
- truncated="''${truncated:0:8}"
+ truncated="''${truncated:0:20}"
fi
printf "%s…" "$truncated"
fi