adding firefox with pwa support
This commit is contained in:
@@ -39,8 +39,15 @@ in {
|
|||||||
(config.lib.nixGL.wrap ghostty)
|
(config.lib.nixGL.wrap ghostty)
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
jellyfin-tui
|
jellyfin-tui
|
||||||
|
firefoxpwa
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.firefox = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.firefox;
|
||||||
|
nativeMessagingHosts = [ pkgs.firefoxpwa ];
|
||||||
|
};
|
||||||
|
|
||||||
programs.direnv = {
|
programs.direnv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
@@ -211,20 +218,38 @@ k9s:
|
|||||||
namespace:
|
namespace:
|
||||||
lockFavorites: false'';
|
lockFavorites: false'';
|
||||||
|
|
||||||
".local/share/applications/teams.desktop".text = ''#!/usr/bin/env xdg-open
|
".local/share/applications/firefox.desktop".text = ''[Desktop Entry]
|
||||||
[Desktop Entry]
|
Version=1.0
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Teams
|
Name=Firefox
|
||||||
Exec=flatpak 'run' '--command=brave' 'com.brave.Browser' '--profile-directory=Default' '--app-id=cifhbcnohmdccbgoicgdjpfamggdegmo'
|
Comment=Browse the Web
|
||||||
# on other computer...
|
Exec=firefox %u
|
||||||
# Exec=flatpak 'run' '--command=brave' 'com.brave.Browser' '--profile-directory=Default' '--app="https://teams.microsoft.com/v2/"'
|
Icon=firefox
|
||||||
Keywords=teams;microsoft;chat;
|
Terminal=false
|
||||||
Icon=brave-cifhbcnohmdccbgoicgdjpfamggdegmo-Default
|
Categories=Network;WebBrowser;
|
||||||
NoDisplay=false
|
MimeType=x-scheme-handler/http;x-scheme-handler/https;text/html;
|
||||||
SingleMainWindow=true
|
StartupWMClass=firefox
|
||||||
StartupWMClass=crx_cifhbcnohmdccbgoicgdjpfamggdegmo
|
Actions=new-window;new-private-window;
|
||||||
X-Flatpak-Part-Of=com.brave.Browser
|
|
||||||
TryExec=/home/alexm/.local/share/flatpak/exports/bin/com.brave.Browser'';
|
[Desktop Action new-window]
|
||||||
|
Name=Open a New Window
|
||||||
|
Exec=firefox --new-window
|
||||||
|
|
||||||
|
[Desktop Action new-private-window]
|
||||||
|
Name=Open a New Private Window
|
||||||
|
Exec=firefox --private-window
|
||||||
|
'';
|
||||||
|
|
||||||
|
".local/share/applications/teams.desktop".text = ''[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Type=Application
|
||||||
|
Name=Microsoft Teams (Web)
|
||||||
|
Comment=Launch Microsoft Teams in Firefox
|
||||||
|
Exec=firefox --new-window https://teams.microsoft.com
|
||||||
|
Icon=teams
|
||||||
|
Terminal=false
|
||||||
|
Categories=Network;WebBrowser;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
|
|||||||
Reference in New Issue
Block a user