This commit is contained in:
Oliver Davies 2023-06-15 19:00:45 +01:00
parent 31089aa054
commit 9c2da9d353

View file

@ -6,36 +6,43 @@
programs.home-manager.enable = true;
services.swayidle.enable = true;
services.swayidle = {
enable = true;
services.swayidle.events = [
events = [
{
event = "before-sleep";
command = "${pkgs.swaylock}/bin/swaylock --daemonize --image ~/.config/wallpaper/wallpaper.jpg";
}
];
};
services.swayidle.timeouts = [
{
timeout = 60;
timeout = 300;
command = "${pkgs.swaylock}/bin/swaylock --daemonize --image ~/.config/wallpaper/wallpaper.jpg";
}
{
timeout = 300;
timeout = 600;
command = "swaymsg 'output * dpms off'";
resumeCommand = "swaymsg 'output * dpms on'";
}
];
programs.swaylock.enable = true;
programs.swaylock.settings = {
programs.swaylock = {
enable = true;
settings = {
daemonize = true;
image = "~/.config/wallpaper/wallpaper.jpg";
};
};
wayland.windowManager.sway.enable = true;
wayland.windowManager.sway = {
enable = true;
wayland.windowManager.sway.config = {
config = {
assigns = {
"1" = [{ app_id = "firefox"; }];
"2" = [{ app_id = "Alacritty"; }];
@ -69,9 +76,11 @@
}
];
gaps.inner = 10;
gaps.smartBorders = "on";
gaps.smartGaps = true;
gaps = {
inner = 10;
smartBorders = "on";
smartGaps = true;
};
input = {
"*" = {
@ -110,7 +119,7 @@
window.border = 3;
};
wayland.windowManager.sway.extraConfig = ''
extraConfig = ''
set $laptop eDP-1
bindswitch --reload --locked lid:on output $laptop disable
bindswitch --reload --locked lid:off output $laptop enable
@ -120,6 +129,7 @@
for_window [class="vlc"] inhibit_idle fullscreen
'';
};
programs.i3status-rust = {
enable = true;