Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="autohint" >
#!/bin/bash
if [[ "$DESKTOP_SESSION" == "kf5-plasma" ]]; then
export QTDIR="/usr/lib/qt5"
export PATH="usr/bin:$QTDIR/bin:$PATH"
export QT_PLUGIN_PATH="/usr/lib/plugins:/usr/lib/qt5/plugins"
export QT_INCLUDE_PATH="/usr/include/qt5"
export QML2_IMPORT_PATH="/usr/lib/qml:/usr/lib/qt5/qml"
export QML_IMPORT_PATH="$QML2_IMPORT_PATH"
export KDE_SESSION_VERSION=5
@demmm
demmm / Bumblebee
Last active August 29, 2015 14:00
sudo pacman -Syu
sudo pacman -S nvidia-bumblebee bbswitch bumblebee
sudo systemctl enable bumblebeed
sudo usermod -a -G bumblebee user_name
@demmm
demmm / fstab
Last active August 29, 2015 13:58
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
UUID=19a9e7a7-5fbf-407b-b710-4e6704d4f9fc / ext4 defaults 0 1
UUID=69a32168-6a9f-4f5e-9929-78412a18ba27 swap swap defaults 0 0
UUID=b35a6b4e-c1a1-40d1-8cd3-9e30b7c9ce39 /home ext4 defaults 0 0
UUID=2effc15f-688c-4686-b24c-2d2697200bee /data ext4 defaults,noatime,discard 0 0
#!/bin/bash
#This will replace the colors in a folder svg file. The one hack is that to change the foreground
#shape colors you must provide the old color and this color cannot be repeated anywhere that you do
#not want it to change. The folder back, paper, and front colors are precise replacements in
#xml. However, the glyph color replacement is a regular expression search/replace. To change the
#glyph color again, you must replace the original value with the new value and run it again.
backColor=1abc9c #default is 34495d
frontColor=2980b9 #default is 1abc9c
paperColor=ffffff #default is ffffff
#!/bin/bash
./replace_folder_file.sh ../places/scalable/folder-documents.svg
./replace_folder_file.sh ../places/scalable/folder-download.svg
./replace_folder_file.sh ../places/scalable/folder-dropbox.svg
./replace_folder_file.sh ../places/scalable/folder-music.svg
./replace_folder_file.sh ../places/scalable/folder-pictures.svg
./replace_folder_file.sh ../places/scalable/folder-publicshare.svg
./replace_folder_file.sh ../places/scalable/folder-remote.svg
./replace_folder_file.sh ../places/scalable/folder-saved-search.svg
./replace_folder_file.sh ../places/scalable/folder.svg