Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Fix X window manager name properties to work around java bugs with
# non-reparenting window managers. This is a different solution from
# the wmname utility provided by suckless, as it is NetWM compatible,
# while wmname sets the value of _NET_SUPPORTING_WM_CHECK to root win.
IRONIC_WM_NAME="LG3D"
NET_WIN=$(xprop -root _NET_SUPPORTING_WM_CHECK | awk -F "# " '{print $2}')
@jonfk
jonfk / ubuntusetupvm6414.04.1.sh
Last active August 29, 2015 14:08
ubuntu setup vm 64-bit 14.04.1
echo 'Grab a cup of tea. This is going to take a while...'
sudo apt-get update -qq
sudo apt-get upgrade -y
sudo apt-get update -qq
sudo apt-get install -yq emacs24 git vim curl wget openjdk-7-jdk tmux awesome awesome-extra xchat
git clone https://github.com/jonfk/dotfiles.git
cd dotfiles;./dotfiles -u;
cd
@jonfk
jonfk / .emacs
Last active December 15, 2015 14:59
My emacs config. Emacs 24+
(setq inhibit-startup-screen t)
(setq inhibit-splash-screen t)
;;(setq-default truncate-lines t)
(setq visible-bell t)
(require 'cl)
(setq scroll-step 1
scroll-conservatively 10000)
;; Custom message in the scratch buffer
@jonfk
jonfk / .vimrc
Last active December 14, 2015 06:39
.vimrc
"forget being compatible with good ol' vi
set nocompatible
" Remove the annoying bell
set visualbell
set encoding=utf-8
" Get that filetype stuff happening
filetype on