Skip to content

Instantly share code, notes, and snippets.

View coddeys's full-sized avatar

Dimas coddeys

  • Capelle aan den IJssel
View GitHub Profile
@coddeys
coddeys / gist:8a65838e74a09d51fd0c
Created July 16, 2014 11:27
coddeys.zsh-theme
# Based on robbyrussell's theme, with host and rvm indicators. Example:
# @host ➜ currentdir rvm:(rubyversion@gemset) git:(branchname)
# Get the current ruby version in use with RVM:
if [ -e ~/.rvm/bin/rvm-prompt ]; then
RUBY_PROMPT_="%{$fg_bold[blue]%}(%{$fg[green]%}\$(~/.rvm/bin/rvm-prompt s i v g)%{$fg_bold[blue]%})%{$reset_color%} "
else
if which rbenv &> /dev/null; then
RUBY_PROMPT_="%{$fg_bold[blue]%}rbenv:(%{$fg[green]%}\$(rbenv version | sed -e 's/ (set.*$//')%{$fg_bold[blue]%})%{$reset_color%} "
fi
remove mod4 = Super_R
keysym Super_R = Control_R
add Control = Control_R
clear control
clear mod4
add control = Control_L Control_R
keycode 134 = Control_R
keycode 133 = Super_R
(package-initialize)
;; hide welcome screen
(setq inhibit-splash-screen t)
;; IDO-mode
(require 'ido)
(ido-mode t)
;; ;; Flx-ido mode
Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
, borderColor = "black"
, border = TopB
, bgColor = "black"
, fgColor = "grey"
, position = Top
, lowerOnStart = True
, persistent = False
, hideOnStart = False
, commands = [ Run Network "enp5s0" [] 10
Config {
font = "xft:inconsolata:size=12:antialias=true",
-- used to make the bar appear correctly after Mod-q in older xmonad implementations (0.9.x)
-- doesn't seem to do anything anymore (0.10, darcs)
-- lowerOnStart = False,
commands = [
-- Addison, TX
Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10,
Run Memory ["-t","Mem: <usedratio>%"] 10,
Run Swap [] 10,
import XMonad
import XMonad.Layout.NoBorders
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import System.IO
main = do
xmonad $ defaultConfig {
@coddeys
coddeys / gist:11132282
Created April 21, 2014 04:31
Xmobarrc
Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
, borderColor = "black"
, border = TopB
, bgColor = "black"
, fgColor = "grey"
, position = Top
, lowerOnStart = True
, pickBroadest = False
, persistent = False
, hideOnStart = False
!-------------------------------------------------------------------------------
! Xft settings
!-------------------------------------------------------------------------------
Xft.autohint: 0
Xft.dpi: 96
Xft.antialias: 1
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
import XMonad
import XMonad.Layout.NoBorders
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import System.IO
main = do
xmonad $ defaultConfig {