mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
finally got hyprland plugins to work (however only from nixpkgs repo)
This commit is contained in:
@@ -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