Skip to content

Instantly share code, notes, and snippets.

View Sidd-Dino's full-sized avatar

Sidd-Dino

  • No clue (Cos Pangea split apart)
View GitHub Profile
@Sidd-Dino
Sidd-Dino / modifier_parser.c
Last active July 22, 2021 09:59
[berrywm] <argument> => <modifier mask value> parser
#include <stdio.h>
#include <string.h>
#define ShiftMask (1<<0)
#define LockMask (1<<1)
#define ControlMask (1<<2)
#define Mod1Mask (1<<3)
#define Mod2Mask (1<<4)
#define Mod3Mask (1<<5)
#define Mod4Mask (1<<6)
@Sidd-Dino
Sidd-Dino / delete_on_exit_temp_folder.sh
Created August 19, 2020 02:37
folder which deletes itself when you leave it
#!/usr/bin/env bash
#This script was made on a request from one of my human
# friends. He needed a folder that would delete itself when
# leaves it.
#
# Press Ctrl+d to leave the folder and let it delete itself
#time used to creaate uniques folders
time=$(printf "%(%l%M%S)T\\n" "-1")