[dev] Fullscreen keyboard shortcut in dwm like in wmii

From: Matthew Bauer <mjbauer95_AT_gmail.com>
Date: Wed, 21 Jul 2010 19:17:04 -0500

Is there an easy way to have a fullscreen keyboard shortcut in dwm like
there is in wmii?

I was trying to achieve this via xprop with something like this in the
config.h:

{ MODKEY, XK_f, spawn, {.v = (char
> *[]){"/bin/sh", "-c", "xprop -id $0 -f _NET_WM_STATE 32a -set _NET_WM_STATE
> _NET_WM_STATE_FULLSCREEN", wininfo, NULL } },

But while trying to running that command on its own nothing happened.

xprop -f _NET_WM_STATE 32a -set _NET_WM_STATE _NET_WM_STATE_FULLSCREEN

It doesn't seem to work in other window managers either (the preferred way
seems to be "wmctrl -r $0 -b add,fullscreen" but that doesn't work in dwm).

What other ways are there besides adding another function to dwm?
Received on Thu Jul 22 2010 - 02:17:04 CEST

This archive was generated by hypermail 2.2.0 : Thu Jul 22 2010 - 02:24:02 CEST