fix locking and screen sharing
This commit is contained in:
parent
e831ca5f0a
commit
f02e292b01
2 changed files with 40 additions and 18 deletions
|
|
@ -6,10 +6,6 @@ inputs: {
|
|||
}:
|
||||
with lib; let
|
||||
cfg = config.ezpcusr;
|
||||
|
||||
lockCommand = pkgs.writeShellScript "lock.sh" ''
|
||||
exec ${pkgs.swaylock}/bin/swaylock -f
|
||||
'';
|
||||
in {
|
||||
options.ezpcusr = {
|
||||
enable = mkEnableOption "Enable simple PC user config";
|
||||
|
|
@ -58,7 +54,7 @@ in {
|
|||
|
||||
settings = {
|
||||
general = {
|
||||
lock_cmd = "pidof hyprlock || hyporlock";
|
||||
lock_cmd = "pidof hyprlock || hyprlock";
|
||||
before_sleep_cmd = "loginctl lock-session";
|
||||
after_sleep_cmd = "hyperctl dispatch dpms on";
|
||||
};
|
||||
|
|
@ -76,7 +72,34 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
programs.hyprlock.enable = true;
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
hide_cursor = true;
|
||||
};
|
||||
|
||||
animations = {
|
||||
enabled = true;
|
||||
fade_in = {
|
||||
duration = 300;
|
||||
bezier = "easeOutQuint";
|
||||
};
|
||||
fade_out = {
|
||||
duration = 300;
|
||||
bezier = "easeOutQuint";
|
||||
};
|
||||
};
|
||||
|
||||
background = lib.mkForce [
|
||||
{
|
||||
path = "screenshot";
|
||||
blur_passes = 3;
|
||||
blur_size = 8;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
|
|
@ -96,17 +119,11 @@ in {
|
|||
no_gaps_when_only = 1;
|
||||
};
|
||||
layerrule = [
|
||||
"ignorealpha 0.1, ashell-main-layer"
|
||||
"blur, ashell-main-layer"
|
||||
|
||||
"blur, bar-.*"
|
||||
"ignorealpha 0.1, bar-.*"
|
||||
"blur, .*menu"
|
||||
"ignorealpha 0.1, .*menu"
|
||||
"blur, notifications-window"
|
||||
"ignorealpha 0.1, notifications-window"
|
||||
"blur, indicator"
|
||||
"ignorealpha 0.1, indicator"
|
||||
"ignorezero, bar-.*"
|
||||
# "blur, notifications-window"
|
||||
# "blur, indicator"
|
||||
# "ignorezero, indicator"
|
||||
];
|
||||
ecosystem = {
|
||||
no_update_news = true;
|
||||
|
|
@ -289,8 +306,8 @@ in {
|
|||
|
||||
theme = {
|
||||
font.weight = 100;
|
||||
osd.opacity = 60;
|
||||
notification.opacity = 60;
|
||||
# osd.opacity = 60;
|
||||
# notification.opacity = 60;
|
||||
bar = {
|
||||
transparent = true;
|
||||
outer_spacing = "0";
|
||||
|
|
|
|||
|
|
@ -12,6 +12,11 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
xdg.portal = {
|
||||
enable = lib.mkDefault true;
|
||||
xdgOpenUsePortal = true;
|
||||
config = {
|
||||
common.default = ["gtk"];
|
||||
hyprland.default = ["gtk" "hyprland"];
|
||||
};
|
||||
};
|
||||
|
||||
programs.hyprland.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue