mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2024-11-25 00:38:20 -05:00
37 lines
655 B
Bash
Executable File
37 lines
655 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#-*-coding:utf-8 -*-
|
|
#Auto updated?
|
|
# Yes
|
|
#File:
|
|
# i3_kill
|
|
#Author:
|
|
# The-Repo-Club [wayne6324@gmail.com]
|
|
#Github:
|
|
# https://github.com/The-Repo-Club/
|
|
#
|
|
#Created:
|
|
# Fri 21 October 2022, 06:55:58 AM [GMT+1]
|
|
#Modified:
|
|
# Fri 21 October 2022, 07:12:58 AM [GMT+1]
|
|
#
|
|
#Description:
|
|
# <Todo>
|
|
#
|
|
#Dependencies:
|
|
# <None>
|
|
#
|
|
|
|
i3_kill() {
|
|
do_not_kill=("dropdown-terminal")
|
|
app_id="$(i3-msg -t get_tree 2>/dev/null | jq -r '.. | select(.focused?).window_properties.class')"
|
|
|
|
for value in "${do_not_kill[@]}"; do
|
|
if [[ $value == "$app_id" ]]; then
|
|
exit 0
|
|
fi
|
|
done
|
|
i3-msg kill
|
|
}
|
|
|
|
i3_kill
|