Skip to content

Instantly share code, notes, and snippets.

J.C. Yamokoski jonyamo

Block or report user

Report or block jonyamo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jonyamo
jonyamo / colorscheme-text
Created Jun 23, 2013
Script for echoing hex values of current term colors
View colorscheme-text
#!/bin/bash
colors=($(xrdb -query | sed -n 's/.*color\([0-9]\)/\1/p' | sort -nu | cut -f2))
echo -e "\e[1;37m
Black Red Green Yellow Blue Magenta Cyan White
──────────────────────────────────────────────────────────────────────\e[0m"
for i in {0..7}; do echo -en "\e[$((30+$i))m ${colors[i]} \e[0m"; done
echo
for i in {8..15}; do echo -en "\e[1;$((22+$i))m ${colors[i]} \e[0m"; done
@jonyamo
jonyamo / colorscheme-bars
Last active Dec 18, 2015
Script for echoing current term color values
View colorscheme-bars
#!/bin/sh
case "$1" in
1)
echo "
\033[0;30m██ \033[0;31m██ \033[0;32m██ \033[0;33m██ \033[0;34m██ \033[0;35m██ \033[0;36m██ \033[0;37m██
\033[0;30m██ \033[0;31m██ \033[0;32m██ \033[0;33m██ \033[0;34m██ \033[0;35m██ \033[0;36m██ \033[0;37m██
\033[1;30m██ \033[1;31m██ \033[1;32m██ \033[1;33m██ \033[1;34m██ \033[1;35m██ \033[1;36m██ \033[1;37m██
\033[1;30m██ \033[1;31m██ \033[1;32m██ \033[1;33m██ \033[1;34m██ \033[1;35m██ \033[1;36m██ \033[1;37m██
";;
@jonyamo
jonyamo / i3-exit
Last active Aug 27, 2019
Exit script for the i3 window manager based off of exit script from CrunchBang Linux.
View i3-exit
#!/usr/bin/env python
# based on cb-exit used in CrunchBang Linux <http://crunchbanglinux.org/>
import pygtk
pygtk.require('2.0')
import gtk
import os
import getpass
You can’t perform that action at this time.