From 0788da99d886104f411984c569bc6d988272a710 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 17 Jul 2023 14:02:33 +0100 Subject: [PATCH] Add kanshi config for laptop Add workspace rule back for teams client --- home/hyprland/hyprland.conf | 3 ++- hosts/Ronin/home.nix | 34 +++++++++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/home/hyprland/hyprland.conf b/home/hyprland/hyprland.conf index 12400710..03956be8 100644 --- a/home/hyprland/hyprland.conf +++ b/home/hyprland/hyprland.conf @@ -152,7 +152,8 @@ windowrule = workspace 4,(Zotero) windowrule = workspace 5 silent,(Signal) windowrule = workspace 5 silent,(fractal) windowrule = workspace 5 silent,(discord) -windowrule = workspace 6 silent,(Nxplayer.bin) +windowrule = workspace 5 silent,(teams-for-linux) +windowrule = workspace 6,(Nxplayer.bin) windowrule = workspace 7,^(steam).* windowrule = workspace 7,(.gamescope-wrapped) diff --git a/hosts/Ronin/home.nix b/hosts/Ronin/home.nix index cf994049..81e32892 100644 --- a/hosts/Ronin/home.nix +++ b/hosts/Ronin/home.nix @@ -25,9 +25,41 @@ in { home-manager.enable = true; neovim.package = pkgs.neovim-nightly; }; + services.kanshi = { + enable = true; + systemdTarget = "hyprland-session.target"; + profiles = let + restart_hyprpaper = "pkill hyprpaper; ${pkgs.hyprland}/bin/hyprctl dispatch exec hyprpaper"; + in { + undocked = { + outputs = [ + { + criteria = "*"; + status = "enable"; + } + ]; + exec = [restart_hyprpaper]; + }; + docked = { + outputs = [ + { + criteria = "eDP-1"; + status = "disable"; + } + { + criteria = "Iiyama North America PLB2403WS 0574281251316"; + } + { + criteria = "Dell Inc. DELL U2417H 5K9YD872FY1L"; + } + ]; + exec = [restart_hyprpaper]; + }; + }; + }; xdg.configFile."hypr/display.conf".text = '' + monitor=eDP-1,1920x1080@60,auto,1.25 monitor=desc:Iiyama North America PLB2403WS 0574281251316,1920x1200@60,0x185,1 monitor=desc:Dell Inc. DELL U2417H 5K9YD872FY1L,1920x1080@60,1920x0,1,transform,1 - monitor=eDP-1,1920x1080@60,640x1385,1.25 ''; }