Add awesomebar toggle (hideunselectedtitle)
This commit is contained in:
parent
45242b2980
commit
58d4aceb88
|
@ -354,6 +354,10 @@
|
||||||
!!
|
!!
|
||||||
- speedwm.hidetitle: 0
|
- speedwm.hidetitle: 0
|
||||||
!!
|
!!
|
||||||
|
!! Hide unselected title/taskbar. If set to 0, all tasks will be shown. Otherwise only the selected task will be shown. (1/0)
|
||||||
|
!!
|
||||||
|
- speedwm.hideunselectedtitle: 0
|
||||||
|
!!
|
||||||
!! Hide status bar. If set to 0, the status bar will be shown. Otherwise the status bar will not be shown. (1/0)
|
!! Hide status bar. If set to 0, the status bar will be shown. Otherwise the status bar will not be shown. (1/0)
|
||||||
!!
|
!!
|
||||||
- speedwm.hidestatus: 0
|
- speedwm.hidestatus: 0
|
||||||
|
|
|
@ -212,7 +212,8 @@ static int underlinevoffset = 0; /* How far above the bottom o
|
||||||
/* Bar item options */
|
/* Bar item options */
|
||||||
static int hidebar = 0; /* Hide the bar (1) or show (0) */
|
static int hidebar = 0; /* Hide the bar (1) or show (0) */
|
||||||
static int hidelayout = 0; /* Hide layout indicator (1) or show (0) */
|
static int hidelayout = 0; /* Hide layout indicator (1) or show (0) */
|
||||||
static int hidetitle = 0; /* Hide title (1) or show (0) */
|
static int hidetitle = 0; /* Hide the title part of the bar (1) or show (0) */
|
||||||
|
static int hideunselectedtitle = 0; /* Hide unselected title (1) or show (0) */
|
||||||
static int hidestatus = 0; /* Hide status bar (1) or show (0) */
|
static int hidestatus = 0; /* Hide status bar (1) or show (0) */
|
||||||
static int hideicon = 0; /* Hide icon (1) or show (0) */
|
static int hideicon = 0; /* Hide icon (1) or show (0) */
|
||||||
static int hidetags = 0; /* Hide status bar (1) or show (0) */
|
static int hidetags = 0; /* Hide status bar (1) or show (0) */
|
||||||
|
|
|
@ -2346,6 +2346,10 @@ resizebarwin(m);
|
||||||
/* if it's not a window, stop */
|
/* if it's not a window, stop */
|
||||||
if (!ISVISIBLE(c))
|
if (!ISVISIBLE(c))
|
||||||
continue;
|
continue;
|
||||||
|
/* hide unselected title */
|
||||||
|
else if (m->sel != c && hideunselectedtitle)
|
||||||
|
continue;
|
||||||
|
|
||||||
/* selected clients */
|
/* selected clients */
|
||||||
if (m->sel == c && colorselectedtitle)
|
if (m->sel == c && colorselectedtitle)
|
||||||
scm = SchemeTitleSel;
|
scm = SchemeTitleSel;
|
||||||
|
|
|
@ -129,6 +129,7 @@ ResourcePref resources[] = {
|
||||||
{ "layoutposition", INTEGER, &layoutposition },
|
{ "layoutposition", INTEGER, &layoutposition },
|
||||||
{ "hidelayout", INTEGER, &hidelayout },
|
{ "hidelayout", INTEGER, &hidelayout },
|
||||||
{ "hidetitle", INTEGER, &hidetitle },
|
{ "hidetitle", INTEGER, &hidetitle },
|
||||||
|
{ "hideunselectedtitle", INTEGER, &hideunselectedtitle },
|
||||||
{ "hideicon", INTEGER, &hideicon },
|
{ "hideicon", INTEGER, &hideicon },
|
||||||
{ "hidetags", INTEGER, &hidetags },
|
{ "hidetags", INTEGER, &hidetags },
|
||||||
{ "hideemptytags", INTEGER, &hideemptytags },
|
{ "hideemptytags", INTEGER, &hideemptytags },
|
||||||
|
|
Loading…
Reference in a new issue