Fix SSD2092 wake, fuel-gauge jump, XLibre rotation, media keys, and popup rendering

This commit is contained in:
Luxferre committed 2026-11-24 11:05:18 +02:00
1 parent 7f3b3c2c0c
commit dbc0275979
43 files changed
+3388 -115

No files matched your search

+30 -16
View File
@@ -73,22 +73,19 @@ static const char *audiocmd[] = { "geminux-audio", NULL };
static const char *cameracmd[] = { "geminux-camera", NULL };
static const char *themescmd[] = { "geminux-themes", NULL };
static const char *lockcmd[] = { "geminux-lock", NULL };
static const char *shotcmd[] = {
"/bin/sh", "-c",
"mkdir -p ~/Pictures && scrot ~/Pictures/screenshot-$(date +%Y%m%d-%H%M%S).png",
NULL
};
static const char *briupcmd[] = { "brightnessctl", "set", "+10%", NULL };
static const char *bridowncmd[] = { "brightnessctl", "set", "10%-", NULL };
static const char *volupcmd[] = {
"/bin/sh", "-c", "wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+ && pkill -USR1 geminux-statusd || true", NULL
};
static const char *voldowncmd[] = {
"/bin/sh", "-c", "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && pkill -USR1 geminux-statusd || true", NULL
};
static const char *volmutecmd[] = {
"/bin/sh", "-c", "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && pkill -USR1 geminux-statusd || true", NULL
};
static const char *shotcmd[] = { "geminux-media-key", "screenshot", NULL };
static const char *shotwincmd[] = { "geminux-media-key", "screenshot-window", NULL };
static const char *briupcmd[] = { "geminux-media-key", "bri-up", NULL };
static const char *bridowncmd[] = { "geminux-media-key", "bri-down", NULL };
static const char *volupcmd[] = { "geminux-media-key", "vol-up", NULL };
static const char *voldowncmd[] = { "geminux-media-key", "vol-down", NULL };
static const char *volmutecmd[] = { "geminux-media-key", "vol-mute", NULL };
static const char *micmutecmd[] = { "geminux-media-key", "mic-mute", NULL };
static const char *playpausecmd[] = { "geminux-media-key", "play-pause", NULL };
static const char *medprevcmd[] = { "geminux-media-key", "prev", NULL };
static const char *mednextcmd[] = { "geminux-media-key", "next", NULL };
static const char *medstopcmd[] = { "geminux-media-key", "stop", NULL };
static const char *suspendcmd[] = { "doas", "/usr/bin/geminux-power-ctl", "suspend", NULL };
static const Key keys[] = {
/* modifier key function argument */
@@ -107,11 +104,28 @@ static const Key keys[] = {
{ MODKEY|ShiftMask, XK_l, spawn, {.v = lockcmd} },
{ 0, XF86XK_ScreenSaver, spawn, {.v = lockcmd} },
{ 0, XK_Print, spawn, {.v = shotcmd} },
{ ControlMask, XK_Print, spawn, {.v = shotwincmd} },
{ ShiftMask, XK_Print, spawn, {.v = shotwincmd} },
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = briupcmd} },
{ 0, XF86XK_MonBrightnessDown, spawn, {.v = bridowncmd} },
{ 0, XF86XK_AudioRaiseVolume, spawn, {.v = volupcmd} },
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = voldowncmd} },
{ 0, XF86XK_AudioMute, spawn, {.v = volmutecmd} },
{ 0, XF86XK_AudioRecord, spawn, {.v = micmutecmd} },
{ 0, XF86XK_AudioMicMute, spawn, {.v = micmutecmd} },
{ 0, XF86XK_AudioPlay, spawn, {.v = playpausecmd} },
{ 0, XF86XK_AudioPause, spawn, {.v = playpausecmd} },
{ 0, XF86XK_AudioPrev, spawn, {.v = medprevcmd} },
{ 0, XF86XK_AudioNext, spawn, {.v = mednextcmd} },
{ 0, XF86XK_AudioStop, spawn, {.v = medstopcmd} },
{ 0, XF86XK_Tools, spawn, {.v = controlcmd} },
{ 0, XF86XK_Option, spawn, {.v = audiocmd} },
{ 0, XF86XK_TaskPane, spawn, {.v = launchercmd} },
{ 0, XF86XK_TopMenu, spawn, {.v = launchercmd} },
{ 0, XF86XK_UWB, spawn, {.v = netcmd} },
{ 0, XF86XK_WLAN, spawn, {.v = netcmd} },
{ 0, XF86XK_Sleep, spawn, {.v = suspendcmd} },
{ 0, XF86XK_PowerDown, spawn, {.v = controlcmd} },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1} },
{ MODKEY, XK_k, focusstack, {.i = -1} },