Random changes specific to desktop
Main changes are just some alias' to easily access rekahsoft-mini thorugh port-knocking + ssh As well as a xbindkeys configuration setup for most generic keyboards and the HHKB2
This commit is contained in:
parent
fd9702a05e
commit
29d14f09f8
|
@ -1 +1,4 @@
|
||||||
. $HOME/.bashrc
|
. $HOME/.bashrc
|
||||||
|
|
||||||
|
# Create variable GENERAL_SCREEN which is the pid of one or more screens called "general"
|
||||||
|
export GENERAL_SCREEN=`screen -ls | grep general | cut -f1 -d'.' | sed 's/\W//g'`
|
||||||
|
|
5
.bashrc
5
.bashrc
|
@ -8,6 +8,8 @@ alias grep='grep --color=auto'
|
||||||
alias fgrep='fgrep --color-auto'
|
alias fgrep='fgrep --color-auto'
|
||||||
alias egrep='egrep --color-auto'
|
alias egrep='egrep --color-auto'
|
||||||
alias ncmpc='ncmpc -c'
|
alias ncmpc='ncmpc -c'
|
||||||
|
alias knk='knock rekahsoft-mini 7713:tcp 1377:udp && sleep 3s && '
|
||||||
|
alias knkc='knk ssh rekahsoft-mini '
|
||||||
|
|
||||||
export GREP_COLOR="1;33"
|
export GREP_COLOR="1;33"
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
|
@ -17,6 +19,9 @@ PS1='[\u@\h: \w]\$ '
|
||||||
# Turn off noscroll
|
# Turn off noscroll
|
||||||
stty stop undef
|
stty stop undef
|
||||||
|
|
||||||
|
# Modify path variable to allow execution of mathematica and tools
|
||||||
|
export PATH=${PATH}:/usr/local/bin
|
||||||
|
|
||||||
# start keychain
|
# start keychain
|
||||||
eval `keychain --eval --timeout 10 --quiet --agents ssh id_rsa`
|
eval `keychain --eval --timeout 10 --quiet --agents ssh id_rsa`
|
||||||
|
|
||||||
|
|
45
.emacs
45
.emacs
|
@ -209,6 +209,51 @@
|
||||||
(add-hook 'python-mode-hook 'hs-org/minor-mode)
|
(add-hook 'python-mode-hook 'hs-org/minor-mode)
|
||||||
(add-hook 'scheme-mode-hook 'hs-org/minor-mode)
|
(add-hook 'scheme-mode-hook 'hs-org/minor-mode)
|
||||||
|
|
||||||
|
;; Enable autoinsert feature to automagically insert
|
||||||
|
(require 'autoinsert)
|
||||||
|
(auto-insert-mode) ;;; Adds hook to find-files-hook
|
||||||
|
(setq auto-insert-directory "~/.emacs.d/templates/") ;;; Or use custom, *NOTE* Trailing slash important
|
||||||
|
(setq auto-insert-query nil) ;;; If you don't want to be prompted before insertion
|
||||||
|
|
||||||
|
;; auto-insert options template and auto-completion
|
||||||
|
(add-hook 'find-file-hooks 'auto-insert)
|
||||||
|
(setq auto-insert-directory (concat (getenv "HOME") "/.emacs.d/templates/"))
|
||||||
|
(setq auto-insert-alist
|
||||||
|
'(("\\.c$" . ["c-template.c" auto-update-generic-template])
|
||||||
|
("\\.\(cc\|cpp\)$" . ["cpp-template.c" auto-update-generic-template])
|
||||||
|
("\\.sh$" . ["shell-template.sh" auto-update-generic-template])
|
||||||
|
("\\.rkt$" . ["racket-template.rkt" auto-update-generic-template])
|
||||||
|
("\\.hs$" . ["haskell-template.rkt" auto-update-generic-template])
|
||||||
|
("\\.py$" . ["python-template.py" auto-update-generic-template])))
|
||||||
|
(setq auto-insert 'other)
|
||||||
|
|
||||||
|
(defun auto-update-generic-template ()
|
||||||
|
(save-excursion
|
||||||
|
;; Replace @!@FILENAME@!@ with file name sans suffix
|
||||||
|
(while (search-forward "@!@FILENAME@!@" nil t)
|
||||||
|
(save-restriction
|
||||||
|
(narrow-to-region (match-beginning 0) (match-end 0))
|
||||||
|
(replace-match (file-name-sans-extension (file-name-nondirectory buffer-file-name)) t))))
|
||||||
|
(save-excursion
|
||||||
|
;; Replace @!@FILE@!@ with file name
|
||||||
|
(while (search-forward "@!@FILE@!@" nil t)
|
||||||
|
(save-restriction
|
||||||
|
(narrow-to-region (match-beginning 0) (match-end 0))
|
||||||
|
(replace-match (file-name-nondirectory buffer-file-name) t))))
|
||||||
|
(save-excursion
|
||||||
|
;; replace @!@DATE@!@ with today's date
|
||||||
|
(while (search-forward "@!@DATE@!@" nil t)
|
||||||
|
(save-restriction
|
||||||
|
(narrow-to-region (match-beginning 0) (match-end 0))
|
||||||
|
(replace-match "")
|
||||||
|
(insert-date))))
|
||||||
|
(save-excursion
|
||||||
|
;; Replace @!@YEAR@!@ with the current year
|
||||||
|
(while (search-forward "@!@YEAR@!@" nil t)
|
||||||
|
(save-restriction
|
||||||
|
(narrow-to-region (match-beginning 0) (match-end 0))
|
||||||
|
(replace-match (format-time-string "%Y" (current-time)))))))
|
||||||
|
|
||||||
;; Insert current date at cursor in the currently active buffer
|
;; Insert current date at cursor in the currently active buffer
|
||||||
(defun insert-date ()
|
(defun insert-date ()
|
||||||
"Insert today's date into buffer"
|
"Insert today's date into buffer"
|
||||||
|
|
11
.screenrc
11
.screenrc
|
@ -1,7 +1,12 @@
|
||||||
# Open several named screens at startup and run different commands in each
|
# Open several named screens at startup and run different commands in each
|
||||||
screen -t bash 0 bash
|
screen -t zsh 0 zsh
|
||||||
screen -t alsamixer 1 alsamixer
|
screen -t irssi 1 irssi
|
||||||
#screen -t mc 2 mc *BROKEN*
|
screen -t ncmpcpp 2 ncmpcpp
|
||||||
|
screen -t alsamixer 3 alsamixer
|
||||||
|
screen -t mc 4 mc
|
||||||
|
|
||||||
|
# Switch to window 1 (irssi)
|
||||||
|
#screen -p irssi
|
||||||
|
|
||||||
# Set hard status line
|
# Set hard status line
|
||||||
hardstatus alwayslastline '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR}[%{W}%n%f %t%?(%u)%?%{=b kR}]%{= kw}%?%+Lw%?%?%=%{g}][%{Y}%l%{g}]%{=b C}[ %D %m/%d %C%a ]%{W}'
|
hardstatus alwayslastline '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR}[%{W}%n%f %t%?(%u)%?%{=b kR}]%{= kw}%?%+Lw%?%?%=%{g}][%{Y}%l%{g}]%{=b C}[ %D %m/%d %C%a ]%{W}'
|
||||||
|
|
|
@ -0,0 +1,114 @@
|
||||||
|
# File: .xbindkeysrc
|
||||||
|
# Date: Sept 23, 2010
|
||||||
|
# Author: Collin J. Doering <rekahsoft@gmail.com>
|
||||||
|
# Description: File that contains key bindings independant of any DE (using xbindkeys). This file is in the following format:
|
||||||
|
|
||||||
|
## <generic functinality> (<geographical location on keyboard >)
|
||||||
|
# <key combination> = <functionality>
|
||||||
|
#"<command"
|
||||||
|
# m:<modifier state> + c:<keycode>
|
||||||
|
#< keycode name>
|
||||||
|
## END of <generic functinality>
|
||||||
|
|
||||||
|
## Multimedia keys (top of keyboard)
|
||||||
|
|
||||||
|
# play/pause key = toggle play pause
|
||||||
|
#"~/.bin/toggle-pp.py"
|
||||||
|
"mpc toggle"
|
||||||
|
m:0x10 + c:172
|
||||||
|
XF86AudioPlay
|
||||||
|
"mpc toggle"
|
||||||
|
m:0x58 + c:33
|
||||||
|
Alt+Mod2+Mod4 + p
|
||||||
|
|
||||||
|
# next key = next song
|
||||||
|
"mpc next"
|
||||||
|
m:0x10 + c:171
|
||||||
|
XF86AudioNext
|
||||||
|
"mpc next"
|
||||||
|
m:0x58 + c:60
|
||||||
|
Alt+Mod2+Mod4 + period
|
||||||
|
|
||||||
|
# prev key = previous song
|
||||||
|
"mpc prev"
|
||||||
|
m:0x10 + c:173
|
||||||
|
XF86AudioPrev
|
||||||
|
"mpc prev"
|
||||||
|
m:0x58 + c:59
|
||||||
|
Alt+Mod2+Mod4 + comma
|
||||||
|
|
||||||
|
# volume up key = Master volume up 1
|
||||||
|
"amixer set Master 1+"
|
||||||
|
m:0x10 + c:123
|
||||||
|
XF86AudioRaiseVolume
|
||||||
|
"amixer set Master 1+"
|
||||||
|
m:0x58 + c:30
|
||||||
|
Alt+Mod2+Mod4 + u
|
||||||
|
|
||||||
|
# volume down key = Master volume down 1
|
||||||
|
"amixer set Master 1-"
|
||||||
|
m:0x10 + c:122
|
||||||
|
XF86AudioLowerVolume
|
||||||
|
"amixer set Master 1-"
|
||||||
|
m:0x58 + c:40
|
||||||
|
Alt+Mod2+Mod4 + d
|
||||||
|
|
||||||
|
# mute volume key = mute alsa Master channel
|
||||||
|
"amixer set Master toggle"
|
||||||
|
m:0x10 + c:121
|
||||||
|
XF86AudioMute
|
||||||
|
"amixer set Master toggle"
|
||||||
|
m:0x58 + c:58
|
||||||
|
Alt+Mod2+Mod4 + m
|
||||||
|
|
||||||
|
## End of Multimedia keys
|
||||||
|
|
||||||
|
## Random keys (F* line of keys)
|
||||||
|
# Super + Calculator = (speed crunch)
|
||||||
|
"speedcrunch"
|
||||||
|
m:0x10 + c:148
|
||||||
|
XF86Calculator
|
||||||
|
|
||||||
|
# Super + Calculator = mathematica
|
||||||
|
"mathematica"
|
||||||
|
m:0x50 + c:148
|
||||||
|
XF86Calculator
|
||||||
|
|
||||||
|
# Sleep key = lock screen with xscreensaver
|
||||||
|
"xscreensaver-command -lock"
|
||||||
|
m:0x10 + c:150
|
||||||
|
XF86Sleep
|
||||||
|
## End of F* line of keys
|
||||||
|
|
||||||
|
## Left side of keyboard
|
||||||
|
# WWW key
|
||||||
|
"firefox"
|
||||||
|
m:0x10 + c:158
|
||||||
|
XF86WWW
|
||||||
|
|
||||||
|
# Search PC key
|
||||||
|
#""
|
||||||
|
#m:0x10 + c:225
|
||||||
|
#XF86Search
|
||||||
|
|
||||||
|
# Search pics key (unknown)
|
||||||
|
|
||||||
|
# Close key
|
||||||
|
#""
|
||||||
|
#m:0x10 + c:214
|
||||||
|
#XF86Close
|
||||||
|
|
||||||
|
# Roatate windows key
|
||||||
|
"tuxcmd"
|
||||||
|
m:0x10 + c:162
|
||||||
|
XF86RotateWindows
|
||||||
|
# End of left side of keyboard
|
||||||
|
|
||||||
|
## Bottom right keys
|
||||||
|
|
||||||
|
# VOIP end call
|
||||||
|
#""
|
||||||
|
#m:0x10 + c:231
|
||||||
|
#Cancel
|
||||||
|
|
||||||
|
## End of Bottom right keys
|
|
@ -4,8 +4,8 @@ Config { font = "-*-terminus-*-*-*-*-35-*-*-*-*-*-*-u"
|
||||||
, position = TopW L 96
|
, position = TopW L 96
|
||||||
, lowerOnStart = True
|
, lowerOnStart = True
|
||||||
, commands = [ Run Network "eth0" ["-L","0","-H","32","-l", "green", "--normal","orange","--high","red"] 40
|
, commands = [ Run Network "eth0" ["-L","0","-H","32","-l", "green", "--normal","orange","--high","red"] 40
|
||||||
, Run Com "$HOME/.bin/vol.sh" [] "vol" 15
|
, Run Com "/home/collin/.bin/vol.sh" [] "vol" 15
|
||||||
, Run MultiCpu ["-t","Cpu <total>","-L","3","-H","50","--high","#f0c040"] 10
|
, Run MultiCpu ["-t","Cpu <total> | cpu0: <total0> | cpu1: <total1> | cpu2: <total2> | cpu3: <total3>","-L","3","-H","50","--high","#f0c040"] 10
|
||||||
, Run Memory ["-t","Mem: <usedratio>%", "-l", "green", "--normal","orange","--high","red"] 40
|
, Run Memory ["-t","Mem: <usedratio>%", "-l", "green", "--normal","orange","--high","red"] 40
|
||||||
, Run Date "%a %b %_d %l:%M %p" "date" 60
|
, Run Date "%a %b %_d %l:%M %p" "date" 60
|
||||||
, Run CpuFreq ["-t","Freq: <cpu0> | <cpu1> GHz","-L","0","-H","2","-l","green","-n","orange","-h","red"] 50
|
, Run CpuFreq ["-t","Freq: <cpu0> | <cpu1> GHz","-L","0","-H","2","-l","green","-n","orange","-h","red"] 50
|
||||||
|
|
5
.zshrc
5
.zshrc
|
@ -22,6 +22,8 @@ alias grep='grep --color=auto'
|
||||||
alias fgrep='fgrep --color-auto'
|
alias fgrep='fgrep --color-auto'
|
||||||
alias egrep='egrep --color-auto'
|
alias egrep='egrep --color-auto'
|
||||||
alias ncmpc='ncmpc -c'
|
alias ncmpc='ncmpc -c'
|
||||||
|
alias knk='knock rekahsoft-mini 7713:tcp 1377:udp && sleep 3s && '
|
||||||
|
alias knkc='knk ssh rekahsoft-mini '
|
||||||
|
|
||||||
export GREP_COLOR="1;33"
|
export GREP_COLOR="1;33"
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
|
@ -31,6 +33,9 @@ PS1="[%n@%M: %~]%% "
|
||||||
# Turn off noscroll
|
# Turn off noscroll
|
||||||
stty stop undef
|
stty stop undef
|
||||||
|
|
||||||
|
# Modify path variable to allow execution of mathematica and tools
|
||||||
|
export PATH=${PATH}:/usr/local/bin
|
||||||
|
|
||||||
# start keychain
|
# start keychain
|
||||||
eval `keychain --eval --timeout 10 --quiet --agents ssh id_rsa`
|
eval `keychain --eval --timeout 10 --quiet --agents ssh id_rsa`
|
||||||
|
|
||||||
|
|
Reference in New Issue