aboutsummaryrefslogtreecommitdiff
path: root/home-manager/homeModules/attachments/hypr-scripts/kill
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/homeModules/attachments/hypr-scripts/kill')
-rwxr-xr-xhome-manager/homeModules/attachments/hypr-scripts/kill7
1 files changed, 7 insertions, 0 deletions
diff --git a/home-manager/homeModules/attachments/hypr-scripts/kill b/home-manager/homeModules/attachments/hypr-scripts/kill
new file mode 100755
index 0000000..40ab4a9
--- /dev/null
+++ b/home-manager/homeModules/attachments/hypr-scripts/kill
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [[ $(hyprctl activewindow -j | jq -r '.class') =~ (kitty) ]]; then
+ kill $(hyprctl activewindow -j | jq '.pid') -s 9
+else
+ hyprctl dispatch killactive
+fi