summaryrefslogtreecommitdiffstats
path: root/host_vars
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-07-10 18:49:44 +0200
committerAhmed Abdelhalim <[email protected]>2026-07-10 18:49:44 +0200
commit2760491ebf49ead138b877ae5de691292dca0f40 (patch)
tree5800e4d12f8efa3510c32ae35f410b6b689ac60c /host_vars
parent448b78eaeb6ea80d44686f62419dd2b5892a6da9 (diff)
Replace hyprland monitors with kanshi profiles
Diffstat (limited to 'host_vars')
-rw-r--r--host_vars/desktop.local.ymlbin818 -> 892 bytes
-rw-r--r--host_vars/desktop.local.yml.example10
-rw-r--r--host_vars/laptop.local.ymlbin881 -> 937 bytes
-rw-r--r--host_vars/laptop.local.yml.example7
-rw-r--r--host_vars/macbook.local.ymlbin885 -> 1258 bytes
-rw-r--r--host_vars/macbook.local.yml.example15
6 files changed, 28 insertions, 4 deletions
diff --git a/host_vars/desktop.local.yml b/host_vars/desktop.local.yml
index 9abcecf7..53939d8a 100644
--- a/host_vars/desktop.local.yml
+++ b/host_vars/desktop.local.yml
Binary files differ
diff --git a/host_vars/desktop.local.yml.example b/host_vars/desktop.local.yml.example
index 7017c6de..d24dcff2 100644
--- a/host_vars/desktop.local.yml.example
+++ b/host_vars/desktop.local.yml.example
@@ -41,10 +41,12 @@ fonts_extra:
- "noto-fonts"
hyprland_nvidia: true
-hyprland_monitors: |
- env = GDK_SCALE,2
- monitor=HDMI-A-1,3840x2160@60,auto-left,1.6
- monitor=DP-1,3840x2160@60,auto-right,1.6
+hyprland_gdk_scale: 2
+hyprland_kanshi_profiles: |
+ profile home {
+ output "Left Monitor" mode 3840x2160@60Hz position 0,0 scale 1.6
+ output "Right Monitor" mode 3840x2160@60Hz position 2400,0 scale 1.6
+ }
zen_browser_install_browserpass: true
zen_browser_install_passff: false
diff --git a/host_vars/laptop.local.yml b/host_vars/laptop.local.yml
index 8674e040..21e21e28 100644
--- a/host_vars/laptop.local.yml
+++ b/host_vars/laptop.local.yml
Binary files differ
diff --git a/host_vars/laptop.local.yml.example b/host_vars/laptop.local.yml.example
index c3f4ff18..ba9536da 100644
--- a/host_vars/laptop.local.yml.example
+++ b/host_vars/laptop.local.yml.example
@@ -39,4 +39,11 @@ fonts_extra:
- "fonts-font-awesome"
- "fonts-google-fira"
+hyprland_nvidia: false
+hyprland_gdk_scale: 2
+hyprland_kanshi_profiles: |
+ profile default {
+ output * mode preferred position 0,0 scale 1.6
+ }
+
logind_lid_ac_action: "ignore"
diff --git a/host_vars/macbook.local.yml b/host_vars/macbook.local.yml
index 9bdb3650..b9a4e517 100644
--- a/host_vars/macbook.local.yml
+++ b/host_vars/macbook.local.yml
Binary files differ
diff --git a/host_vars/macbook.local.yml.example b/host_vars/macbook.local.yml.example
index cb8aae6d..c20ce1da 100644
--- a/host_vars/macbook.local.yml.example
+++ b/host_vars/macbook.local.yml.example
@@ -53,4 +53,19 @@ firefox_extra_extensions:
installation_mode: "force_installed"
install_url: "https://addons.mozilla.org/firefox/downloads/latest/tabby-window-tab-manager/latest.xpi"
+hyprland_nvidia: false
+# Output criteria must be the full "make model serial" string reported by
+# `hyprctl monitors` (use "Unknown" for any missing field), not just the
+# model name — otherwise the profile silently never matches and kanshi
+# does nothing.
+hyprland_kanshi_profiles: |
+ profile docked {
+ output "Apple Computer Inc Built-in Display Unknown" disable
+ output "Some Company LEFT-MODEL 1234ABCD" mode [email protected] position 0,0 scale 1.0
+ output "Some Company RIGHT-MODEL 5678EFGH" mode [email protected] position 2560,0 scale 1.0
+ }
+ profile standalone {
+ output "Apple Computer Inc Built-in Display Unknown" mode 2880x1800@60Hz position 0,0 scale 2.0
+ }
+
logind_lid_ac_action: "ignore"