diff --git a/home/wm/addon/default.nix b/home/wm/addon/default.nix index 464fd98..6d53568 100644 --- a/home/wm/addon/default.nix +++ b/home/wm/addon/default.nix @@ -1,3 +1,9 @@ { ... }: { - imports = [ ./rofi ./waybar ./dunst.nix ./kanshi.nix ./swayidle.nix ]; + imports = [ + ./rofi + ./waybar + ./dunst.nix + ./kanshi.nix + ./swayidle.nix + ]; } diff --git a/home/wm/addon/kanshi.nix b/home/wm/addon/kanshi.nix index 82bb1d6..8696d13 100644 --- a/home/wm/addon/kanshi.nix +++ b/home/wm/addon/kanshi.nix @@ -1,31 +1,33 @@ { ... }: { - services.kanshi.enable = true; - services.kanshi.profiles = { - undocked = { - outputs = [ - { - criteria = "eDP-1"; - mode = "1920x1080"; - position = "0,0"; - } - ]; - }; - docked = { - outputs = [ - { - criteria = "eDP-1"; - transform = "normal"; - mode = "1920x1080"; - position = "0,216"; - scale = 1.25; - } - { - criteria = "DP-1"; - transform = "normal"; - mode = "1920x1080"; - position = "1536,0"; - } - ]; + services.kanshi = { + enable = true; + profiles = { + undocked = { + outputs = [ + { + criteria = "eDP-1"; + mode = "1920x1080"; + position = "0,0"; + } + ]; + }; + docked = { + outputs = [ + { + criteria = "eDP-1"; + transform = "normal"; + mode = "1920x1080"; + position = "0,216"; + scale = 1.25; + } + { + criteria = "DP-1"; + transform = "normal"; + mode = "1920x1080"; + position = "1536,0"; + } + ]; + }; }; }; } diff --git a/home/wm/addon/swayidle.nix b/home/wm/addon/swayidle.nix index 00c6426..bbd70ea 100644 --- a/home/wm/addon/swayidle.nix +++ b/home/wm/addon/swayidle.nix @@ -1,15 +1,17 @@ { pkgs, ... }: { - services.swayidle.enable = true; - services.swayidle.events = [ - { - event = "before-sleep"; - command = "${pkgs.swaylock}/bin/swaylock -f -i /tmp/lockpaper.jpg"; - } - ]; - services.swayidle.timeouts = [ - { - timeout = 600; - command = "${pkgs.swaylock}/bin/swaylock -f -i /tmp/lockpaper.jpg"; - } - ]; + services.swayidle = { + enable = true; + events = [ + { + event = "before-sleep"; + command = "${pkgs.swaylock}/bin/swaylock -f -i /tmp/lockpaper.jpg"; + } + ]; + timeouts = [ + { + timeout = 600; + command = "${pkgs.swaylock}/bin/swaylock -f -i /tmp/lockpaper.jpg"; + } + ]; + }; }