Makes double press of power button bring up power menu

master
Jonathan Hodgson 4 years ago
parent c0a50b817c
commit 3b11aab6f2
  1. 6
      config.def.h

@ -192,7 +192,11 @@ static Key keys[] = {
{ 0, XF86XK_AudioMute, 0, spawn, {.v = volumeToggle } }, { 0, XF86XK_AudioMute, 0, spawn, {.v = volumeToggle } },
{ 0, XF86XK_MonBrightnessUp, 0, spawn, {.v = brightnessUp } }, { 0, XF86XK_MonBrightnessUp, 0, spawn, {.v = brightnessUp } },
{ 0, XF86XK_MonBrightnessDown, 0, spawn, {.v = brightnessDown } }, { 0, XF86XK_MonBrightnessDown, 0, spawn, {.v = brightnessDown } },
{ 0, XF86XK_PowerOff, 0, spawn, {.v = powerMenu } }, // On the pinephone, I want a single press of the power button to put the phone in sleep mode.
// I want a double press to bring up the power menu
// TODO: Make a command for screen lock
//{ 1, XF86XK_PowerOff, 0, spawn, {.v = <This will be a screen lock command> } },
{ 2, XF86XK_PowerOff, 0, spawn, {.v = powerMenu } },
{ MODKEY|ShiftMask, XK_r, 0, quit, {0} }, { MODKEY|ShiftMask, XK_r, 0, quit, {0} },
TAGKEYS( XK_1, 0) TAGKEYS( XK_1, 0)

Loading…
Cancel
Save