Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
X11 / Linux hide titlebar of a window
#!/bin/bash
# Hide the decorations of a window.
# Defaults to hiding the focused window's decorations.
# Pass -m to use the mouse to select the target window.
# Get the focused window's ID
ID_OPTION="-id $(xdotool getwindowfocus)"
while getopts 'm' flag; do
case "${flag}" in
# Passing no ID defaults to using mouse selection
m) ID_OPTION="" ;;
esac
done
xprop $ID_OPTION -format _MOTIF_WM_HINTS 32i -set _MOTIF_WM_HINTS 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment