Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a bunch of configuration files

  • Loading branch information...
commit 1a1b28ac338ee98639e75fca4a32f65a0cd17751 1 parent ee55b4a
Kristoffer Grönlund authored
View
4 .Xmodmap
@@ -0,0 +1,4 @@
+keycode 78 = ISO_Next_Group Menu ISO_Next_Group Menu ISO_Next_Group Menu
+keycode 66 = Control_L
+
+
View
149 .bashrc
@@ -0,0 +1,149 @@
+# ~/.bashrc: executed by bash(1) for non-login shells.
+# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
+# for examples
+
+# If not running interactively, don't do anything
+[ -z "$PS1" ] && return
+
+# don't put duplicate lines in the history. See bash(1) for more options
+export HISTCONTROL=ignoredups
+# ... and ignore same sucessive entries.
+export HISTCONTROL=ignoreboth
+
+export HISTSIZE=5000
+
+# check the window size after each command and, if necessary,
+# update the values of LINES and COLUMNS.
+shopt -s checkwinsize
+
+# make less more friendly for non-text input files, see lesspipe(1)
+[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
+
+# set variable identifying the chroot you work in (used in the prompt below)
+if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
+ debian_chroot=$(cat /etc/debian_chroot)
+fi
+
+# add ~/bin to path
+export PATH=$PATH:$HOME/bin/
+
+# add plm to python path
+#export PYTHONPATH=$PYTHONPATH:$HOME/work/plm
+
+# set a fancy prompt (non-color, unless we know we "want" color)
+case "$TERM" in
+ xterm-color) color_prompt=yes;;
+esac
+
+# uncomment for a colored prompt, if the terminal has the capability; turned
+# off by default to not distract the user: the focus in a terminal window
+# should be on the output of commands, not on the prompt
+force_color_prompt=yes
+
+if [ -n "$force_color_prompt" ]; then
+ if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
+ # We have color support; assume it's compliant with Ecma-48
+ # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
+ # a case would tend to support setf rather than setaf.)
+ color_prompt=yes
+ else
+ color_prompt=
+ fi
+fi
+
+if [ "$color_prompt" = yes ]; then
+# PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
+ PS1='${debian_chroot:+($debian_chroot)}\[\033[01;34m\]\w\[\033[00m\]\$ '
+else
+# PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
+ PS1='${debian_chroot:+($debian_chroot)}\w\$ '
+fi
+unset color_prompt force_color_prompt
+
+# If this is an xterm set the title to user@host:dir
+case "$TERM" in
+xterm*|rxvt*)
+# PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
+ PROMPT_COMMAND='echo -ne "\033]0;${PWD/$HOME/~}\007"'
+ ;;
+*)
+ ;;
+esac
+
+# Alias definitions.
+# You may want to put all your additions into a separate file like
+# ~/.bash_aliases, instead of adding them here directly.
+# See /usr/share/doc/bash-doc/examples in the bash-doc package.
+
+#if [ -f ~/.bash_aliases ]; then
+# . ~/.bash_aliases
+#fi
+
+# enable color support of ls and also add handy aliases
+if [ "$TERM" != "dumb" ] && [ -x /usr/bin/dircolors ]; then
+ eval "`dircolors -b`"
+ alias ls='ls --color=auto -F'
+ alias dir='ls --color=auto -F --format=vertical'
+ alias vdir='ls --color=auto -F --format=long'
+
+ alias grep='grep --color=auto'
+ alias fgrep='fgrep --color=auto'
+ alias egrep='egrep --color=auto'
+fi
+
+# some more ls aliases
+alias ll='ls -l'
+alias la='ls -A'
+alias l='ls -CF'
+
+alias findpy='grin -I "*.py" -d "build,.git,debian"'
+
+# my aliases
+#alias ec='emacsclient -n'
+alias yo='ssh -X'
+
+# enable programmable completion features (you don't need to enable
+# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
+# sources /etc/bash.bashrc).
+if [ -f /etc/bash_completion ]; then
+ . /etc/bash_completion
+fi
+
+alias snx='LD_PRELOAD=/usr/lib/libstdc++-libc6.2.2.so.3 snx'
+
+alias pull='git pull origin'
+alias push='git push origin'
+
+function parse_git_branch
+{
+ ref=$(git symbolic-ref HEAD 2> /dev/null) || return
+ echo "("${ref#refs/heads/}")"
+}
+
+function proml {
+ local BLUE="\[\033[0;34m\]"
+ local RED="\[\033[0;31m\]"
+ local LIGHT_RED="\[\033[1;31m\]"
+ local GREEN="\[\033[0;32m\]"
+ local LIGHT_GREEN="\[\033[1;32m\]"
+ local WHITE="\[\033[1;37m\]"
+ local LIGHT_GRAY="\[\033[0;37m\]"
+ local LIGHT_BLUE="\[\033[1;34m\]"
+ local RESET="\[\033[0;00m\]"
+ case $TERM in
+ xterm*)
+ TITLEBAR="\[\033]0;\u@\h:\w \$(parse_git_branch)\007\]"
+ ;;
+ *)
+ TITLEBAR=""
+ ;;
+ esac
+
+PS1="${TITLEBAR}\
+$LIGHT_BLUE\w$RESET \$(parse_git_branch)\
+$WHITE\$ $RESET"
+PS2='> '
+PS4='+ '
+}
+proml
+
View
5 .emacs.d/init.el
@@ -471,9 +471,8 @@ point."
(bar-cursor-mode t)
-(global-set-key "\M-N" 'cyclebuffer-forward)
-(global-set-key "\M-P" 'cyclebuffer-backward)
-
+(global-set-key "\M-n" 'cyclebuffer-forward)
+(global-set-key "\M-p" 'cyclebuffer-backward)
View
22 .fonts.conf
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <match target="pattern" >
+ <edit mode="assign" name="rgba" >
+ <const>rgb</const>
+ </edit>
+
+ <edit mode="assign" name="hinting" >
+ <bool>true</bool>
+ </edit>
+
+ <edit mode="assign" name="hintstyle" >
+ <const>hintslight</const>
+ </edit>
+
+ <edit mode="assign" name="antialias" >
+ <bool>true</bool>
+ </edit>
+ </match>
+</fontconfig>
+
View
28 .gitconfig
@@ -0,0 +1,28 @@
+[user]
+ name = Kristoffer Grönlund
+ email = kristoffer.gronlund@purplescout.se
+[color]
+ branch = auto
+ status = auto
+ diff = auto
+ ui = auto
+[pack]
+ threads = 2
+[giggle]
+ compact-mode = false
+ main-window-maximized = false
+ main-window-geometry = 1111x1018+68+0
+ main-window-view = HistoryView
+ file-view-vpane-position = 701
+ file-view-hpane-position = 203
+ history-view-vpane-position = 369
+[merge]
+ tool = meld
+[alias]
+ ci = commit
+ age = !git-age $0
+ pulln = !git-pulln $0
+ wtf = status
+ d = diff
+ publish = !git-publish $0
+ track-remote = !git-trackremote $0
View
BIN  bin/cake
Binary file not shown
View
6 bin/ec
@@ -0,0 +1,6 @@
+#!/bin/sh
+if pgrep emacs ; then
+ emacsclient --no-wait "$1"
+else
+ emacs --file "$1" &
+fi
View
2  bin/ecompile
@@ -0,0 +1,2 @@
+#!/bin/sh
+emacs -batch -f batch-byte-compile $@
View
13 epylint → bin/epylint
@@ -1,13 +1,13 @@
#!/usr/bin/env python
-
+
import re
import sys
-
+
from subprocess import *
-
+
p = Popen("pylint -f parseable -r n --disable-msg-cat=C,R %s" %
sys.argv[1], shell = True, stdout = PIPE).stdout
-
+
for line in p.readlines():
match = re.search("\\[([WE])(, (.+?))?\\]", line)
if match:
@@ -18,13 +18,12 @@ for line in p.readlines():
msg = "Warning"
else:
msg = "Error"
-
+
if func:
line = re.sub("\\[([WE])(, (.+?))?\\]",
"%s (%s):" % (msg, func), line)
else:
line = re.sub("\\[([WE])?\\]", "%s:" % msg, line)
print line,
-
+
p.close()
-
View
15 bin/git-publish
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+if [ $# -ne 1 ]
+then
+ref=$(git symbolic-ref HEAD 2> /dev/null) || return
+branch=${ref#refs/heads/}
+else
+branch=$1
+ref=refs/heads/${branch}
+fi
+
+git push origin ${branch}:${ref}
+git config branch.${branch}.remote origin
+git config branch.${branch}.merge ${ref}
+
View
15 bin/git-pulln
@@ -0,0 +1,15 @@
+#!/bin/sh
+PSC() {
+ echo "\033[1m$*\033[m"
+}
+
+for P in "$@"; do
+ if [ -d $P ]; then
+ WD=`pwd`
+ cd $P
+ echo "$(PSC Pulling $P)"
+ git pull --rebase
+ cd $WD
+ fi
+done
+
View
6 bin/git-trackremote
@@ -0,0 +1,6 @@
+#!/bin/sh
+ref=$(git symbolic-ref HEAD 2> /dev/null) || return
+branch=${ref#refs/heads/}
+
+git config branch.${branch}.remote origin
+git config branch.${branch}.merge ${ref}
View
4 bin/gitload
@@ -0,0 +1,4 @@
+#!/usr/bin/sh
+
+patch -p1 < $1
+
View
6 bin/gitsave
@@ -0,0 +1,6 @@
+#!/usr/bin/sh
+
+git diff > $1
+git reset --hard HEAD
+echo "Changes saved in $1."
+
View
3  bin/home
@@ -0,0 +1,3 @@
+#!/bin/sh
+nautilus --no-desktop $HOME &
+
View
264 bin/jules
@@ -0,0 +1,264 @@
+#!/usr/bin/env python
+# copyright 2006 Kristoffer Gronlund
+# licensed under the GPL v2.
+
+import pygtk
+import gtk
+import gobject
+import os
+import os.path
+import pickle
+pygtk.require('2.0')
+
+from jules_config import *
+
+default_folder = ("", "")
+folder_list = []
+
+def save_paths():
+ f = open(SAVE_NAME, "w")
+ pickle.dump(folder_list, f)
+ pickle.dump(default_folder, f)
+ f.close()
+ print "written paths"
+
+def load_paths():
+ if os.path.exists(SAVE_NAME):
+ try:
+ global folder_list
+ global default_folder
+ f = open(SAVE_NAME, "r")
+ folder_list = pickle.load(f)
+ default_folder = pickle.load(f)
+ f.close()
+ print "loaded paths: ", folder_list
+ except:
+ pass
+
+class FolderSelector(gtk.Window):
+ def __init__(self, jules):
+ gtk.Window.__init__(self, gtk.WINDOW_TOPLEVEL)
+ print "init folder selector", self, jules
+ self.set_title("Select Folder")
+ self.jules = jules
+
+ self.set_size_request(140, 200)
+
+ self.list_model = gtk.ListStore(gobject.TYPE_STRING)
+ self.tree = gtk.TreeView(self.list_model)
+ self.folder_column = gtk.TreeViewColumn('Folder')
+ self.tree.append_column(self.folder_column)
+
+ self.folder_cell = gtk.CellRendererText()
+ self.folder_column.pack_start(self.folder_cell, True)
+ self.folder_column.add_attribute(self.folder_cell, 'text', 0)
+
+ self.tree.set_search_column(0)
+
+ self.icon_theme = gtk.icon_theme_get_default()
+
+ self.tree.connect("row-activated", self.on_list_activate)
+ self.tree.connect("button-press-event", self.on_button_press)
+
+ load_paths()
+ self.update_list()
+
+ self.add(self.tree)
+ self.show_all()
+ self.tree.columns_autosize()
+ print "done init"
+
+ def on_list_activate(self, tree, path, column):
+ iter = self.list_model.get_iter(path)
+ (name,) = self.list_model.get(iter, 0)
+ for f in folder_list:
+ (fname, path) = f
+ if fname == name:
+ print "opening path ", path
+ self.jules.open_project(fname, path)
+ self.hide()
+ return
+
+ def on_button_press(self, widget, event):
+ if event.button == 3:
+ m = gtk.Menu()
+ add = gtk.ImageMenuItem('Add Folder')
+ rem = gtk.ImageMenuItem('Remove Folder')
+ add.connect('activate', self.on_add_folder)
+ rem.connect('activate', self.on_remove_folder)
+ img = gtk.Image()
+ img.set_from_stock(gtk.STOCK_ADD, gtk.ICON_SIZE_MENU)
+ add.set_image(img)
+ img = gtk.Image()
+ img.set_from_stock(gtk.STOCK_REMOVE, gtk.ICON_SIZE_MENU)
+ rem.set_image(img)
+ m.append(add)
+ m.append(rem)
+ m.show_all()
+ m.popup(None, None, None, event.button, event.time)
+
+ def on_add_folder(self, item):
+ dia = gtk.FileChooserDialog('Select Folder', self,
+ gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER,
+ None,
+ None)
+ ok_button = dia.add_button(gtk.STOCK_OK, gtk.RESPONSE_OK)
+ dia.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL)
+ ok_button.grab_default()
+
+ response = dia.run()
+ dia.hide()
+
+ if response == gtk.RESPONSE_OK:
+ uri = dia.get_filename()
+ (_,shortname) = os.path.split(uri)
+ self.add_folder(shortname, uri)
+
+ def on_remove_folder(self, item):
+ sel = self.tree.get_selection()
+ (model, iter) = sel.get_selected()
+ (name,) = model.get(iter, 0)
+ self.remove_folder(name)
+
+ def add_folder(self, name, path):
+ folder_list.append((name, path))
+ print folder_list
+ save_paths()
+ self.update_list()
+
+ def remove_folder(self, name):
+ for f in folder_list:
+ (fname, path) = f
+ if fname == name:
+ folder_list.remove(f)
+ break
+ save_paths()
+ self.update_list()
+
+ def update_list(self):
+ self.list_model.clear()
+ for folder in folder_list:
+ (name, path) = folder
+ self.list_model.append([name])
+
+class Jules(gtk.Window):
+ def __init__(self):
+ gtk.Window.__init__(self, gtk.WINDOW_TOPLEVEL)
+ self.set_title("Jules")
+ self.set_size_request(150, 320)
+ self.connect("delete_event", self.on_delete_event)
+ self.connect("destroy", self.on_destroy)
+ self.scroll = gtk.ScrolledWindow()
+
+ self.tree_model = gtk.TreeStore(gobject.TYPE_STRING, gobject.TYPE_STRING)
+ self.tree = gtk.TreeView(self.tree_model)
+ self.file_column = gtk.TreeViewColumn('name', gtk.CellRendererText(), markup=0)
+ self.file_column.set_sort_indicator(True)
+ self.file_column.set_clickable(True)
+ self.file_column.set_sort_column_id(0)
+ self.tree.append_column(self.file_column)
+ self.tree.set_headers_clickable(True)
+ #self.path_column = gtk.TreeViewColumn('Path')
+ #self.tree.append_column(self.path_column)
+ #self.tree.fixed_height_mode = True
+
+# self.file_cell = gtk.CellRendererText()
+ # self.file_column.pack_start(self.file_cell, True)
+ # self.file_column.add_attribute(self.file_cell, 'text', 0)
+
+ self.tree.set_search_column(0)
+
+ self.scroll.add(self.tree)
+ self.add(self.scroll)
+ self.show_all()
+
+ self.project_selector = FolderSelector(self)
+# self.project_selector.hide()
+
+ self.tree.connect("row-activated", self.on_row_activate)
+ self.tree.connect("button-press-event", self.on_button_press)
+ self.folder = ""
+ self.folder_name = ""
+ load_paths()
+
+ (dn, df) = default_folder
+ if len(df) > 0:
+ print "open project"
+ self.open_project(dn, df)
+ self.project_selector.hide()
+ else:
+ print "show project selector"
+ self.project_selector.show()
+
+ def on_delete_event(self, widget, event):
+ return False
+
+ def on_destroy(self, widget):
+ gtk.main_quit()
+
+ def open_project(self, short_name, folder_name):
+ self.tree_model.clear()
+ try:
+ self.folder = folder_name
+ self.folder_name = short_name
+ self.walk_folders(folder_name, None)
+ except:
+ print "error when opening project!", short_name, folder_name
+ pass
+
+ def walk_folders(self, folder_name, parent_iter):
+ for entry in os.listdir(folder_name):
+ path = folder_name + "/" + entry
+ if os.path.isdir(path):
+ iter = self.tree_model.append(parent_iter, ["<b>%s</b>"%entry, path])
+ self.walk_folders(path, iter)
+ elif os.path.isfile(path):
+ (base, extension) = os.path.splitext(path)
+ if extension in file_types:
+ self.tree_model.append(parent_iter, [entry, path])
+
+ def on_row_activate(self, tree, path, column):
+ iter = self.tree_model.get_iter(path)
+ (name, longname) = self.tree_model.get(iter, 0, 1)
+ (root, extension) = os.path.splitext(name)
+ if extension in file_types:
+ fn = file_types[extension]
+ fn(longname)
+
+ def on_button_press(self, widget, event):
+ if event.button == 3:
+ m = gtk.Menu()
+ mi = gtk.ImageMenuItem("Select Folder...")
+ mi.connect('activate', self.on_select_folder)
+ img = gtk.Image()
+ img.set_from_stock(gtk.STOCK_OPEN, gtk.ICON_SIZE_MENU)
+ mi.set_image(img)
+ m.append(mi)
+ mi = gtk.ImageMenuItem("Set as Default Folder")
+ img = gtk.Image()
+ img.set_from_stock(gtk.STOCK_HOME, gtk.ICON_SIZE_MENU)
+ mi.set_image(img)
+ mi.connect('activate', self.on_set_default)
+ m.append(mi)
+ m.show_all()
+ m.popup(None, None, None, event.button, event.time)
+ return True
+ return False
+
+ def on_set_default(self, item):
+ global default_folder
+ default_folder = (self.folder_name, self.folder)
+ save_paths()
+
+ def on_select_folder(self, item):
+ self.project_selector.show()
+ load_paths()
+ self.project_selector.update_list()
+
+ def run(self):
+ gtk.main()
+
+
+if __name__ == "__main__":
+ jules = Jules()
+ jules.run()
View
20 bin/jules_config.py
@@ -0,0 +1,20 @@
+import os
+import os.path
+
+def view_source(filename):
+ os.system("emacsclient -n " + filename + " &")
+ #os.system("gvim --remote-tab " + filename + " &")
+
+file_types = {
+ ".cpp" : view_source,
+ ".c" : view_source,
+ ".h" : view_source,
+ ".py" : view_source,
+ ".rb" : view_source,
+ ".glade" : lambda (fname): os.system("glade-2 " + fname + " &"),
+ ".lua" : view_source,
+ ".el" : view_source
+ }
+
+SAVE_NAME = os.path.expanduser("~/.jules_folder_list")
+
View
16 bin/lowerit
@@ -0,0 +1,16 @@
+#!/bin/sh
+# lowerit
+# convert all file names in the current directory to lower case
+# only operates on plain files--does not change the name of directories
+# will ask for verification before overwriting an existing file
+for x in `ls`
+do
+ if [ ! -f $x ]; then
+ continue
+ fi
+ lc=`echo $x | tr '[A-Z]' '[a-z]'`
+ if [ $lc != $x ]; then
+ mv -i $x $lc
+ fi
+done
+
View
2  bin/mytray
@@ -0,0 +1,2 @@
+#!/bin/sh
+stalonetray -geometry 124x24-4+4 --skip-taskbar --sticky --fuzzy-edges 3 --tint-level 1 --tint-color white -t --skip-taskbar --window-type dock --grow-gravity W --icon-gravity NE --ignore-icon-resize TRUE --respect-icon-hints false --max-height 24 --icon-size 24 -i 24 &
View
4 bin/rmpyc
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+find ./ -type f -name "*.pyc" -exec rm -f {} \;
+
View
12 bin/togglemonitor
@@ -0,0 +1,12 @@
+#!/usr/bin/env ruby
+
+def lappy; exec "xrandr --output VGA --off --output LVDS --auto"; end
+def external; exec "xrandr --output LVDS --off --output VGA --auto"; end
+
+case ARGV.first
+when 'l' then lappy
+when 'e' then external
+else
+ external if `xrandr -q`.include?('VGA connected')
+ lappy
+end
View
BIN  bin/waf
Binary file not shown
View
20 bin/zenburn_veryhigh.ct
@@ -0,0 +1,20 @@
+#! /usr/bin/ctheme
+# zenburn
+set {
+0 000000
+1 705050
+2 60b48a
+3 dfaf8f
+4 506070
+5 dc8cc3
+6 8cd0d3
+7 dcdccc
+9 709080
+9 dca3a3
+a c3bf9f
+b f0dfaf
+c 94bff3
+d ec93d3
+e 93e0e3
+f ffffff
+}
View
45 config/60-latin.conf
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>serif</family>
+ <prefer>
+ <family>Liberation Serif</family>
+ <family>DejaVu Serif</family>
+ <family>Bitstream Vera Serif</family>
+ <family>Times New Roman</family>
+ <family>Thorndale AMT</family>
+ <family>Luxi Serif</family>
+ <family>Nimbus Roman No9 L</family>
+ <family>Times</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Liberation Sans</family>
+ <family>DejaVu Sans</family>
+ <family>Bitstream Vera Sans</family>
+ <family>Verdana</family>
+ <family>Arial</family>
+ <family>Albany AMT</family>
+ <family>Luxi Sans</family>
+ <family>Nimbus Sans L</family>
+ <family>Helvetica</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>monospace</family>
+ <prefer>
+ <family>Liberation Mono</family>
+ <family>DejaVu Sans Mono</family>
+ <family>Bitstream Vera Sans Mono</family>
+ <family>Andale Mono</family>
+ <family>Courier New</family>
+ <family>Cumberland AMT</family>
+ <family>Luxi Mono</family>
+ <family>Nimbus Mono L</family>
+ <family>Courier</family>
+ </prefer>
+ </alias>
+</fontconfig>
View
40 config/91-liberation.conf
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>Times</family>
+ <accept>
+ <family>Liberation Serif</family>
+ </accept>
+ </alias>
+ <alias>
+ <family>Times New Roman</family>
+ <accept>
+ <family>Liberation Serif</family>
+ </accept>
+ </alias>
+ <alias>
+ <family>Helvetica</family>
+ <accept>
+ <family>Liberation Sans</family>
+ </accept>
+ </alias>
+ <alias>
+ <family>Arial</family>
+ <accept>
+ <family>Liberation Sans</family>
+ </accept>
+ </alias>
+ <alias>
+ <family>Courier</family>
+ <accept>
+ <family>Liberation Mono</family>
+ </accept>
+ </alias>
+ <alias>
+ <family>Courier New</family>
+ <accept>
+ <family>Liberation Mono</family>
+ </accept>
+ </alias>
+</fontconfig>
View
18 config/local.conf
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <selectfont>
+ <rejectfont>
+ <pattern>
+ <patelt name="scalable"><bool>false</bool></patelt>
+ </pattern>
+ </rejectfont>
+ </selectfont>
+ <selectfont>
+ <acceptfont>
+ <pattern>
+ <patelt name="family"><string>Dina</string></patelt>
+ </pattern>
+ </acceptfont>
+ </selectfont>
+</fontconfig>
View
17 config/setup_fonts
@@ -0,0 +1,17 @@
+#!/bin/sh
+sudo rm /etc/fonts/conf.d/10-hinting-full.conf
+sudo rm /etc/fonts/conf.d/10-hinting-medium.conf
+sudo ln -s /etc/fonts/conf.avail/10-hinting-slight.conf /etc/fonts/conf.d/10-hinting-slight.conf
+sudo rm /etc/fonts/conf.d/10-no-sub-pixel.conf
+sudo rm /etc/fonts/conf.d/10-sub-pixel-bgr.conf
+sudo rm /etc/fonts/conf.d/10-sub-pixel-vbgr.conf
+sudo rm /etc/fonts/conf.d/10-sub-pixel-vrgb.conf
+sudo rm /etc/fonts/conf.d/10-unhinted.conf
+sudo ln -s /etc/fonts/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d/10-sub-pixel-rgb.conf
+sudo cp 60-latin.conf /etc/fonts/conf.avail/61-latin.conf
+sudo ln -s /etc/fonts/conf.avail/61-latin.conf /etc/fonts/conf.d/61-latin.conf
+sudo cp 91-liberation.conf /etc/fonts/conf.avail/91-liberation.conf
+sudo ln -s /etc/fonts/conf.avail/91-liberation.conf /etc/fonts/conf.d/91-liberation.conf
+sudo cp local.conf /etc/fonts/local.conf
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.