mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-10-10 17:02:43 +02:00
finally got hyprland plugins to work (however only from nixpkgs repo)
This commit is contained in:
1 parent
59f8955947
commit
ab4de4b42d
9 files changed
+314
-44
No files matched your search
@@ -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
|
||||
'';
|
||||
}
|
||||
Reference in new issue
Block a user