Adds power menu and removes unused binding

master
Jonathan Hodgson 4 years ago
parent e11fb64dad
commit 449d90b2e3
  1. 4
      config.def.h

@ -122,7 +122,7 @@ static const char *brightnessDown[] = { "brightness", "down", NULL };
static const char *setBackgroundRandom[] = { "rofi-background", "--earth", NULL }; static const char *setBackgroundRandom[] = { "rofi-background", "--earth", NULL };
static const char *backgroundDetails[] = { "background", "--only-notify", NULL }; static const char *backgroundDetails[] = { "background", "--only-notify", NULL };
static const char *unity_hud[] = { "hud-menu.py" }; static const char *powerMenu[] = { "rofi-shutdown", NULL };
#include "movestack.c" #include "movestack.c"
static Key keys[] = { static Key keys[] = {
@ -178,7 +178,6 @@ static Key keys[] = {
{ MODKEY, XK_w, spawn, {.v = whichproject } }, { MODKEY, XK_w, spawn, {.v = whichproject } },
{ MODKEY|ShiftMask, XK_w, spawn, {.v = project } }, { MODKEY|ShiftMask, XK_w, spawn, {.v = project } },
{ MODKEY, XK_d, spawn, {.v = pass } }, { MODKEY, XK_d, spawn, {.v = pass } },
{ MODKEY, XK_x, spawn, {.v = unity_hud } },
//Background //Background
{ MODKEY, XK_e, spawn, {.v = setBackgroundRandom } }, { MODKEY, XK_e, spawn, {.v = setBackgroundRandom } },
{ MODKEY|ControlMask, XK_e, spawn, {.v = backgroundDetails } }, { MODKEY|ControlMask, XK_e, spawn, {.v = backgroundDetails } },
@ -188,6 +187,7 @@ static Key keys[] = {
{ 0, XF86XK_AudioMute, spawn, {.v = volumeToggle } }, { 0, XF86XK_AudioMute, spawn, {.v = volumeToggle } },
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = brightnessUp } }, { 0, XF86XK_MonBrightnessUp, spawn, {.v = brightnessUp } },
{ 0, XF86XK_MonBrightnessDown, spawn, {.v = brightnessDown } }, { 0, XF86XK_MonBrightnessDown, spawn, {.v = brightnessDown } },
{ 0, XF86XK_PowerOff, spawn, {.v = powerMenu } },
TAGKEYS( XK_1, 0) TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1) TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2) TAGKEYS( XK_3, 2)

Loading…
Cancel
Save