From 045f5784be247da06ceefecab02be84f746419bc Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Tue, 22 Feb 2022 20:48:45 +0100 Subject: [PATCH] Unicode in status bar --- home-manager/roles/gnome.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home-manager/roles/gnome.nix b/home-manager/roles/gnome.nix index 50d7045c..e516f22a 100644 --- a/home-manager/roles/gnome.nix +++ b/home-manager/roles/gnome.nix @@ -25,7 +25,7 @@ let tryCmd x = ignoreFailure x |> captureTrim main = do - playing <- Text.intercalate " - " . fmap decodeUtf8 . filter (/= "") <$> mapM tryCmd [playerctl "status", playerctl "metadata" "title", playerctl "metadata" "artist"] + playing <- Text.replace "Stopped -" "⏹" . Text.replace "Playing -" "▶" . Text.replace "Paused -" "⏸" . Text.intercalate " - " . fmap decodeUtf8 . filter (/= "") <$> mapM tryCmd [playerctl "status", playerctl "metadata" "title", playerctl "metadata" "artist"] appointments <- Text.intercalate "; ". lines . decodeUtf8 <$> (tryCmd $ khal ["list", "-a", "Standard", "-a", "Planung", "-a", "Uni", "-a", "Maltaire", "now", "2h", "-df", ""]) mode <- getMode unread <- notmuch "count" "folder:hera/Inbox" "tag:unread" |> captureTrim