diff --git a/flake.lock b/flake.lock index a3f7ad0..d98061f 100644 --- a/flake.lock +++ b/flake.lock @@ -935,10 +935,10 @@ "niri-mobile": { "flake": false, "locked": { - "lastModified": 1794866348, - "narHash": "sha256-xOlwRx2pt3b/XGu7C1HBF8OljMrRV1whr+PL5o+czlM=", + "lastModified": 1794870539, + "narHash": "sha256-vLHkvy05FsJ4TtQmIKRAHJ3zOhZ438xciJP9W87gcSo=", "ref": "quad/mobile-testing", - "rev": "fb33c8f8fa9ed74ea5477d6f6caf258f5733aae4", + "rev": "4d18f5be39c918d02f0e87d3deda9a4be7833cbd", "shallow": true, "type": "git", "url": "file:///home/quadradical/Documents/Code/niri" diff --git a/modules/mobile/niri.nix b/modules/mobile/niri.nix index 13d20b7..dce93c0 100644 --- a/modules/mobile/niri.nix +++ b/modules/mobile/niri.nix @@ -34,6 +34,7 @@ let gjs gtk4 gtk4-layer-shell + libadwaita ]; installPhase = '' @@ -72,6 +73,10 @@ in }; environment.etc."niri/config.kdl".text = '' + output "DSI-1" { + scale 3 + } + input { touch { edge-swipe-size 24; } } @@ -82,10 +87,10 @@ in left -16 right -16 top -16 - bottom -16 } center-focused-column "always" default-column-width { proportion 1.0; } + background-color "transparent" } // zoom and workspace-anchor have to match the constants in test-shell/grid.js. @@ -94,7 +99,13 @@ in workspace-anchor 0.15 hide-inactive-workspaces swipe-to-close - swipe-down-to-focus + swipe-down-to-exit + open-when-empty + workspace-shadow { off; } + } + + gestures { + workspace-switch { off; } } layer-rule { @@ -109,6 +120,10 @@ in prefer-no-csd + hotkey-overlay { + skip-at-startup + } + spawn-at-startup "${lib.getExe pkgs.swaybg}" "-i" "${../../background.jpg}" "-m" "fill" spawn-at-startup "${lib.getExe grid}" spawn-at-startup "${lib.getExe stevia}"