Created
May 19, 2018 21:56
-
-
Save v6ak/b6e1c18b85ad2dc19c03cac1669b65d0 to your computer and use it in GitHub Desktop.
Removes titlebar from maximized windows
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
#!/bin/bash | |
# Inspired by https://gist.github.com/tuxor1337/74e76d3d153c67593454 | |
# Replaced polling by events | |
xdotool getwindowfocus behave %@ blur get_num_desktops | while read _; do | |
for id in $(xdotool search --class '.*'); do | |
xprop -id $id -f _GTK_HIDE_TITLEBAR_WHEN_MAXIMIZED 32c -set _GTK_HIDE_TITLEBAR_WHEN_MAXIMIZED 0x1 | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment