summaryrefslogtreecommitdiff
path: root/home/config/firefox
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-12-07 15:03:35 +0100
committerQuentin Aristote <quentin@aristote.fr>2021-12-07 15:03:35 +0100
commitfd01345059dcf9086716980e70a275441ab0d270 (patch)
tree8121a8cc8c4e6205fcef4c3ff9796e7eb2687345 /home/config/firefox
parent65df310cb360613777c165ff3328ac075d4b0fc0 (diff)
add videoconferencing profile to launcher and refactor code
Diffstat (limited to 'home/config/firefox')
-rw-r--r--home/config/firefox/default.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/home/config/firefox/default.nix b/home/config/firefox/default.nix
index 8397f01..6885251 100644
--- a/home/config/firefox/default.nix
+++ b/home/config/firefox/default.nix
@@ -110,6 +110,8 @@ in {
xdg.desktopEntries = let
icons = pkgs.personal.icons;
firefox-profiles-dir = "${config.home.homeDirectory}/.mozilla/firefox";
+ firefoxInProfile = profile:
+ "${pkgs.firefox}/bin/firefox --profile \"${firefox-profiles-dir}/${profile}\"";
in {
netflix = {
name = "Netflix";
@@ -117,7 +119,7 @@ in {
icon = "${icons.netflix}";
comment = "Unlimited movies, TV shows, and more.";
exec =
- "${pkgs.firefox}/bin/firefox --profile ${firefox-profiles-dir}/streaming https://www.netflix.com/fr-en/login";
+ "${firefoxInProfile "streaming"} https://www.netflix.com/fr-en/login";
categories = [ "AudioVideo" "Video" "Player" ];
};
mubi = {
@@ -125,8 +127,7 @@ in {
genericName = "Streaming service";
icon = "${icons.mubi}";
comment = "Watch hand-picked cinema.";
- exec =
- "${pkgs.firefox}/bin/firefox --profile ${firefox-profiles-dir}/streaming https://mubi.com";
+ exec = "${firefoxInProfile "streaming"} https://mubi.com";
categories = [ "AudioVideo" "Video" "Player" ];
};
deezer = {
@@ -134,9 +135,15 @@ in {
genericName = "Streaming service";
icon = "${icons.deezer}";
comment = "Listen to music online";
- exec =
- "${pkgs.firefox}/bin/firefox --profile ${firefox-profiles-dir}/streaming https://deezer.com/login";
+ exec = "${firefoxInProfile "streaming"} https://deezer.com/login";
categories = [ "AudioVideo" "Audio" "Player" "Music" ];
};
+ videoconferences = {
+ name = "Video Conferences";
+ genericName = "Video conference";
+ comment = "Use video conferencing software in a browser.";
+ exec = "${firefoxInProfile "videoconferencing"}";
+ categories = [ "Network" "VideoConference" ];
+ };
};
}