nixos/home/desktop/lib/to_capital.nix
Evie Litherland-Smith 9cbf319189 Move GTK settings to sway/default.nix
Set icon theme using plasma-manager tools instead. Avoids conflict
completely with Plasma trying to overwrite GTK config files.

Move toCapital function to own file.
2024-07-11 09:41:48 +01:00

12 lines
288 B
Nix

lib: string:
with lib; let
chars = let
lc = strings.splitString "" string;
in (lists.sublist 1 (lists.length lc - 2) lc);
in (
strings.concatStringsSep "" (
(lists.singleton (strings.toUpper (lists.elemAt chars 0)))
++ (lists.sublist 1 (lists.length chars) chars)
)
)