Permalink
Browse files

Update worker

  • Loading branch information...
1 parent f26d276 commit 8ed4637afcd0d79c75b7fad269dbdadceda3814d @graudeejs committed Mar 12, 2013
Showing with 35 additions and 11 deletions.
  1. +29 −5 dot.shrc
  2. +6 −6 dot.worker/config
View
@@ -32,26 +32,50 @@ for i in 6 7 8 9; do
alias ie${i}="rdesktop -u aldis -p aldis -g 1280x900 vbox.cube.lv:5${i}5${i}"
done
+is_true() {
+ case "$1" in
+ [Tt][Rr][Uu][Ee])
+ return 0
+ ;;
+ [Ff][Aa][Ll][Ss][Ee])
+ return 1
+ ;;
+ *)
+ echo "must be TRUE or FALSE" > /dev/stderr
+ return 2
+ ;;
+ esac
+}
+
+is_false() {
+ is_true $1 && return 1 || return 0
+}
vim_app="`which vim `"
if [ $? -eq 0 ]; then
- alias ovim=$vim_app
+ vims() {
+ [ "$WM" = 'fvwm' ] && wm_is_fvwm="true" || wm_is_fvwm="false"
- vim() {
# vim server
if [ "$DISPLAY" != "" ]; then
vim_opt="-g"
- if [ "$WM" = 'fvwm' ]; then
+ if is_true $wm_is_fvwm; then
FvwmCommand 'Next ("*VIMS") MoveToDesk'
+ FvwmCommand 'Next ("*VIMS") Raise'
+ FvwmCommand 'Next ("*VIMS") Focus'
fi
fi
if [ "`$vim_app --serverlist`" = '' ]; then
$vim_app $vim_opt --servername VIMS $*
- else
+ elif [ "$1" != '' ]; then
$vim_app $vim_opt --servername VIMS --remote $*
+ else
+ if is_false $wm_is_fvwm; then
+ echo "vim is in other Desk or terminal" > /dev/stderr
+ fi
fi
}
fi
@@ -63,7 +87,7 @@ msgs -f
# Allow terminal messages
#mesg y
-#HISTFILE=~/.mksh_history
+HISTFILE="$HOME/.mksh_history"
#TMOUT=300
if [ -f "$WMSCRIPTS_DIR/agentCtl.sh" ]; then
View
@@ -109,15 +109,15 @@ colors {
statebar = 17,10;
sellvbar = 9,14;
unsellvbar = 9,3;
- seldir = 21,10;
+ seldir = 9,10;
unseldir = 6,18;
- selfile = 2,10;
+ selfile = 9,10;
unselfile = 20,18;
clockbar = 20,0;
selactdir = 9,11;
- unselactdir = 7,10;
- selactfile = 17,11;
- unselactfile = 17,10;
+ unselactdir = 17,6;
+ selactfile = 9,11;
+ unselactfile = 17,6;
requester = 20,0;
lvheader = 20,0;
lvbg = 18;
@@ -226,7 +226,7 @@ paths {
position = 5;
title = "tdownload";
color = 1,0;
- path = "/files/torrents/download";
+ path = "/home/graudeejs/torrents/downloaded";
shortkeys {
}
}

0 comments on commit 8ed4637

Please sign in to comment.