diff --git a/system/desktop.nix b/system/desktop.nix index 8319bf41..2ab8fda6 100644 --- a/system/desktop.nix +++ b/system/desktop.nix @@ -28,7 +28,6 @@ hunspellDicts.en_GB-large wl-clipboard proton-pass - protonmail-bridge-gui hyprpicker grim slurp diff --git a/system/home/hyprland.nix b/system/home/hyprland.nix index 72024151..fe98be1e 100644 --- a/system/home/hyprland.nix +++ b/system/home/hyprland.nix @@ -14,6 +14,13 @@ ./avizo.nix ./wlogout.nix ]; + home.packages = [ + (pkgs.writeShellScriptBin "protonmail-setup-bridge" '' + pkill -9 -f protonmail-bridge + PASSWORD_STORE_DIR=/dev/null ${pkgs.protonmail-bridge}/bin/protonmail-bridge -c + ${config.wayland.windowManager.hyprland.finalPackage}/bin/hyprctl dispatch exec "PASSWORD_STORE_DIR=/dev/null ${pkgs.protonmail-bridge}/bin/protonmail-bridge -n" + '') + ]; stylix.targets.hyprlock.enable = false; # TODO maybe re-enable once I've checked what it does services = { kanshi.systemdTarget = "hyprland-session.target"; @@ -156,6 +163,7 @@ "systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORMTHEME" "${config.wayland.windowManager.hyprland.finalPackage}/bin/hyprctl setcursor ${config.gtk.cursorTheme.name} ${toString config.gtk.cursorTheme.size}" "${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1" + "PASSWORD_STORE_DIR=/dev/null ${pkgs.protonmail-bridge}/bin/protonmail-bridge -n" "${pkgs.dex}/bin/dex -a" ]; gestures.workspace_swipe = true;