sway configuration

This commit is contained in:
Markus Heurung 2024-05-20 17:37:28 +02:00
parent a42ed7e30f
commit 4592d78501
2 changed files with 36 additions and 1 deletions

View file

@ -381,6 +381,20 @@
playerctld.enable = true; playerctld.enable = true;
swayidle = { swayidle = {
enable = true; enable = true;
events = [
{ event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
];
timeouts = [
{
timeout = 300;
command = "${pkgs.swaylock}/bin/swaylock -fF";
}
{
timeout = 330;
command = "${pkgs.sway}/bin/swaymsg 'output * dpms off'";
resumeCommand = "${pkgs.sway}/bin/swaymsg 'output * dpms on'";
}
];
}; };
syncthing = { syncthing = {
enable = true; enable = true;
@ -408,6 +422,10 @@
enable = true; enable = true;
config = { config = {
gaps = { gaps = {
inner = 50;
vertical = 100;
horizontal = 600;
smartGaps = true;
smartBorders = "on"; smartBorders = "on";
}; };
input = { input = {
@ -436,6 +454,20 @@
"XF86AudioPrev" = "exec playerctl previous"; "XF86AudioPrev" = "exec playerctl previous";
}; };
modifier = "Mod4"; modifier = "Mod4";
output = {
DP-1 = {
resolution = "3840x2160@30Hz";
position = "1920 0";
# background = "/home/muhh/Sync/Backgrounds/wald.jpg fill";
scale = "1.0";
};
HDMI-A-1 = {
resolution = "1920x1080@60.000Hz";
transform = "180";
position = "0 0";
# background = "/home/muhh/Sync/Backgrounds/pfuetze.jpg fill";
};
};
seat = { seat = {
"*" = { "*" = {
hide_cursor = "5000"; hide_cursor = "5000";

View file

@ -51,9 +51,12 @@
LC_TIME = "de_DE.UTF-8"; LC_TIME = "de_DE.UTF-8";
}; };
security = {
rtkit.enable = true;
pam.services.swaylock = {};
};
services.flatpak.enable = true; services.flatpak.enable = true;
services.fwupd.enable = true; services.fwupd.enable = true;
security.rtkit.enable = true;
services.openssh.enable = true; services.openssh.enable = true;
services.pipewire = { services.pipewire = {
enable = true; enable = true;