niri: switch-events lid-close

This commit is contained in:
Simon Gardling 2024-10-31 09:41:10 -04:00
parent 6e7c4e0dce
commit 466b73104c
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D
3 changed files with 25 additions and 25 deletions

View File

@ -98,11 +98,11 @@
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
},
"locked": {
"lastModified": 1730208970,
"narHash": "sha256-Rz6l5qHcMZ8YfPfoFaC1GTVP2LaYjrjy85eH/2cxxQI=",
"lastModified": 1730380035,
"narHash": "sha256-fyK2lLnsYJTBkPxhynNCmjxwbAItzRg6oLPF+NC2kgw=",
"owner": "sodiboo",
"repo": "niri-flake",
"rev": "7e336c90d8e6ff2ea4b7f1db599cdf529a137770",
"rev": "e2a1396edb2410a04eb2b02c93fb9203352a8a92",
"type": "github"
},
"original": {
@ -131,11 +131,11 @@
"niri-unstable": {
"flake": false,
"locked": {
"lastModified": 1730139178,
"narHash": "sha256-qivw/zu3aaRl8g3Y3VGpu1WwGr6/uPehIP8K4YTsirg=",
"lastModified": 1730263923,
"narHash": "sha256-HFOXeh+WNtAwuV/KNtOSKXGnOoy465a/dud2zvtsCt8=",
"owner": "YaLTeR",
"repo": "niri",
"rev": "6ecbf2db8a31484fe88b8faa399b9832da6c8a6a",
"rev": "d3e72245b003cbeed0810bf00c4a445b7c8a652a",
"type": "github"
},
"original": {
@ -146,16 +146,16 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1730221053,
"narHash": "sha256-jUBneD6xhjyIi5u0PqMKSUypaiTY9CBbsTBccPeywbo=",
"lastModified": 1730200266,
"narHash": "sha256-l253w0XMT8nWHGXuXqyiIC/bMvh1VRszGXgdpQlfhvU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "99fc8650b2e85bf36a3d5c629b63a332c707c0fe",
"rev": "807e9154dcb16384b1b765ebe9cd2bba2ac287fd",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
@ -205,11 +205,11 @@
]
},
"locked": {
"lastModified": 1730169013,
"narHash": "sha256-rvgF03ODu1uEYbdEsloN4fQrJ+k1NOv/7MJvCpHHnBk=",
"lastModified": 1730341826,
"narHash": "sha256-RFaeY7EWzXOmAL2IQEACbnrEza3TgD5UQApHR4hGHhY=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "92eb1268cc19609f2fe24311b871f37bf3dc5afd",
"rev": "815d1b3ee71716fc91a7bd149801e1f04d45fbc5",
"type": "github"
},
"original": {
@ -236,16 +236,16 @@
"xwayland-satellite-stable": {
"flake": false,
"locked": {
"lastModified": 1718165778,
"narHash": "sha256-dwF9nI54a6Fo9XU5s4qmvMXSgCid3YQVGxch00qEMvI=",
"lastModified": 1730166465,
"narHash": "sha256-nq7bouXQXaaPPo/E+Jbq+wNHnatD4dY8OxSrRqzvy6s=",
"owner": "Supreeeme",
"repo": "xwayland-satellite",
"rev": "b6d281967cb0b7bf1dfdb8d0f597b517dc4aa5c5",
"rev": "a713cf46cb7db84a0d1b57c3a397c610cad3cf98",
"type": "github"
},
"original": {
"owner": "Supreeeme",
"ref": "v0.4",
"ref": "v0.5",
"repo": "xwayland-satellite",
"type": "github"
}
@ -253,11 +253,11 @@
"xwayland-satellite-unstable": {
"flake": false,
"locked": {
"lastModified": 1730166465,
"narHash": "sha256-nq7bouXQXaaPPo/E+Jbq+wNHnatD4dY8OxSrRqzvy6s=",
"lastModified": 1730258684,
"narHash": "sha256-E+69sdxUhPSNI8+JlTL6KKbNv5qVD3L1y8hdVO37A44=",
"owner": "Supreeeme",
"repo": "xwayland-satellite",
"rev": "a713cf46cb7db84a0d1b57c3a397c610cad3cf98",
"rev": "b0ee6db9fa9901c675b3c7e952c2a8ce987a0f58",
"type": "github"
},
"original": {

View File

@ -2,8 +2,8 @@
description = "My nixOS flake for home-manager";
inputs = {
# nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/master";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# nixpkgs.url = "github:NixOS/nixpkgs/master";
home-manager = {
url = "github:nix-community/home-manager";

View File

@ -78,9 +78,9 @@
];
# https://github.com/sodiboo/niri-flake/issues/591
# switch-events = with config.lib.niri.actions; {
# "lid-close" = spawn [ "${pkgs.swaylock}/bin/swaylock"];
# };
switch-events = with config.lib.niri.actions; {
"lid-close".action = spawn "${pkgs.swaylock}/bin/swaylock";
};
binds = with config.lib.niri.actions; {
# Application launcher