Skip to content

Instantly share code, notes, and snippets.

View Enr1g's full-sized avatar
👁️
👁

Enr1g Enr1g

👁️
👁
View GitHub Profile
@Enr1g
Enr1g / top_left.c
Last active September 24, 2023 20:52
Simple program (faster C version and more readable Python version) to move Guake to the top left corner of the active monitor in i3.
// gcc -Wall -lXrandr -lX11 -lxdo top_left.c -o top_left
#include "i3/ipc.h"
#include "X11/extensions/Xrandr.h"
#include "X11/Xlib.h"
#include "xdo.h"
#include "stddef.h"
#include <stdio.h>
#include <stdlib.h>