Skip to content

Instantly share code, notes, and snippets.

@notjuliee
Created March 12, 2017 21:24
Show Gist options
  • Save notjuliee/d6f5c849885b582ce3dac331bbef189e to your computer and use it in GitHub Desktop.
Save notjuliee/d6f5c849885b582ce3dac331bbef189e to your computer and use it in GitHub Desktop.
Bordeless Windows on Linux
#!/bin/bash
if [ "$(xprop -id $(xdotool getactivewindow) _MOTIF_WM_HINTS)" == "_MOTIF_WM_HINTS(CARDINAL) = 2, 0, 0, 0, 0" ]; then
xprop -id $(xdotool getactivewindow) -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS 0x2,0x0,0x1,0x0,0x0;
else
xprop -id $(xdotool getactivewindow) -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS 0x2,0x0,0x0,0x0,0x0;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment