sway: xdg-portal fixup change behaviour of swayidle

This commit is contained in:
Kabbone 2022-11-03 16:15:33 +01:00
parent 3465fc5f17
commit 7c8d55c805
2 changed files with 5 additions and 3 deletions

View File

@ -61,7 +61,8 @@
security.pam.services.swaylock = {};
xdg.portal = { # Required for flatpak with windowmanagers
#enable = true;
enable = true;
wlr.enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
}

View File

@ -85,6 +85,7 @@
{ command = "gsettings set org.gnome.desktop.interface gtk-theme Arc"; }
{ command = "gsettings set org.gnome.desktop.interface icon-theme ePapirus"; }
{ command = "gsettings set org.gnome.desktop.interface cursor-theme Adwaita"; }
#{ command = "exec ${pkgs.networkmanagerapplet}/bin/nm-applet --indicator"; }
#{ command = "${pkgs.thunderbird}/bin/thunderbird"; }
#{ command = "${pkgs.firefox}/bin/firefox"; }
#{ command = "${pkgs.element}/bin/element-desktop"; }
@ -253,8 +254,8 @@
{ event = "unlock"; command = "${pkgs.sway}/bin/swaymsg output * dpms on"; }
];
timeouts = [
{ timeout = 300; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
{ timeout = 600; command = "${pkgs.sway}/bin/swaymsg output * dpms off"; resumeCommand = "${pkgs.sway}/bin/swaymsg output * dpms on"; }
{ timeout = 600; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
{ timeout = 300; command = "${pkgs.sway}/bin/swaymsg output * dpms off"; resumeCommand = "${pkgs.sway}/bin/swaymsg output * dpms on"; }
];
};
}