From 550110708e6c264a373eca128432eb0155dd3254 Mon Sep 17 00:00:00 2001 From: Frost-Phoenix <67cyril6767@gmail.com> Date: Sat, 22 Jun 2024 21:22:40 +0200 Subject: [PATCH] add vesktop --- modules/core/wayland.nix | 4 ++++ modules/home/discord.nix | 3 ++- modules/home/hyprland/config.nix | 11 +++++++++-- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/modules/core/wayland.nix b/modules/core/wayland.nix index 6e158fd..4a39cf8 100644 --- a/modules/core/wayland.nix +++ b/modules/core/wayland.nix @@ -10,4 +10,8 @@ pkgs.xdg-desktop-portal-gtk ]; }; + + environment.systemPackages = with pkgs; [ + xwaylandvideobridge + ]; } diff --git a/modules/home/discord.nix b/modules/home/discord.nix index 6f783b6..ca62843 100644 --- a/modules/home/discord.nix +++ b/modules/home/discord.nix @@ -2,11 +2,12 @@ { home.packages = with pkgs; [ discord + vesktop # (discord.override { # withVencord = true; # }) ]; - xdg.configFile."Vencord/themes/custom.css".text = '' + xdg.configFile."vesktop/themes/custom.css".text = '' /** * @name Catppuccin Mocha * @author winston#0001 diff --git a/modules/home/hyprland/config.nix b/modules/home/hyprland/config.nix index a0a1be3..ba0d53a 100644 --- a/modules/home/hyprland/config.nix +++ b/modules/home/hyprland/config.nix @@ -7,7 +7,8 @@ exec-once = [ "systemctl --user import-environment &" "hash dbus-update-activation-environment 2>/dev/null &" - "dbus-update-activation-environment --systemd &" + # "dbus-update-activation-environment --systemd &" + "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &" "nm-applet &" "wl-clip-persist --clipboard both" "swaybg -m fill -i $(find ~/Pictures/wallpapers/ -maxdepth 1 -type f) &" @@ -138,7 +139,7 @@ "$mainMod SHIFT, F, fullscreen, 1" "$mainMod, Space, togglefloating," "$mainMod, D, exec, pkill wofi || wofi --show drun" - "$mainMod SHIFT, D, exec, hyprctl dispatch exec '[workspace 4 silent] discord'" + "$mainMod SHIFT, D, exec, hyprctl dispatch exec '[workspace 4 silent] vesktop'" "$mainMod SHIFT, S, exec, hyprctl dispatch exec '[workspace 5 silent] SoundWireServer'" "$mainMod, Escape, exec, swaylock" "$mainMod SHIFT, Escape, exec, shutdown-script" @@ -280,6 +281,12 @@ "float,title:^(branchdialog)$" "float,title:^(Confirm to replace files)$" "float,title:^(File Operation Progress)$" + + "opacity 0.0 override,class:^(xwaylandvideobridge)$" + "noanim,class:^(xwaylandvideobridge)$" + "noinitialfocus,class:^(xwaylandvideobridge)$" + "maxsize 1 1,class:^(xwaylandvideobridge)$" + "noblur,class:^(xwaylandvideobridge)$" ]; };