Skip to content

Instantly share code, notes, and snippets.

@ortango
ortango / sxhkd-numlock.patch
Created December 24, 2021 02:18
patch to enable numlock keypad keybindings
diff -ruN a/parse.c b/parse.c
--- a/parse.c 2021-12-23 21:15:40.073380903 -0500
+++ b/parse.c 2021-12-23 21:15:50.025796494 -0500
@@ -33,7 +33,8 @@
#include "parse.h"
xcb_keysym_t Alt_L, Alt_R, Super_L, Super_R, Hyper_L, Hyper_R,
- Meta_L, Meta_R, Mode_switch, Num_Lock, Scroll_Lock;
+ Meta_L, Meta_R, Mode_switch, Num_Lock, Scroll_Lock,
+ KP_Space, KP_9;
@ortango
ortango / lsvisible.jq
Created October 27, 2021 17:03
wmfocus quick n' dirty stdin support
#!/bin/jq -rf
.monitors[] |
.focusedDesktopId as $d |
.desktops[] |
select(.id==$d) |
.focusedNodeId as $fw |
getpath(paths(.client?!=null and .hidden==false)) |
.id as $w |
.client |