Skip to content

Instantly share code, notes, and snippets.

@luebking
luebking / xkbgroup.c
Created January 12, 2025 15:07
xkb layout switcher
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <X11/XKBlib.h>
int main(int argc, char **argv) {
if (argc != 2) {
printf("Usage: %s list|<match>\nMatch is lazy, the first layout beginning with the token is chosen\n", argv[0]);
return False;
:root {
--color_fg: #333;
--color_fg2: #111;
--color_bg: #fafafa;
--color_bg2: #fbfbfb;
--color_bg_in: #fdfdfd;
--color_bg_quote: #f5f5f5;
--color_code: #46640b;
--color_quote: #666;
--color_brd_light: #eee;
@luebking
luebking / abbs.sh
Created January 20, 2023 14:53
Get abbs!
abbs() {
if ! grep -q "ID=arch" /etc/os-release; then
grep -E 'NAME|ID' /etc/os-release
echo 'https://bbs.archlinux.org/misc.php?action=rules'
return 1
fi
case $1 in
"pastebin"|"0x0.st")
curl -F 'file=@-' 0x0.st
;;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
GIMP Palette
Name: Archlinux
Columns: 2
#
51 51 51 Color
250 250 250 Color
208 23 23 Color
255 28 28 Color
208 146 23 Color
255 179 28 Color