Skip to content

Instantly share code, notes, and snippets.

View paulbdavis's full-sized avatar

Paul Davis paulbdavis

View GitHub Profile
@paulbdavis
paulbdavis / zenburn.html
Created February 14, 2013 21:10
Zenburn Color Scheme
<table class="wikitable" style="text-align:center">
<caption>Zenburn color definitions (originally defined for <a href="/w/index.php?title=Vim&amp;action=edit" class="new" title="Vim">Vim</a>)</caption>
<tr>
<th>Category</th>
<th>Example Text</th>
<th colspan="2">Foreground</th>
<th colspan="2">Background</th>
<th>Extra</th>
</tr>
<tr>
@paulbdavis
paulbdavis / i3zenburn-colors
Created February 14, 2013 20:55
i3 zenburn colors
# colors
client.focused #688060 #688060 #303030 #ffcfaf
client.focused_inactive #3f3f3f #3F3F3F #7f9f7f #3f3f3f
client.unfocused #3f3f3f #3F3F3F #DCDCCC #3f3f3f
client.urgent #dca3a3 #dca3a3 #DCDCCC #3f3f3f
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
@paulbdavis
paulbdavis / kernel-codename
Last active October 1, 2017 15:56
Bash Script for getting your current Linux Kernel's Codename from the kernel source makefile. Uses a cache file so it does not do excessive curl calls (especially when run in something like conky)
#!/usr/bin/env bash
pattern="NAME\s\?=\s\?"
kernelVersion=$(uname -r | sed "s/-.*//g")
# strip trailing .0 version, since the git tags on kernel.org do not have them
kernelVersion=${kernelVersion/%".0"/}
cacheFile="$HOME/.kernelcodename"
if [ -f "$cacheFile" ]
then
@paulbdavis
paulbdavis / conkyjson-script
Created February 4, 2013 19:16
conky json kickoff script
#!/usr/bin/env bash
echo '{"version":1}'
echo '['
echo '[],'
exec conky -c "$HOME/.conkyjson"
@paulbdavis
paulbdavis / conkyjson
Last active February 16, 2020 23:03
conky rc for json output to i3 bar
out_to_x no
own_window no
out_to_console yes
background no
max_text_width 0
# Update interval in seconds
update_interval 2.0
# This is the number of times Conky will update before quitting.