I use this:

{ MODKEY,                       XK_f,      togglebar,      {0} },

not a "real" fullscreen mode

On Wed, Jul 21, 2010 at 07:17:04PM -0500, Matthew Bauer wrote:
> 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?

Reply via email to