Skip to content

Instantly share code, notes, and snippets.

@neeasade
neeasade / elisp
Created March 19, 2018 12:19
org-pomoro music hook and display workflow
#!/bin/sh
result="$(emacsclient --eval "(progn $@)")"
if [ "$result" = "nil" ] || [ -z "$result" ]; then
exit 1
else
echo "$result"
exit 0
fi
#!/usr/bin/env bash
# depends: dmenu slop xdotool
# assumes next spawned window will be floating/moveable by xdotool.
# get program name to launch using dmenu cache:
cachedir=${XDG_CACHE_HOME:-"$HOME/.cache"}
if [ -d "$cachedir" ]; then
cache=$cachedir/dmenu_run
else
cache=$HOME/.dmenu_cache # if no xdg dir, fall back to dotfile in ~
@neeasade
neeasade / cParse.sh
Created May 18, 2015 05:14
cParse.sh - xboxdrv script
#!/bin/sh
# cParse.sh
# a script to parse input from xboxdrv
# Usage : xboxdrv | cParse.sh
# makes cursor align with left joystick around a centerpoint
# depends on xdotool to do the cursor moving
# define a 'center' x,y
cX=400
cY=400