Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
SHOWALL=false
while test $# -gt 0; do
case "$1" in
-h|--help)
echo "scivis Very useful script for studying the course TNM067!"
echo "You need to download all the lectures and exercises first!"
echo ""
echo "scivis [-l lecturenumber]"
#!/bin/sh
icon="$HOME/Pictures/lockblue-darker.png"
TEMPBG=`mktemp --suffix '.png'`
RESOLUTION=`xdpyinfo | awk '/dimensions/{print $2}'`
(( $# )) && { icon=$1; }
ffmpeg -loglevel quiet -y -s "${RESOLUTION}" -f x11grab -i "${DISPLAY}" -vframes 1 -vf 'gblur=sigma=16' "${TEMPBG}"
i3lock -nef -i "${TEMPBG}"
@jon-grangien
jon-grangien / fysik.sh
Created August 9, 2016 12:54
script to open fysik tentas
#!/bin/bash
OPENDOCS=false
LISTTENTAS=false
while test $# -gt 0; do
case "$1" in
-h|--help)
echo "options:"
echo " -h, --help Brief help"
echo " -f, --files Open all documens in browser"
[options]
font = Literation Mono Powerline 12
[colors]
background = #2f343f
#cVim-link-container, .cVim-link-hint, #cVim-command-bar, #cVim-command-bar-mode, #cVim-command-bar-input, #cVim-command-bar-search-results, .cVim-completion-item, .cVim-completion-item .cVim-full, .cVim-completion-item .cVim-left, .cVim-completion-item .cVim-right, #cVim-hud, #cVim-status-bar {
font-family: Helvetica, Helvetica Neue, Neue, sans-serif, monospace, Arial;
font-size: 10pt !important;
-webkit-font-smoothing: antialiased !important;
}
#cVim-link-container {
position: absolute;
pointer-events: none;
width: 100%; left: 0;
unmap h j k l H J K L
map j scrollDown
map k scrollUp
map l scrollLeft
map ö scrollRight
map L goBack
map Ö goForward
map J previousTab
map K nextTab
alias adbunity="adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG"
alias live="live-server --browser=chromium"
alias batstats="upower -i /org/freedesktop/UPower/devices/battery_BAT0"
@jon-grangien
jon-grangien / Vimium custom options
Last active January 6, 2018 11:13
Vimium chrome extension css overrides
# Insert your preferred key mappings here.
map e scrollPageUp
pointer = 1 2 3 5 4 7 6 8 9 10 11 12
keycode 8 =
keycode 9 = Escape NoSymbol Escape
keycode 10 = 1 exclam 1 exclam exclamdown onesuperior
keycode 11 = 2 quotedbl 2 at at twosuperior
keycode 12 = 3 numbersign 3 numbersign sterling threesuperior
keycode 13 = 4 currency 4 dollar dollar onequarter
keycode 14 = 5 percent 5 percent EuroSign cent
keycode 15 = 6 ampersand 6 asciicircum yen fiveeighths
keycode 16 = 7 slash 7 ampersand braceleft division
@jon-grangien
jon-grangien / purecssheader.css
Created October 14, 2015 23:05
pure-css header for portfolio (css)
.header {
position:fixed;
top: 0;
display: block;
width: 100%;
z-index: 10;
border-bottom-color: black;
border-radius: 0;
}