enable swayidle
This commit is contained in:
parent
282d2e878e
commit
52278df318
|
@ -239,9 +239,7 @@ in {
|
|||
gr = "cd (git root)";
|
||||
gri = "git rebase --interactive FETCH_HEAD";
|
||||
};
|
||||
functions = {
|
||||
fish_greeting = "";
|
||||
};
|
||||
functions = { fish_greeting = ""; };
|
||||
};
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
|
@ -575,11 +573,7 @@ in {
|
|||
unfocused = client bg_color bg_color fg_color bg_color bg_color;
|
||||
urgent = client alert alert fg_color alert alert;
|
||||
};
|
||||
output = {
|
||||
"*" = {
|
||||
bg = "${theme.background} fill";
|
||||
};
|
||||
};
|
||||
output = { "*" = { bg = "${theme.background} fill"; }; };
|
||||
input."type:touchpad" = {
|
||||
# Disable While Typing
|
||||
dwt = "disabled";
|
||||
|
@ -736,6 +730,24 @@ in {
|
|||
terminal = pkgs.alacritty.executable;
|
||||
};
|
||||
};
|
||||
services.swayidle = {
|
||||
enable = true;
|
||||
timeouts = [
|
||||
{
|
||||
timeout = 360;
|
||||
command = "swaylock -f";
|
||||
}
|
||||
{
|
||||
timeout = 1800;
|
||||
command = "mpc status | grep \"^\[playing\]\" > /dev/null || swaymsg \"output * dpms off\"";
|
||||
resumeCommand = "swaymsg \"output * dpms on\"";
|
||||
}
|
||||
];
|
||||
events = [{
|
||||
event = "before-sleep";
|
||||
command = "swaylock -f";
|
||||
}];
|
||||
};
|
||||
services.gammastep = {
|
||||
enable = true;
|
||||
provider = "geoclue2";
|
||||
|
|
Loading…
Reference in a new issue