Skip to content

Instantly share code, notes, and snippets.

@v6ak
Created May 19, 2018 21:56
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save v6ak/b6e1c18b85ad2dc19c03cac1669b65d0 to your computer and use it in GitHub Desktop.
Save v6ak/b6e1c18b85ad2dc19c03cac1669b65d0 to your computer and use it in GitHub Desktop.
Removes titlebar from maximized windows
#!/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