adjust niri

This commit is contained in:
Henry Hiles 2026-11-16 18:16:46 -05:00
commit f3f768482c
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
2 changed files with 20 additions and 5 deletions

6
flake.lock generated
View file

@ -935,10 +935,10 @@
"niri-mobile": { "niri-mobile": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1794866348, "lastModified": 1794870539,
"narHash": "sha256-xOlwRx2pt3b/XGu7C1HBF8OljMrRV1whr+PL5o+czlM=", "narHash": "sha256-vLHkvy05FsJ4TtQmIKRAHJ3zOhZ438xciJP9W87gcSo=",
"ref": "quad/mobile-testing", "ref": "quad/mobile-testing",
"rev": "fb33c8f8fa9ed74ea5477d6f6caf258f5733aae4", "rev": "4d18f5be39c918d02f0e87d3deda9a4be7833cbd",
"shallow": true, "shallow": true,
"type": "git", "type": "git",
"url": "file:///home/quadradical/Documents/Code/niri" "url": "file:///home/quadradical/Documents/Code/niri"

View file

@ -34,6 +34,7 @@ let
gjs gjs
gtk4 gtk4
gtk4-layer-shell gtk4-layer-shell
libadwaita
]; ];
installPhase = '' installPhase = ''
@ -72,6 +73,10 @@ in
}; };
environment.etc."niri/config.kdl".text = '' environment.etc."niri/config.kdl".text = ''
output "DSI-1" {
scale 3
}
input { input {
touch { edge-swipe-size 24; } touch { edge-swipe-size 24; }
} }
@ -82,10 +87,10 @@ in
left -16 left -16
right -16 right -16
top -16 top -16
bottom -16
} }
center-focused-column "always" center-focused-column "always"
default-column-width { proportion 1.0; } default-column-width { proportion 1.0; }
background-color "transparent"
} }
// zoom and workspace-anchor have to match the constants in test-shell/grid.js. // zoom and workspace-anchor have to match the constants in test-shell/grid.js.
@ -94,7 +99,13 @@ in
workspace-anchor 0.15 workspace-anchor 0.15
hide-inactive-workspaces hide-inactive-workspaces
swipe-to-close swipe-to-close
swipe-down-to-focus swipe-down-to-exit
open-when-empty
workspace-shadow { off; }
}
gestures {
workspace-switch { off; }
} }
layer-rule { layer-rule {
@ -109,6 +120,10 @@ in
prefer-no-csd 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 pkgs.swaybg}" "-i" "${../../background.jpg}" "-m" "fill"
spawn-at-startup "${lib.getExe grid}" spawn-at-startup "${lib.getExe grid}"
spawn-at-startup "${lib.getExe stevia}" spawn-at-startup "${lib.getExe stevia}"