From 9a2877b083a64092a1707fb5c2526c7dd4dce323 Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Sun, 14 Jan 2018 23:12:52 -0500 Subject: [PATCH] Rotate function for home - Speedtest/ping aliases - Make executable function --- dotfiles/.bash_aliases | 46 ++++++++++++++++++++++++++++++------------ dotfiles/termConfig | 3 +-- set-from-git.sh | 0 3 files changed, 34 insertions(+), 15 deletions(-) mode change 100644 => 100755 set-from-git.sh diff --git a/dotfiles/.bash_aliases b/dotfiles/.bash_aliases index 3b6077f..db65377 100644 --- a/dotfiles/.bash_aliases +++ b/dotfiles/.bash_aliases @@ -23,24 +23,44 @@ if $in_lab; then ff() { firefox $1 ; } zip() { tar -zcvf $1.tar.gz $1/ ; } alias nau="nautilus ." + + mkex() { chmod 700 $1 ; } else - alias school="c Documents/School/" + rt() { + output="HDMI-0" + if [ "$1" = "s" ] + # if [ "${1:0:1}" = "s" ] + then + output="DVI-I-1" + fi + + dir="normal" + if [ "$2" = "r" ] + # if [ "${1:1:2}" = "r" ] + then + dir="right" + fi + + # echo "xrandr --output \"$output\" --rotate \"$dir\"" + xrandr --output "$output" --rotate "$dir" + } + + alias ow7="virtualbox startvm W7" + # alias ow7="VBoxManage startvm W7 --type headless" - alias mt="ok ~/Documents/School/136/calc-textbook.pdf" - alias rcg="c ~/Documents/coding/random-color-generator" - alias dcr="c ~/Documents/coding/dcr-logger" chr() { google-chrome $1 ; } alias nem="nemo ." - - # 207 - alias 7r="c ~/Documents/School/207/group_0485" - alias ph1="c ~/Documents/School/207/group_0485/phase1" + alias spt="speedtest" + alias pg="ping -c 5 google.ca" - # 221 - alias 221="c ~/Documents/School/221" + alias sch="c ~/Documents/School/" + alias 136="c ~/Documents/School/136" + alias mt="ok ~/Documents/School/136/calc-textbook.pdf" + alias 209="c ~/Documents/School/209" + alias psy="c ~/Documents/School/psy" - # 258 - alias gob="c ~/Documents/School/258/going-bananas" + alias rcg="c ~/Documents/coding/random-color-generator" + alias dcr="c ~/Documents/coding/dcr-logger" fi # apps @@ -53,7 +73,7 @@ alias vv="vi ~/.vimrc" alias r=". ~/.bashrc" # git -. ~/.secure +# . ~/.secure alias gs="git status -u" alias gpl="git pull --rebase" alias grbc="git rebase --continue" diff --git a/dotfiles/termConfig b/dotfiles/termConfig index 3de3f7c..e5d9384 100644 --- a/dotfiles/termConfig +++ b/dotfiles/termConfig @@ -27,9 +27,8 @@ copy_on_selection = True cursor_color = "#b9b9b9" custom_command = env TERM=xterm-256color bash - font = Noto Mono 10 + font = Noto Mono 9 foreground_color = "#0077ff" palette = "#000000:#aa0000:#00aa00:#aa5500:#0000aa:#aa00aa:#00aaaa:#aaaaaa:#555555:#ff5555:#55ff55:#ffff55:#5555ff:#ff55ff:#55ffff:#ffffff" scrollbar_position = hidden use_custom_command = True - use_system_font = False diff --git a/set-from-git.sh b/set-from-git.sh old mode 100644 new mode 100755