Skip to content

Instantly share code, notes, and snippets.

View ivoarch's full-sized avatar

ivoarch

  • none
View GitHub Profile
.highlight { background-color: #464646; }
.c { color: #7f9f7f; font-style: italic } /* Comment */
/* .err { border: 1px solid #cc9393 } /\* Error *\/ */
.k { color: #f0dfaf; font-weight: bold } /* Keyword */
.o { color: #dcdccc } /* Operator */
.cm { color: #7f9f7f; font-style: italic } /* Comment.Multiline */
.cp { color: #7f9f7f; } /* Comment.Preproc */
.c1 { color: #7f9f7f; font-style: italic } /* Comment.Single */
.cs { color: #7f9f7f; font-weight: bold } /* Comment.Special */
.gd { color: #dcdccc } /* Generic.Deleted */
@ivoarch
ivoarch / runorraise.diff
Last active October 12, 2015 23:57
equivalent to stumpwm's [run-or-raise] action for DWM
--- config.def.h.orig 2013-11-29 13:55:53.503216554 +0100
+++ config.def.h 2013-11-29 13:56:58.268191528 +0100
@@ -53,12 +53,14 @@
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", se\
lbgcolor, "-sf", selfgcolor, NULL };
static const char *termcmd[] = { "st", NULL };
+static const char *emacs[] = { "emacs", NULL, NULL, NULL, "Emacs" };
#!/usr/bin/env bash
dir=$(dirname $0)
gconfdir=/apps/gnome-terminal/profiles
echo # This makes the prompts easier to follow (as do other random echos below)
########################
### Select a profile ###
########################
@ivoarch
ivoarch / motd
Created May 4, 2013 16:23
The Message of the Day (motd) http://www.sjjones.me.uk/files.html
================================================================================================================

.
/#\ _  _ _  _
/###\ __ _ _ __ ___| |__ | (_)_ __ _ ___ __| | _ ___ __ __
/#####\ / _` | '__/ __| '_ \ | | | '_ \| | | \ \/ /| | / \ | _ \ \/ |
/##.-.##\ | (_| | | | (__| | | || | | | | | |_| |> < | | / ^ \| / |\/| |
/##( )##\ \__._|_| \___|_| |_||_|_|_| |_|\__._/_/\_\| |/_/ \_\_|_\_| |_|
/#.-- --.#\  |_|
@ivoarch
ivoarch / zenburn.py
Last active July 18, 2022 00:40
Zenburn like colorscheme for https://github.com/hut/ranger .
# Ivaylo Kuzev <ivkuzev@gmail.com>, 2014
# Zenburn like colorscheme for https://github.com/hut/ranger .
# default colorscheme.
# Copyright (C) 2009-2013 Roman Zimbelmann <hut@lepus.uberspace.de>
# This software is distributed under the terms of the GNU GPL version 3.
from ranger.gui.colorscheme import ColorScheme
from ranger.gui.color import *
@ivoarch
ivoarch / .dircolors
Last active February 16, 2020 09:54
Zenburn color theme for .dircolors!
# Zenburn color theme for the color GNU ls utility.
# Ivaylo Kuzev <ivkuzev@gmail.com>, 2014
Moved to https://github.com/ivoarch/dircolors-zenburn
@ivoarch
ivoarch / zenburn-theme
Created January 4, 2014 15:45
zenburn like color scheme for newsbeuter <http://www.newsbeuter.org/>
# Ivaylo Kuzev <ivkuzev@gmail.com>, 2014
# zenburn like color scheme for newsbeuter <http://www.newsbeuter.org/>
color background color188 color237
color info color223 color234
color article color188 color237
color listnormal color188 color237
color listfocus color108 color234
color listnormal_unread color108 color234
color listfocus_unread color234 color108
#!/usr/bin/env ruby
# coding: utf-8
# ANSI color scheme script
# Original: http://crunchbanglinux.org/forums/post/128584/#p128584
# Modified by Ivo in (Ruby)
0.upto(6).each do |f|
print "\033[#{f+41}m\033[#{f+30}m██▓▒░"
end
puts "\033[37m██"
#!/usr/bin/env ruby
# coding: utf-8
# ANSI color scheme script
# Author: Ivaylo Kuzev <ivkuzev[at]gmail[dot]com>
# Original: http://crunchbanglinux.org/forums/post/134749/#p134749
# Modified using Ruby.
CL = "\e[0m"
BO = "\e[1m"
@ivoarch
ivoarch / prompt.zsh
Last active August 29, 2015 13:59
Minimal 256color prompt for zsh users
# PROMPT - themes for ZSH
# TODO:
# o add git support ?
# Set required options.
setopt promptsubst
local bold="%B"
local unbold="%b"