|
|
@ -125,6 +125,8 @@ static const char *backgroundDetails[] = { "background", "--only-notify", NULL } |
|
|
|
static const char *lockScreen[] = { "screenlock", "--suspend", NULL }; |
|
|
|
static const char *lockScreen[] = { "screenlock", "--suspend", NULL }; |
|
|
|
static const char *powerMenu[] = { "rofi-shutdown", NULL }; |
|
|
|
static const char *powerMenu[] = { "rofi-shutdown", NULL }; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const char *toggleKeyboard[] = { "toggleKeyboard", NULL }; |
|
|
|
|
|
|
|
|
|
|
|
#include "movestack.c" |
|
|
|
#include "movestack.c" |
|
|
|
|
|
|
|
|
|
|
|
#define MULTIKEY_THRESHOLD_MS_PRESS 200 |
|
|
|
#define MULTIKEY_THRESHOLD_MS_PRESS 200 |
|
|
@ -194,10 +196,12 @@ static Key keys[] = { |
|
|
|
{ 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 } }, |
|
|
|
// On the pinephone, I want a single press of the power button to put the phone in sleep mode.
|
|
|
|
// 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
|
|
|
|
// I want a double press to toggle the keyboard
|
|
|
|
|
|
|
|
// I want a hold press to bring up the power menu
|
|
|
|
// TODO: Make a command for screen lock
|
|
|
|
// TODO: Make a command for screen lock
|
|
|
|
{ 0, XF86XK_PowerOff, 1, spawn, {.v = lockScreen } }, |
|
|
|
{ 0, XF86XK_PowerOff, 1, spawn, {.v = lockScreen } }, |
|
|
|
{ 0, XF86XK_PowerOff, 2, spawn, {.v = powerMenu } }, |
|
|
|
{ 0, XF86XK_PowerOff, 2, spawn, {.v = toggleKeyboard } }, |
|
|
|
|
|
|
|
{ 0, XF86XK_PowerOff, 3, 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) |
|
|
|