Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am phocean on github.
* I am phocean (https://keybase.io/phocean) on keybase.
* I have a public key whose fingerprint is 0D13 6B16 9E82 DAB7 3E35 B7B5 5EBF 3049 A74E 3C31
To claim this, I am signing this object:
Verifying that +phocean is my blockchain ID. https://onename.com/phocean
@phocean
phocean / phocean.asc
Created May 1, 2018 16:12
My public GnuPG key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQINBE2pzm0BEADdeGNVXvrVHs/y1xYxsf1Ri9aT8wuLMZ0AF0ZI8z1qIw7zg7Qw
2IBXgwtwE33UNQ59nxeNIbXO1Jk+mcsg5DKBEF9bUNdxPhvgWYxubs79GRjzoHmW
znjPt0UQs6DTLyMX2K90S0FKuMhvsyTWcHu/Uv5Q3WVaDzywCMfpDxTyoWYEGzYz
B2KWhdxuSaHGGUZCqB60Z9x8PJ/mbUx7U5jrbqJz30sZtvzaTicSq0wzenmBZUEz
35BfGC7zkc2UICt7NfjzCWCPSe3PwMCTPhQAhQBEI8JNARyIkcB3u6toMwJOj+ik
8/YcRPqbLrEYOIFec4rn1+lHiKwshKzPfZqOP1b16f45ma1iEUdEbBOXdNMTSSTf
oSjx56L4ir/eQS/8SlcM/AqP4MTIbtRUF5+5MyyCPpPKPvfX97Q5cUgAEvCWM4+6
@phocean
phocean / screenshot
Last active March 4, 2019 09:42
Simple wrapper script to take nicer X11 screenshots, that look alike with either SSD or CSD windows.
#!/bin/bash
# Simple wrapper script to take nicer X11 screenshots:
# - uniform appearance whether the target window is using server-side or client-side decorations ;
# - wallpaper and background removed ;
# - shadow effect ;
# - always sending the result to the clipboard.
#
# Prerequisites:
# - X11 environment and basic utilities (xprop, import);
git clone --bare https://github.com/phocean/dotfiles $HOME/.dotfiles
function config {
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
mkdir -p .dotfiles-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";