finally got hyprland plugins to work (however only from nixpkgs repo)

This commit is contained in:
Tomas Rivera
2026-02-28 20:12:25 +01:00
parent 59f8955947
commit ab4de4b42d
9 changed files with 314 additions and 44 deletions
+19
View File
@@ -0,0 +1,19 @@
{ writeShellApplication, hyprland, jq,... }:
writeShellApplication {
name = "custom-killall";
runtimeInputs = [
hyprland
jq
];
text = ''
active_workspace_id=$(hyprctl activeworkspace -j | jq -r '.id')
hyprctl clients -j |
jq -r ".[]
| select(.workspace.id==''${active_workspace_id})
| select(.focusHistoryID!=0)
| .pid" |
xargs -r kill
'';
}