diff --git a/modules/system/security/firejail/default.nix b/modules/system/security/firejail/default.nix index 35e3fb0..3daafbc 100644 --- a/modules/system/security/firejail/default.nix +++ b/modules/system/security/firejail/default.nix @@ -13,18 +13,26 @@ in { environment.systemPackages = with pkgs; [ firejail ]; programs.firejail.enable = true; programs.firejail.wrappedBinaries = { - #prismlauncher = { - # executable = "${pkgs.prismlauncher}/bin/prismlauncher"; - # profile = ./firejail-profiles/prismlauncher.profile; - #}; - #steam = { - # executable = "${pkgs.steam}/bin/steam"; - # profile = "${pkgs.firejail}/etc/firejail/steam.profile"; - #}; - #steam-run = { - # executable = "${pkgs.steam}/bin/steam-run"; - # profile = "${pkgs.firejail}/etc/firejail/steam.profile"; - #}; + brave = { + executable = "${pkgs.brave}/bin/brave"; + profile = "${pkgs.firejail}/etc/firejail/brave.profile"; + }; + discord = { + executable = "${pkgs.discord}/bin/discord"; + profile = "${pkgs.firejail}/etc/firejail/discord.profile"; + }; + prismlauncher = { + executable = "${pkgs.prismlauncher}/bin/prismlauncher"; + profile = ./firejail-profiles/prismlauncher.profile; + }; + steam = { + executable = "${pkgs.steam}/bin/steam"; + profile = "${pkgs.firejail}/etc/firejail/steam.profile"; + }; + steam-run = { + executable = "${pkgs.steam}/bin/steam-run"; + profile = "${pkgs.firejail}/etc/firejail/steam.profile"; + }; }; }; } diff --git a/modules/user/hyprland/default.nix b/modules/user/hyprland/default.nix index 9ff3170..89efe6f 100644 --- a/modules/user/hyprland/default.nix +++ b/modules/user/hyprland/default.nix @@ -115,6 +115,7 @@ in "alacritty --class scratch_numbat -e numbat" "alacritty --class scratch_btm -e btm" "element-desktop" + "zulip" "sleep 5 && hyprctl keyword bind SUPER,S,exec,${spawnBrowser}" ]; @@ -286,8 +287,10 @@ in "SUPER,N,togglespecialworkspace,scratch_numbat" ''SUPER,B,exec,if hyprctl clients | grep scratch_btm; then echo "scratch_yazi respawn not needed"; else alacritty --class scratch_btm -e btm; fi'' "SUPER,B,togglespecialworkspace,scratch_btm" - ''SUPER,D,exec,if hyprctl clients | grep Element; then echo "scratch_yazi respawn not needed"; else element-desktop; fi'' - "SUPER,D,togglespecialworkspace,scratch_element" + ''SUPER,D,exec,if hyprctl clients | grep Element; then echo "scratch_chat respawn not needed"; else element-desktop; fi'' + ''SUPER,D,exec,if hyprctl clients | grep Zulip; then echo "scratch_chat respawn not needed"; else zulip; fi'' + ''SUPER,D,exec,if hyprctl clients | grep discord; then echo "scratch_chat respawn not needed"; else discord; fi'' + "SUPER,D,togglespecialworkspace,scratch_chat" ''SUPER,equal, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | grep float | awk '{print $2 + 0.5}')"'' ''SUPER,minus, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | grep float | awk '{print $2 - 0.5}')"'' "SUPER,I,exec,networkmanager_dmenu" @@ -347,8 +350,16 @@ in "center,class:^(scratch_btm)$" "float,class:^(Element)$" "size 85% 90%,class:^(Element)$" - "workspace special:scratch_element silent,class:^(Element)$" + "workspace special:scratch_chat silent,class:^(Element)$" "center,class:^(Element)$" + "float,class:^(Zulip)$" + "size 85% 90%,class:^(Zulip)$" + "workspace special:scratch_chat silent,class:^(Zulip)$" + "center,class:^(Zulip)$" + "float,class:^(discord)$" + "size 85% 90%,class:^(discord)$" + "workspace special:scratch_chat silent,class:^(discord)$" + "center,class:^(discord)$" "float,title:^(Save to Disk)$" "size 70% 75%,title:^(Save to Disk)$" "center,title:^(Save to Disk)$" @@ -381,6 +392,8 @@ in "opacity 0.80,class:^(org.pulseaudio.pavucontrol)$" "opacity 1.0,class:^(org.qutebrowser.qutebrowser),fullscreen:1" "opacity 0.85,class:^(Element)$" + "opacity 0.85,class:^(Zulip)$" + "opacity 0.85,class:^(discord)$" "opacity 0.85,class:^(Logseq)$" "opacity 1.0,class:^(Brave-browser),fullscreen:1" "opacity 1.0,class:^(librewolf),fullscreen:1" diff --git a/modules/user/office/default.nix b/modules/user/office/default.nix index a9922d0..68658e1 100644 --- a/modules/user/office/default.nix +++ b/modules/user/office/default.nix @@ -21,6 +21,8 @@ in { gnome-maps seahorse element-desktop + zulip + discord openvpn pomodoro-gtk ];