This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Suspend KWin X11 compositing when certain windows are in focus and fullscreen | |
# Requirements: | |
# qdbus: suspend compositing, check status of compositing | |
# xprop: find window in focus and if fullscreen | |
# The "Suspend Compositing" global shortcut to be present and enabled | |
# Credits to: https://askubuntu.com/a/1017567, https://bbs.archlinux.org/viewtopic.php?pid=994356#p994356 |