Skip to content

Instantly share code, notes, and snippets.

View professorjamesmoriarty's full-sized avatar

John Jenkins professorjamesmoriarty

View GitHub Profile
function rangerx
if not set -q -x RANGER_LEVEL
ranger
else
exit
end
end
function ranger
if not set -q -x RANGER_LEVEL
ranger
end
exit
end
#!/usr/bin/env python3
# TODO
# add way to toggle boost (-b for example)
# cleanup redunant functions
# alternate osd, maybe built in gtk?
"""Handle vol info from pamixer and pass to aosd_cat."""
import sys
import subprocess
import os
rr() {
if [ -z "$RANGER_LEVEL" ]
then
ranger
else
exit
fi
}
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2016 Johnathan "Shaggytwodope" Jenkins <[email protected]>
#
# Distributed under terms of the MIT license.
"""
Tool to check if online, returns exit status 0 if succesful or 1 if not.
#!/bin/bash
STATUS=$(dropbox status)
if [ "$STATUS" == "Dropbox isn't running!" ]; then
START=$(dropbox start)
fi
COUNT_DONE=1
while true
color index red default "~b \"john(_g|\!| jenkins| shaggytwodope)|shaggy\" !~N !~T !~F !~p !~P"
color index red default "~b \"john(_g|\!| jenkins| shaggytwodope)|shaggy\" ~N !~T !~F !~p !~P"
color index red default "~b \"john(_g|\!| jenkins| shaggytwodope)|shaggy\" ~T !~F !~p !~P"
color index red default "~b \"john(_g|\!| jenkins| shaggytwodope)|shaggy\" ~F !~p !~P"
color header white default '^(status|lines|date|received|sender|references):'
color body green default "[*]?|@shaggytwodope|johnathon|john|jenkins|shaggy|shaggytwodope|johnathan|)[*]?"
color body green default "[*]?|@twodopeshaggy|twodope|)[*]?"
color body default default "(BAD signature)"
color body default default "(Good signature)"
#!/bin/bash
STATUS=$(dropbox status)
if [ "$STATUS" == "Dropbox isn't running!" ]; then
START=$(dropbox start)
fi
COUNT_DONE=1
while true
#! /bin/sh
bspc config border_width 2
bspc config window_gap 0
bspc config split_ratio 0.50
bspc config borderless_monocle false
bspc config gapless_monocle false
bspc config focus_by_distance true
bspc config adaptive_raise true
bspc config normal_frame_opacity 1.00
#!/bin/sh
# Set $PUUSH_API_KEY to your key and export it.
# The key is found on <http://puush.me/account/settings>.
if [ -z "$PUUSH_API_KEY" ]; then
echo "puu: please export api key" 1>&2
exit 1
fi
for file in "$@"; do