Skip to content

Instantly share code, notes, and snippets.

View sneetsher's full-sized avatar
🙂
I may be slow to respond.

Abdellah C. sneetsher

🙂
I may be slow to respond.
  • Jijel, Algeria
View GitHub Profile
@sneetsher
sneetsher / locate-pointer.c
Last active July 6, 2021 13:59
Some windows manager missing option to locate mouse pointer as accessibity feature.
/*
*
* File: locate-pointer.c
*
* Some windows manager missing option to locate mouse pointer as accessibity feature.
* To get transparent window need to activate `composite` service for wm.
* Coded in c / xlib / cairo so it can work in most wm's.
*
* Coded by: Abdellah Chelli
* Date: January 2015
@sneetsher
sneetsher / svg_slice.py
Created January 20, 2015 16:10
SVG is an XML, you can use this python script to generate slices. Actually, it does not slice it, but uses same copy of input file with different values of viewBox to show only target area.
#!/usr/bin/env python
"""
Generate slices
python svg_slice.py 2 1 askUbuntu.svg
ie: 2x1 grid
Then use Inkscape to export PDF for each slice/cell
@sneetsher
sneetsher / unity-xkbmod.c
Created January 20, 2015 15:49
a simple prototype keyboard modifiers indicator for Unity.
/*
* unity-xkbmod.c
*
* Copyright 2014 Sneetsher <sneetsher@localhost>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*