From f5970d988c68ae1d2ac56f0a35324cd442a26be7 Mon Sep 17 00:00:00 2001 From: spl3g Date: Sat, 20 Apr 2024 20:24:36 +0300 Subject: add modules --- home-manager/homeModules/attachments/hypr-scripts/kill | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 home-manager/homeModules/attachments/hypr-scripts/kill (limited to 'home-manager/homeModules/attachments/hypr-scripts/kill') 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 -- cgit v1.2.3