Skip to content

Instantly share code, notes, and snippets.

@notuxic
notuxic / pointer_region.sh
Last active June 20, 2022 17:23
[bspwm] split-preselection using mouse
#!/bin/sh
## This script allows to preselect the next window split
## direction for bspwm with the mouse.
##
## Usage Example (add to .sxhkdrc):
## super + ctrl + {_,shift + } button3
## bspc node {,$(xdotool getmouselocation | cut -d ':' -f 5)} -p $(~/.config/bspwm/pointer_region.sh {active,all})
##
## Author: notuxic
@notuxic
notuxic / libSREV
Created August 28, 2014 19:02
libSREV - a simple and clean way to add input regex validation to a html form
/*
* libSREV - Simple Regular Expression Validation
* ==============================================
*
* Author: notuxic
* Version: 0.1
* License: WTFPL (Do What The Fuck You Want To Public License)
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* Version 2, December 2004