Skip to content

Instantly share code, notes, and snippets.

"
" MAIN CUSTOMIZATION FILE
"
""""""""""""""""""""""""""""""""
"
" DISPLAY
"
""""""""""""""""""""""""""""""""
#!/bin/bash
# Moves images into folders based on their dimensions
cd ~/wallpapers
for image in *;
do
dims=$(feh -ls $image | cut -f3,4 --output-delimiter=x | sed 's/WIDTHxHEIGHT//')
echo $dims
mkdir $dims &> /dev/null
mv $image $dims
!----------------------------------------------
!! Colours
!----------------------------------------------
! Testing "Zork" colour theme.
*foreground: #B6B7B8
*background: #202426
! Black
*color0: #202426
*color8: #555753
!--------------------------------------------------------------------------------
! File: ~/.xmodmap
! vim:ft=xmodmap:
!--------------------------------------------------------------------------------
!--------------------------------------------------------------------------------
! Modifier keys
!--------------------------------------------------------------------------------
! clear the modifiers and locks
@zoqaeski
zoqaeski / Qevesa lexical mapping.sql
Created February 12, 2011 08:28
A brief explanation and set of data for my project to create a lexical database of Qevesa.
-- TBL_ROOTS example data:
-- -----------------------
--
INSERT INTO tbl_roots (root_id, root, length, semantic_meaning, date_added) VALUES
(1, ARRAY['n','t','l'], 3, 'thinking, thought, ideas', 2011-02-11),
(2, ARRAY['s','ş','m'], 3, 'female', 2011-02-11),
(3, ARRAY['p','l','t'], 3, 'to beautify, to adorn', 2011-02-11),
(4, ARRAY['t','m','s'], 3, 'to grow, to be tall', 2011-02-11);
(5, ARRAY['s','q'], 2, 'love, emotions', 2011-02-12);
(6, ARRAY['s','z','r'], 3, 'to rule; lord, master', 2011-02-20);
@zoqaeski
zoqaeski / abbreviations.tex
Created September 14, 2011 15:42
Linguistics Abbreviations
\documentclass[grammar]{subfiles}
\begin{document}
\chapter{List of Glossing Abbreviations}
\label{ch:glossing_abbreviations}
The following abbreviations have been used in the linguistics glosses throughout this document.
\begin{multicols*}{2}\small
\begin{description}[font=\normalfont\scshape,labelindent=12pt,leftmargin=60pt,style=sameline]
@zoqaeski
zoqaeski / grammar.tex
Created September 15, 2011 06:04
grammar.tex preamble
%\listfiles
% !TEX TS-program = xelatex
% !TEX encoding = UTF-8
\documentclass{scrreprt}
% I use KOMA-script as I find it gives much easier control than a mishmash of different packages.
%% KOMA options
\KOMAoptions{
appendixprefix=false,
chapterprefix=false,
@zoqaeski
zoqaeski / gist:2619654
Created May 6, 2012 06:03
XeLaTeX file listing for TOC warning
*File List*
scrreprt.cls 2011/06/16 v3.09a KOMA-Script document class (report)
scrkbase.sty 2011/06/16 v3.09a KOMA-Script package (KOMA-Script-dependent ba
sics and keyval usage)
scrbase.sty 2011/06/16 v3.09a KOMA-Script package (KOMA-Script-independent
basics and keyval usage)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
scrlfile.sty 2011/03/09 v3.09 KOMA-Script package (loading files)
tocbasic.sty 2011/05/30 v3.09a KOMA-Script package (handling toc-files)
@zoqaeski
zoqaeski / custom
Created October 12, 2012 18:14
xkbcomp keyboard layout dump
// $XDG_CONFIG_HOME/xkb/symbols/custom
// Makes ALT + CAPS_LOCK act as 3rd level switch
// Works sporadically
partial modifier_keys
xkb_symbols "alt_caps_mode_switch" {
key <CAPS> {
type[Group1]="PC_ALT_LEVEL2",
[ Caps_Lock, ISO_Level3_Shift ]
};
@zoqaeski
zoqaeski / HUAWEI E160E modem
Created October 19, 2012 06:13
dmesg logs for USB devices
// Plugging in HUAWEI E160E modem results in this:
[ 2182.463046] usb 3-1: new high-speed USB device number 3 using xhci_hcd
[ 2182.490036] usb 3-1: ep 0x81 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 2182.490047] usb 3-1: ep 0x1 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 2182.496871] scsi6 : usb-storage 3-1:1.0
[ 2182.499545] usb 3-1: USB disconnect, device number 3
[ 2189.255155] usb 3-1: new high-speed USB device number 4 using xhci_hcd
[ 2189.282064] usb 3-1: ep 0x87 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 2189.282076] usb 3-1: ep 0x5 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 2189.282087] usb 3-1: ep 0x6 - rounding interval to 32768 microframes, ep desc says 0 microframes