home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit 64449e4003c14fe4fa3843eaf920a1b7015d9899
parent 1de757fb974514b7307a0248c7abc700ab8b223d
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Tue, 23 Aug 2022 13:58:16 +0200

users/vincent: some sway updates…

- add wireplumber
- setup kanshi properly

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Msystems/modules/hardware/audio.nix | 1+
Musers/vincent/desktop/sway.nix | 21++++++++++++++++++++-
2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/systems/modules/hardware/audio.nix b/systems/modules/hardware/audio.nix @@ -36,6 +36,7 @@ in alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; + wireplumber.enable = true; }; }) (mkIf cfg.pulseaudio.enable { diff --git a/users/vincent/desktop/sway.nix b/users/vincent/desktop/sway.nix @@ -235,7 +235,25 @@ in pasystray.enable = nixosConfig.modules.hardware.audio.enable; udiskie.enable = true; network-manager-applet.enable = true; - kanshi.enable = true; + kanshi = { + enable = true; + profiles = { + "home-undocked" = { + outputs = [ + # Output eDP-1 'AU Optronics 0xD291 Unknown' + { criteria = "eDP-1"; position = "0,0"; mode = "1920x1200"; scale = 1.0; } + ]; + }; + "home-docked" = { + outputs = [ + # Output eDP-1 'AU Optronics 0xD291 Unknown' + # Output DP-5 'LG Electronics LG ULTRAWIDE 0x0000D50C' (focused) + { criteria = "LG Electronics LG ULTRAWIDE 0x0000D50C"; position = "0,0"; mode = "3440x1440"; scale = 1.0; } + { criteria = "eDP-1"; position = "1460,1440"; mode = "1920x1200"; scale = 1.0; } + ]; + }; + }; + }; swayidle = { enable = true; events = [ @@ -264,5 +282,6 @@ in # Move away nyxt ]; + }