refactor
This commit is contained in:
parent
31089aa054
commit
9c2da9d353
1 changed files with 94 additions and 84 deletions
|
@ -6,36 +6,43 @@
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
services.swayidle.enable = true;
|
services.swayidle = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
services.swayidle.events = [
|
events = [
|
||||||
{
|
{
|
||||||
event = "before-sleep";
|
event = "before-sleep";
|
||||||
command = "${pkgs.swaylock}/bin/swaylock --daemonize --image ~/.config/wallpaper/wallpaper.jpg";
|
command = "${pkgs.swaylock}/bin/swaylock --daemonize --image ~/.config/wallpaper/wallpaper.jpg";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
services.swayidle.timeouts = [
|
services.swayidle.timeouts = [
|
||||||
{
|
{
|
||||||
timeout = 60;
|
timeout = 300;
|
||||||
command = "${pkgs.swaylock}/bin/swaylock --daemonize --image ~/.config/wallpaper/wallpaper.jpg";
|
command = "${pkgs.swaylock}/bin/swaylock --daemonize --image ~/.config/wallpaper/wallpaper.jpg";
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
timeout = 300;
|
timeout = 600;
|
||||||
command = "swaymsg 'output * dpms off'";
|
command = "swaymsg 'output * dpms off'";
|
||||||
resumeCommand = "swaymsg 'output * dpms on'";
|
resumeCommand = "swaymsg 'output * dpms on'";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.swaylock.enable = true;
|
programs.swaylock = {
|
||||||
programs.swaylock.settings = {
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
daemonize = true;
|
daemonize = true;
|
||||||
image = "~/.config/wallpaper/wallpaper.jpg";
|
image = "~/.config/wallpaper/wallpaper.jpg";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
wayland.windowManager.sway.enable = true;
|
wayland.windowManager.sway = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
wayland.windowManager.sway.config = {
|
config = {
|
||||||
assigns = {
|
assigns = {
|
||||||
"1" = [{ app_id = "firefox"; }];
|
"1" = [{ app_id = "firefox"; }];
|
||||||
"2" = [{ app_id = "Alacritty"; }];
|
"2" = [{ app_id = "Alacritty"; }];
|
||||||
|
@ -69,9 +76,11 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
gaps.inner = 10;
|
gaps = {
|
||||||
gaps.smartBorders = "on";
|
inner = 10;
|
||||||
gaps.smartGaps = true;
|
smartBorders = "on";
|
||||||
|
smartGaps = true;
|
||||||
|
};
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
"*" = {
|
"*" = {
|
||||||
|
@ -110,7 +119,7 @@
|
||||||
window.border = 3;
|
window.border = 3;
|
||||||
};
|
};
|
||||||
|
|
||||||
wayland.windowManager.sway.extraConfig = ''
|
extraConfig = ''
|
||||||
set $laptop eDP-1
|
set $laptop eDP-1
|
||||||
bindswitch --reload --locked lid:on output $laptop disable
|
bindswitch --reload --locked lid:on output $laptop disable
|
||||||
bindswitch --reload --locked lid:off output $laptop enable
|
bindswitch --reload --locked lid:off output $laptop enable
|
||||||
|
@ -120,6 +129,7 @@
|
||||||
|
|
||||||
for_window [class="vlc"] inhibit_idle fullscreen
|
for_window [class="vlc"] inhibit_idle fullscreen
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
programs.i3status-rust = {
|
programs.i3status-rust = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue