[WIP] sway
and qutebrowser
settings
This commit is contained in:
parent
05af2601a0
commit
4978017190
4 changed files with 86 additions and 4 deletions
41
hmModules/sway/idle.nix
Normal file
41
hmModules/sway/idle.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{pkgs, ...}: {
|
||||
services.swayidle = let
|
||||
swaylockWithArgs = pkgs.writeScriptBin "swaylockWithArgs" ''
|
||||
${pkgs.swaylock-effects}/bin/swaylock \
|
||||
--daemonize \
|
||||
--screenshots \
|
||||
--clock \
|
||||
--indicator \
|
||||
--indicator-radius 100 \
|
||||
--indicator-thickness 7 \
|
||||
--effect-blur 7x5 \
|
||||
--effect-vignette 0.5:0.5 \
|
||||
--ring-color bb00cc \
|
||||
--key-hl-color 880033 \
|
||||
--line-color 00000000 \
|
||||
--inside-color 00000088 \
|
||||
--separator-color 00000000 \
|
||||
--grace 2 \
|
||||
--fade-in 0.2
|
||||
'';
|
||||
swaylockCommand = "${swaylockWithArgs}/bin/swaylockWithArgs";
|
||||
in {
|
||||
enable = true;
|
||||
events = [
|
||||
{
|
||||
event = "before-sleep";
|
||||
command = swaylockCommand;
|
||||
}
|
||||
{
|
||||
event = "lock";
|
||||
command = swaylockCommand;
|
||||
}
|
||||
];
|
||||
timeouts = [
|
||||
{
|
||||
timeout = 600;
|
||||
command = swaylockCommand;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue