From f68a45dfd49277bf1f645802e4e9900bf44d716b Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Fri, 17 Nov 2023 15:01:42 +0100 Subject: [PATCH] Teams: switch to Chrome webapp --- instances/odin/hm.nix | 1 - instances/thor/hm.nix | 1 - modules/hm/webapp.nix | 83 ++++++++++++++++++++----------------------- 3 files changed, 39 insertions(+), 46 deletions(-) diff --git a/instances/odin/hm.nix b/instances/odin/hm.nix index 0441b22..6bbf0d9 100644 --- a/instances/odin/hm.nix +++ b/instances/odin/hm.nix @@ -46,7 +46,6 @@ retroarchFull spotify tdesktop - teams-for-linux thunderbird transmission-gtk virt-manager diff --git a/instances/thor/hm.nix b/instances/thor/hm.nix index b7dc3e2..dd99868 100644 --- a/instances/thor/hm.nix +++ b/instances/thor/hm.nix @@ -49,7 +49,6 @@ retroarchFull spotify tdesktop - teams-for-linux thunderbird transmission-gtk virt-manager diff --git a/modules/hm/webapp.nix b/modules/hm/webapp.nix index 99473e0..f89ebb4 100644 --- a/modules/hm/webapp.nix +++ b/modules/hm/webapp.nix @@ -1,7 +1,7 @@ { pkgs, lib, ... }: # Categories: https://specifications.freedesktop.org/menu-spec/latest/apa.html#main-category-registry let - # chrome-cmd = link: "${pkgs.google-chrome}/bin/google-chrome-stable --app=${link}"; + chrome-cmd = link: "${pkgs.google-chrome}/bin/google-chrome-stable --app=${link}"; firefox-cmd = link: "firefox --new-window ${link}"; webAppBuilder = { desktopName @@ -17,79 +17,74 @@ let exec = cmd link; }; links = [ - # { - # desktopName = "Microsoft Teams"; - # link = "https://teams.microsoft.com"; - # categories = [ "Office" ]; - # } { - desktopName = "Chess.com"; link = "https://chess.com"; + desktopName = "Chess.com"; categories = [ "Game" ]; } { - desktopName = "Google Calendar"; link = "https://google.com/calendar"; + desktopName = "Google Calendar"; categories = [ "Office" ]; } { - desktopName = "Google Keep"; link = "https://keep.google.com"; + desktopName = "Google Keep"; categories = [ "Office" ]; } { - desktopName = "Google Play Books"; link = "https://play.google.com/books"; + desktopName = "Google Play Books"; categories = [ "Office" "Viewer" ]; } - # { - # desktopName = "Mendeley"; - # link = - # "https://www.mendeley.com/reference-manager/library/all-references"; - # categories = [ "Office" ]; - # } { - desktopName = "Monkeytype"; + link = "https://teams.microsoft.com"; + desktopName = "Microsoft Teams"; + categories = [ "Office" ]; + cmd = chrome-cmd; + } + { link = "https://monkeytype.com/"; + desktopName = "Monkeytype"; categories = [ "Game" ]; } { - desktopName = "Netflix"; link = "https://www.netflix.com"; + desktopName = "Netflix"; categories = [ "AudioVideo" ]; } { - desktopName = "Notion"; link = "https://notion.so"; + desktopName = "Notion"; categories = [ "Office" ]; } { - desktopName = "Prime Video"; - link = "https://primevideo.com"; - categories = [ "AudioVideo" ]; - } - { - desktopName = "Protonmail"; - link = "https://mail.protonmail.com"; - categories = [ "Office" ]; - } - { - desktopName = "Twitch"; - link = "https://www.twitch.tv"; - categories = [ "AudioVideo" ]; - } - { - desktopName = "WhatsApp"; - link = "https://web.whatsapp.com/"; - } - { - desktopName = "YouTube"; - link = "https://www.youtube.com"; - categories = [ "AudioVideo" ]; - } - { - desktopName = "Plex"; link = "https://app.plex.tv"; + desktopName = "Plex"; + categories = [ "AudioVideo" ]; + } + { + link = "https://primevideo.com"; + desktopName = "Prime Video"; + categories = [ "AudioVideo" ]; + } + { + link = "https://mail.protonmail.com"; + desktopName = "Protonmail"; + categories = [ "Office" ]; + } + { + link = "https://www.twitch.tv"; + desktopName = "Twitch"; + categories = [ "AudioVideo" ]; + } + { + link = "https://web.whatsapp.com/"; + desktopName = "WhatsApp"; + } + { + link = "https://www.youtube.com"; + desktopName = "YouTube"; categories = [ "AudioVideo" ]; } ];