This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
result="$(emacsclient --eval "(progn $@)")" | |
if [ "$result" = "nil" ] || [ -z "$result" ]; then | |
exit 1 | |
else | |
echo "$result" | |
exit 0 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 ~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
NewerOlder