Fix global Power menu key handling, SIP G.711 audio routing, Webarchy audio playback, and ReMEdy Call menu key
This commit is contained in:
1 parent
d7335b5ebe
commit
0af39d9fa0
76 files changed
+506
-104
No files matched your search
@@ -2138,6 +2138,20 @@ int main(int argc, char** argv) {
|
||||
unsigned int kc = ev.xkey.keycode;
|
||||
KeySym sym = XLookupKeysym(&ev.xkey, 0);
|
||||
|
||||
if (isPress && (sym == XF86XK_PowerOff || kc == 124)) {
|
||||
unfocusWindow(false);
|
||||
int64_t tNow = nowMs();
|
||||
writeSoftkeySuppress(tNow + 500);
|
||||
overlayCooldownUntilMs = tNow + 500;
|
||||
int ffd = ::open("/tmp/dwm_plugin_dmenu.fifo",
|
||||
O_WRONLY | O_NONBLOCK | O_CLOEXEC);
|
||||
if (ffd >= 0) {
|
||||
(void)::write(ffd, "OPEN power\n", 11);
|
||||
::close(ffd);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if (isPress && (sym == XF86XK_AudioLowerVolume ||
|
||||
sym == XF86XK_AudioRaiseVolume)) {
|
||||
audioOut.adjustSpeakerVol(
|
||||
|
||||
Reference in new issue
Block a user