From c15908f0c9ad0dbdd059d510fbd8f63e4d197f3d Mon Sep 17 00:00:00 2001 From: oddlama Date: Wed, 5 Jun 2024 00:51:56 +0200 Subject: [PATCH] feat: enable screensharing in hyprland --- config/graphical/default.nix | 5 ++++- users/myuser/graphical/discord.nix | 2 ++ users/myuser/graphical/hyprland.nix | 6 ++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/config/graphical/default.nix b/config/graphical/default.nix index 6aa1824..056ca8d 100644 --- a/config/graphical/default.nix +++ b/config/graphical/default.nix @@ -52,7 +52,10 @@ in "gnome-keyring" ]; }; - extraPortals = [pkgs.xdg-desktop-portal-gtk]; + extraPortals = [ + pkgs.xdg-desktop-portal-hyprland + pkgs.xdg-desktop-portal-gtk + ]; }; stylix = { diff --git a/users/myuser/graphical/discord.nix b/users/myuser/graphical/discord.nix index 7fec7c6..edfda68 100644 --- a/users/myuser/graphical/discord.nix +++ b/users/myuser/graphical/discord.nix @@ -1,9 +1,11 @@ {pkgs, ...}: { home.packages = with pkgs; [ discord + webcord ]; home.persistence."/state".directories = [ ".config/discord" # Bad Discord! BAD! Saves its state in .config tststs + ".config/WebCord" # You too, WebCord! ]; } diff --git a/users/myuser/graphical/hyprland.nix b/users/myuser/graphical/hyprland.nix index 43e4fcf..d7f4b22 100644 --- a/users/myuser/graphical/hyprland.nix +++ b/users/myuser/graphical/hyprland.nix @@ -108,17 +108,23 @@ general = { gaps_in = 1; gaps_out = 0; + allow_tearing = true; }; debug.disable_logs = false; misc = { + vfr = 1; + vrr = 1; disable_hyprland_logo = true; mouse_move_focuses_monitor = false; }; }; extraConfig = + # TODO: env = WLR_DRM_NO_ATOMIC,1 '' + windowrulev2 = immediate, class:^(cs2)$ + binds { focus_preferred_method = 1 }