From dc084edd94bd7ba51df3e8f1f2a7487e3adaf15b Mon Sep 17 00:00:00 2001 From: Kabbone Date: Sun, 16 Oct 2022 22:21:48 +0200 Subject: [PATCH] add some packages and configure screen sharing --- hosts/configuration.nix | 2 ++ modules/desktop/hyprland/default.nix | 8 +++++--- modules/desktop/hyprland/home.nix | 6 ++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/hosts/configuration.nix b/hosts/configuration.nix index b408bdd..0629f53 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -84,6 +84,8 @@ usbutils wget powertop + cpufrequtils + lm_sensors ]; }; diff --git a/modules/desktop/hyprland/default.nix b/modules/desktop/hyprland/default.nix index 4963454..09ad1ce 100644 --- a/modules/desktop/hyprland/default.nix +++ b/modules/desktop/hyprland/default.nix @@ -35,7 +35,7 @@ LIBVA_DRIVER_NAME = "iHD"; VDPAU_DRIVER = "iHD"; XDG_SESSION_TYPE = "wayland"; - XDG_CURRENT_DESKTOP = "sway"; + XDG_CURRENT_DESKTOP = "Unity"; #QT_QPA_PLATFORMTHEME = "wayland-egl"; GST_VAAPI_ALL_DRIVERS = "1"; GTK_THEME = "Arc"; @@ -47,6 +47,8 @@ xdg-desktop-portal-wlr swaylock swayidle + slurp + grim ]; }; @@ -57,7 +59,7 @@ security.pam.services.swaylock = {}; xdg.portal = { # Required for flatpak with windowmanagers - enable = true; - extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; + #enable = true; + wlr.enable = true; }; } diff --git a/modules/desktop/hyprland/home.nix b/modules/desktop/hyprland/home.nix index 6e65035..6d12913 100644 --- a/modules/desktop/hyprland/home.nix +++ b/modules/desktop/hyprland/home.nix @@ -41,10 +41,14 @@ fullscreen_opacity=1 blur=false drop_shadow=false + blur_new_optimizations=true } animations { enabled=true } + misc { + no_vfr=false + } input { kb_layout=us follow_mouse=1 @@ -114,6 +118,8 @@ exec-once=${pkgs.waybar}/bin/waybar exec-once=${pkgs.blueman}/bin/blueman-applet exec-once=${pkgs.swayidle}/bin/swayidle -w timeout 600 "${pkgs.swaylock}/bin/swaylock -f" timeout 300 "${pkgs.hyprland}/bin/hyprctl dispatch dpms off" resume "${pkgs.hyprland}/bin/hyprctl dispatch dpms on" before-sleep "${pkgs.swaylock}/bin/swaylock -f" + exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP + exec-once=systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP ''; }; programs.swaylock.settings = {