mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 10:30:44 +02:00
formated whole config with alejandra
This commit is contained in:
+20
-16
@@ -1,19 +1,23 @@
|
||||
{ writeShellApplication, hyprland, jq, ... }:
|
||||
|
||||
{
|
||||
writeShellApplication,
|
||||
hyprland,
|
||||
jq,
|
||||
...
|
||||
}:
|
||||
writeShellApplication {
|
||||
name = "custom-killall";
|
||||
runtimeInputs = [
|
||||
hyprland
|
||||
jq
|
||||
];
|
||||
text = ''
|
||||
active_workspace_id=$(hyprctl activeworkspace -j | jq -r '.id')
|
||||
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
|
||||
'';
|
||||
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