Re: [dev] Panels and Touch support

From: Peter John Hartman <peterjohnhartman_AT_gmail.com>
Date: Wed, 6 Apr 2011 12:05:08 -0400

On Wed, Apr 06, 2011 at 09:30:31AM +0200, Christoph Lohmann wrote:
> The given panel feature could be used by dmenu, to not overlap
> the window drawing area, when being run.
> I'm using it for having svkbd on a defined position on the screen,
> when rotating my Laptop into tablet mode. The needed patches for
> svkbd are sent to the maintainer.

Here's what I do (in config.h):

        { ShiftMask|ControlMask, XK_F31, set_bar_height, {.i = -1}},
        { ShiftMask|ControlMask, XK_F32, set_bar_height, {.i = 1}},

void
set_bar_height(const Arg *arg) {
  if (arg->i > 0)
    sh = sh + 300;
  else
    sh = sh - 300;
  updategeom();
  arrange(selmon);
}

Peter

-- 
sic dicit magister P
PhD Candidate
Collaborative Programme in Ancient and Medieval Philosophy
University of Toronto
http://individual.utoronto.ca/peterjh
Received on Wed Apr 06 2011 - 18:05:08 CEST

This archive was generated by hypermail 2.2.0 : Wed Apr 06 2011 - 18:12:02 CEST