blob: d7553a9f36971f62147b594704bef07c99f5162e [file] [log] [blame]
Skyler Grey252927a2022-10-18 22:18:15 +01001{ pkgs, ... }:
2let
Skyler Greyb562da32022-09-01 23:36:28 +01003 config = {
4 left = {
Skyler Grey252927a2022-10-18 22:18:15 +01005 enter_command = [ ./systemd-inhibit/inhibit-idle.sh ];
6 exit_command = [ ./systemd-inhibit/stop-inhibiting-idle.sh ];
7 locations = [ "bottom_right" "bottom_left" ];
Skyler Greyb562da32022-09-01 23:36:28 +01008 size = 10;
9 timeout_ms = 250;
10 };
11 "left.output".description = "";
12 };
Skyler Grey252927a2022-10-18 22:18:15 +010013in
14{
Skyler Greyb562da32022-09-01 23:36:28 +010015 home = {
16 home = {
Skyler Grey252927a2022-10-18 22:18:15 +010017 packages = [ pkgs.waycorner ];
18 file.".config/waycorner/config.toml".source = (pkgs.formats.toml { }).generate "config.toml" config;
Skyler Greyb562da32022-09-01 23:36:28 +010019 };
20 wayland.windowManager.sway.config.startup = [
Skyler Grey252927a2022-10-18 22:18:15 +010021 { command = "${pkgs.waycorner}/bin/waycorner"; }
Skyler Greyb562da32022-09-01 23:36:28 +010022 ];
23 };
24}