diff options
| author | littleblack111 <jerrylam110209@gmail.com> | 2023-03-27 21:25:48 +0800 |
|---|---|---|
| committer | littleblack111 <jerrylam110209@gmail.com> | 2023-03-27 21:25:48 +0800 |
| commit | e1e366d8a401ff6cb6906af0e0fa756932c798ec (patch) | |
| tree | b375dcb4f88d436c5ed5c5b66f3aa7433d7d4f8a /xkill-current-windows.sh | |
| parent | 6a731444376c853ff8831ab4e0575302049ed27b (diff) | |
added compile script apply for most languages
Diffstat (limited to 'xkill-current-windows.sh')
| -rwxr-xr-x | xkill-current-windows.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xkill-current-windows.sh b/xkill-current-windows.sh new file mode 100755 index 0000000..234c011 --- /dev/null +++ b/xkill-current-windows.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Get the ID of the active window +active_window=$(xprop -root _NET_ACTIVE_WINDOW | awk '{print $5}') + +# Use xkill to kill only the active window +xkill -id $active_window |
