sway configuration
This commit is contained in:
parent
a42ed7e30f
commit
4592d78501
2 changed files with 36 additions and 1 deletions
32
home.nix
32
home.nix
|
@ -381,6 +381,20 @@
|
|||
playerctld.enable = true;
|
||||
swayidle = {
|
||||
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 = {
|
||||
enable = true;
|
||||
|
@ -408,6 +422,10 @@
|
|||
enable = true;
|
||||
config = {
|
||||
gaps = {
|
||||
inner = 50;
|
||||
vertical = 100;
|
||||
horizontal = 600;
|
||||
smartGaps = true;
|
||||
smartBorders = "on";
|
||||
};
|
||||
input = {
|
||||
|
@ -436,6 +454,20 @@
|
|||
"XF86AudioPrev" = "exec playerctl previous";
|
||||
};
|
||||
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 = {
|
||||
"*" = {
|
||||
hide_cursor = "5000";
|
||||
|
|
|
@ -51,9 +51,12 @@
|
|||
LC_TIME = "de_DE.UTF-8";
|
||||
};
|
||||
|
||||
security = {
|
||||
rtkit.enable = true;
|
||||
pam.services.swaylock = {};
|
||||
};
|
||||
services.flatpak.enable = true;
|
||||
services.fwupd.enable = true;
|
||||
security.rtkit.enable = true;
|
||||
services.openssh.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue