From 02f26e10a5cffa86b9fc5c49a12b3ebcdff0c950 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 7 Dec 2024 14:20:46 +0530 Subject: [PATCH] remove kanshi and let hyprland do all the display stuff --- home/wm/addon/default.nix | 1 - home/wm/addon/kanshi.nix | 80 ------------------------------------ home/wm/hyprland/default.nix | 10 ++--- 3 files changed, 3 insertions(+), 88 deletions(-) delete mode 100644 home/wm/addon/kanshi.nix diff --git a/home/wm/addon/default.nix b/home/wm/addon/default.nix index a6b420e..35ed411 100644 --- a/home/wm/addon/default.nix +++ b/home/wm/addon/default.nix @@ -7,7 +7,6 @@ ./waybar ./auth-agent.nix ./hypridle.nix - ./kanshi.nix ./wpaperd.nix ]; } diff --git a/home/wm/addon/kanshi.nix b/home/wm/addon/kanshi.nix deleted file mode 100644 index c51994b..0000000 --- a/home/wm/addon/kanshi.nix +++ /dev/null @@ -1,80 +0,0 @@ -_: { - services.kanshi = { - enable = true; - systemdTarget = "graphical-session.target"; - settings = [ - { - profile = { - name = "undocked"; - outputs = [ - { - criteria = "eDP-1"; - transform = "normal"; - mode = "1920x1080"; - position = "0,0"; - scale = 1.0; - } - - ]; - }; - } - { - profile = { - name = "docked_1"; - outputs = [ - { - criteria = "eDP-1"; - transform = "normal"; - mode = "1920x1080"; - position = "0,216"; - scale = 1.25; - } - { - criteria = "DP-1"; - transform = "normal"; - position = "1536,0"; - } - ]; - }; - } - { - profile = { - name = "docked_2"; - outputs = [ - { - criteria = "eDP-1"; - transform = "normal"; - mode = "1920x1080"; - position = "0,216"; - scale = 1.25; - } - { - criteria = "DP-2"; - transform = "normal"; - position = "1536,0"; - } - ]; - }; - } - { - profile = { - name = "docked_3"; - outputs = [ - { - criteria = "eDP-1"; - transform = "normal"; - mode = "1920x1080"; - position = "0,216"; - scale = 1.25; - } - { - criteria = "DP-3"; - transform = "normal"; - position = "1536,0"; - } - ]; - }; - } - ]; - }; -} diff --git a/home/wm/hyprland/default.nix b/home/wm/hyprland/default.nix index ac43cca..5ad5a85 100644 --- a/home/wm/hyprland/default.nix +++ b/home/wm/hyprland/default.nix @@ -1,8 +1,4 @@ -{ config -, pkgs -, lib -, ... -}: +{ config, pkgs, lib, ... }: let brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl"; firefox = "${config.programs.firefox.finalPackage}/bin/firefox"; @@ -71,8 +67,8 @@ in }; monitor = [ - "eDP-1, 1920x1080, 0x0, 1" - ", preferred, auto, 1" + "eDP-1, preferred, 0x0, auto" + ", preferred, auto-right, auto" ]; input = {