added i3 dotfiles
This commit is contained in:
18
.config/i3/killScript.sh
Executable file
18
.config/i3/killScript.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
# based on https://github.com/pastapojken/i3SteamOrKill
|
||||
winID=$(xdotool getactivewindow)
|
||||
winClass=$(xprop -id $winID WM_CLASS)
|
||||
|
||||
if [[ $winClass = *"Steam"* ]]; then
|
||||
xdotool windowunmap $(xdotool getactivewindow)
|
||||
exit
|
||||
elif [[ $winClass = *"evolution"* ]]; then
|
||||
|
||||
i3-msg kill
|
||||
systemctl --user stop evolution-source-registry.service
|
||||
killall -e /usr/lib/evolution-data-server/evolution-alarm-notify
|
||||
exit
|
||||
else
|
||||
i3-msg kill
|
||||
exit
|
||||
fi
|
||||
Reference in New Issue
Block a user