fmt
This commit is contained in:
parent
3ec9d3e06f
commit
13277d4991
3 changed files with 51 additions and 41 deletions
|
@ -1,3 +1,9 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
imports = [ ./rofi ./waybar ./dunst.nix ./kanshi.nix ./swayidle.nix ];
|
imports = [
|
||||||
|
./rofi
|
||||||
|
./waybar
|
||||||
|
./dunst.nix
|
||||||
|
./kanshi.nix
|
||||||
|
./swayidle.nix
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,31 +1,33 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
services.kanshi.enable = true;
|
services.kanshi = {
|
||||||
services.kanshi.profiles = {
|
enable = true;
|
||||||
undocked = {
|
profiles = {
|
||||||
outputs = [
|
undocked = {
|
||||||
{
|
outputs = [
|
||||||
criteria = "eDP-1";
|
{
|
||||||
mode = "1920x1080";
|
criteria = "eDP-1";
|
||||||
position = "0,0";
|
mode = "1920x1080";
|
||||||
}
|
position = "0,0";
|
||||||
];
|
}
|
||||||
};
|
];
|
||||||
docked = {
|
};
|
||||||
outputs = [
|
docked = {
|
||||||
{
|
outputs = [
|
||||||
criteria = "eDP-1";
|
{
|
||||||
transform = "normal";
|
criteria = "eDP-1";
|
||||||
mode = "1920x1080";
|
transform = "normal";
|
||||||
position = "0,216";
|
mode = "1920x1080";
|
||||||
scale = 1.25;
|
position = "0,216";
|
||||||
}
|
scale = 1.25;
|
||||||
{
|
}
|
||||||
criteria = "DP-1";
|
{
|
||||||
transform = "normal";
|
criteria = "DP-1";
|
||||||
mode = "1920x1080";
|
transform = "normal";
|
||||||
position = "1536,0";
|
mode = "1920x1080";
|
||||||
}
|
position = "1536,0";
|
||||||
];
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,17 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
services.swayidle.enable = true;
|
services.swayidle = {
|
||||||
services.swayidle.events = [
|
enable = true;
|
||||||
{
|
events = [
|
||||||
event = "before-sleep";
|
{
|
||||||
command = "${pkgs.swaylock}/bin/swaylock -f -i /tmp/lockpaper.jpg";
|
event = "before-sleep";
|
||||||
}
|
command = "${pkgs.swaylock}/bin/swaylock -f -i /tmp/lockpaper.jpg";
|
||||||
];
|
}
|
||||||
services.swayidle.timeouts = [
|
];
|
||||||
{
|
timeouts = [
|
||||||
timeout = 600;
|
{
|
||||||
command = "${pkgs.swaylock}/bin/swaylock -f -i /tmp/lockpaper.jpg";
|
timeout = 600;
|
||||||
}
|
command = "${pkgs.swaylock}/bin/swaylock -f -i /tmp/lockpaper.jpg";
|
||||||
];
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue