From a0b4f8ec43fc968c109482137337307b7ecb84c4 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Fri, 10 Jul 2026 23:03:33 -0400 Subject: [PATCH] tweaks for niri and touchscreens --- .claude/settings.local.json | 23 +++++++++++++++++++++++ configs/niri/dms/alttab.kdl | 14 +++++++------- configs/niri/dms/layout.kdl | 33 +++++++++++++++++---------------- configs/niri/dms/outputs.kdl | 14 ++++++++++++++ configs/niri/shared/general.kdl | 21 +++++++++++++++++++++ hosts/fwbook.nix | 3 ++- 6 files changed, 84 insertions(+), 24 deletions(-) create mode 100644 .claude/settings.local.json diff --git a/.claude/settings.local.json b/.claude/settings.local.json new file mode 100644 index 0000000..64925d6 --- /dev/null +++ b/.claude/settings.local.json @@ -0,0 +1,23 @@ +{ + "permissions": { + "allow": [ + "Bash(nix-instantiate --parse /home/ari/nixos-setup/modules/nixos/server/dns/default.nix)", + "Bash(ls /home/ari/Projects/Homelab/homelab/os/routers/glmain/ 2>&1 | head -20)", + "Bash(nix eval --impure --expr ' *)", + "Bash(cargo --version)", + "Bash(cargo generate-lockfile *)", + "Bash(cargo build *)", + "Bash(nix eval *)", + "Bash(./modules/openwrt/generator/target/release/openwrt-gen dnsmasq *)", + "Bash(nix build *)", + "Bash(git -C /home/ari/nixos-setup add modules/openwrt)", + "Bash(python3 -m json.tool)", + "Bash(git add *)", + "Bash(nix run *)", + "Bash(./bin/skyg)", + "Bash(./bin/skyg profiles *)", + "WebFetch(domain:x.ai)", + "Bash(b=/nix/store/7qvj7ffnj8wh5imlchccnz1xjccgrqig-nixos-system-hl-minipc2-26.05.20260531.b51242d *)" + ] + } +} diff --git a/configs/niri/dms/alttab.kdl b/configs/niri/dms/alttab.kdl index 091ea07..5f9bdcd 100644 --- a/configs/niri/dms/alttab.kdl +++ b/configs/niri/dms/alttab.kdl @@ -1,10 +1,10 @@ // ! DO NOT EDIT ! - // ! AUTO-GENERATED BY DMS ! - // ! CHANGES WILL BE OVERWRITTEN ! - // ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE ! +// ! AUTO-GENERATED BY DMS ! +// ! CHANGES WILL BE OVERWRITTEN ! +// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE ! - recent-windows { - highlight { +recent-windows { + highlight { corner-radius 12 - } - } + } +} diff --git a/configs/niri/dms/layout.kdl b/configs/niri/dms/layout.kdl index f8f8e4f..6d717e2 100644 --- a/configs/niri/dms/layout.kdl +++ b/configs/niri/dms/layout.kdl @@ -1,22 +1,23 @@ // ! DO NOT EDIT ! - // ! AUTO-GENERATED BY DMS ! - // ! CHANGES WILL BE OVERWRITTEN ! - // ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE ! +// ! AUTO-GENERATED BY DMS ! +// ! CHANGES WILL BE OVERWRITTEN ! +// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE ! - layout { - gaps 5 +layout { + gaps 5 - border { + border { width 2 - } + } - focus-ring { + focus-ring { width 2 - } - } - window-rule { - geometry-corner-radius 12 - clip-to-geometry true - tiled-state true - draw-border-with-background false - } + } +} + +window-rule { + geometry-corner-radius 12 + clip-to-geometry true + tiled-state true + draw-border-with-background false +} diff --git a/configs/niri/dms/outputs.kdl b/configs/niri/dms/outputs.kdl index e69de29..0754c83 100644 --- a/configs/niri/dms/outputs.kdl +++ b/configs/niri/dms/outputs.kdl @@ -0,0 +1,14 @@ +// Auto-generated by DMS - do not edit manually + +output "eDP-1" { + mode "2880x1920@120.000" + scale 1.5 + position x=0 y=0 + hot-corners { + top-right + bottom-left + bottom-right + top-left + } +} + diff --git a/configs/niri/shared/general.kdl b/configs/niri/shared/general.kdl index ae8c9ae..0769f26 100644 --- a/configs/niri/shared/general.kdl +++ b/configs/niri/shared/general.kdl @@ -38,3 +38,24 @@ switch-events { hotkey-overlay { skip-at-startup } + +gestures { + dnd-edge-view-scroll { + trigger-width 30 + delay-ms 100 + max-speed 1500 + } + + dnd-edge-workspace-switch { + trigger-height 50 + delay-ms 100 + max-speed 1500 + } + + hot-corners { + top-left + top-right + bottom-left + bottom-right + } +} diff --git a/hosts/fwbook.nix b/hosts/fwbook.nix index 257011c..50ceba7 100644 --- a/hosts/fwbook.nix +++ b/hosts/fwbook.nix @@ -51,6 +51,7 @@ in }; }; virtualisation.waydroid.enable = true; + hardware.enableRedistributableFirmware = true; # Tailscale services.tailscale.enable = true; services.tailscale.extraDaemonFlags = [ "--statedir=/var/lib/tailscale" ]; @@ -73,7 +74,7 @@ in services.fprintd.enable = true; # Touchscreen services.libinput = { - enable = true; + enable = true; }; # Graphics hardware.graphics = {