From 630ed48d46f20c2719483787d9946aa557c8a538 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 17 Jan 2023 09:50:32 -0600 Subject: [PATCH] pam, mpv, hyprland changes --- modules/desktop.nix | 7 ++++++- mpv/mpv.conf | 2 +- pkgs/desktop-packages.nix | 2 +- user/modules/hyprland.nix | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/modules/desktop.nix b/modules/desktop.nix index e5961ba..e5f01bc 100644 --- a/modules/desktop.nix +++ b/modules/desktop.nix @@ -68,7 +68,12 @@ with lib; name = "kwallet"; enableKwallet = true; }; - security.pam.services.sddm.enableKwallet = true; + + security.pam.services = { + sddm.enableKwallet = true; + greetd.enableKwallet = true; + swaylock = {}; + }; services.greetd = { enable = true; diff --git a/mpv/mpv.conf b/mpv/mpv.conf index 39671a0..4214af9 100644 --- a/mpv/mpv.conf +++ b/mpv/mpv.conf @@ -3,7 +3,7 @@ osc=no vo=gpu af=scaletempo2 # autofit=2800x1800 -autofit=4000X2400 +autofit=4000x3400 geometry=50%:50% # input-ipc-server="/tmp/mpvsocket" hwdec=auto diff --git a/pkgs/desktop-packages.nix b/pkgs/desktop-packages.nix index 2cffef9..bd5c57e 100644 --- a/pkgs/desktop-packages.nix +++ b/pkgs/desktop-packages.nix @@ -50,7 +50,7 @@ with lib; eww-wayland wlrctl hyprpaper - swaylock-fancy + swaylock-effects swayidle aha glxinfo diff --git a/user/modules/hyprland.nix b/user/modules/hyprland.nix index f358e19..b8dc38b 100644 --- a/user/modules/hyprland.nix +++ b/user/modules/hyprland.nix @@ -210,7 +210,7 @@ exec-once = dbus-update-activation-environment --systemd --all exec-once = jellyfin-mpv-shim exec-once = hyprctl setcursor phinger-cursors-light - exec-once = swayidle -w timeout 600 "swaylock-fancy -t Password: -f 'VictorMono Nerd Font' -F" timeout 1200 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep "swaylock-fancy -t Password: -f 'VictorMono Nerd Font' -F" + exec-once = swayidle -w timeout 300 'swaylock -S --effect-blur 20x3 --fade-in 1 --effect-vignette 0.5:1 --grace 60' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -S --effect-blur 20x3 --effect-vignette 0.5:1' ''; }; }