diff options
Diffstat (limited to 'modules/home-manager/hypr')
| -rw-r--r-- | modules/home-manager/hypr/waybar-hyprland.nix | 6 |
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 |
