mirror of
https://github.com/kastdeur/dotfiles.git
synced 2025-05-15 04:19:23 +02:00
Updated mainprofile, removed autoindent in vim. Set up awesome.lua with xinitrc. See if it works
This commit is contained in:
parent
3bbb4d6c9a
commit
cc8ca493c8
15 changed files with 600 additions and 507 deletions
|
@ -3,31 +3,31 @@
|
|||
m=${1}
|
||||
|
||||
Floor () {
|
||||
DIVIDEND=${1}
|
||||
DIVISOR=${2}
|
||||
RESULT=$(( ( ${DIVIDEND} - ( ${DIVIDEND} % ${DIVISOR}) )/${DIVISOR} ))
|
||||
echo ${RESULT}
|
||||
DIVIDEND=${1}
|
||||
DIVISOR=${2}
|
||||
RESULT=$(( ( ${DIVIDEND} - ( ${DIVIDEND} % ${DIVISOR}) )/${DIVISOR} ))
|
||||
echo ${RESULT}
|
||||
}
|
||||
|
||||
Timecount(){
|
||||
s=${1}
|
||||
HOUR=$( Floor ${s} 60/60 )
|
||||
s=$((${s}-(60*60*${HOUR})))
|
||||
MIN=$( Floor ${s} 60 )
|
||||
SEC=$((${s}-60*${MIN}))
|
||||
while [ $HOUR -ge 0 ]; do
|
||||
while [ $MIN -ge 0 ]; do
|
||||
while [ $SEC -ge 0 ]; do
|
||||
printf "%02d:%02d:%02d\033[0K\r" $HOUR $MIN $SEC
|
||||
SEC=$((SEC-1))
|
||||
sleep 1
|
||||
done
|
||||
SEC=59
|
||||
MIN=$((MIN-1))
|
||||
done
|
||||
MIN=59
|
||||
HOUR=$((HOUR-1))
|
||||
done
|
||||
s=${1}
|
||||
HOUR=$( Floor ${s} 60/60 )
|
||||
s=$((${s}-(60*60*${HOUR})))
|
||||
MIN=$( Floor ${s} 60 )
|
||||
SEC=$((${s}-60*${MIN}))
|
||||
while [ $HOUR -ge 0 ]; do
|
||||
while [ $MIN -ge 0 ]; do
|
||||
while [ $SEC -ge 0 ]; do
|
||||
printf "%02d:%02d:%02d\033[0K\r" $HOUR $MIN $SEC
|
||||
SEC=$((SEC-1))
|
||||
sleep 1
|
||||
done
|
||||
SEC=59
|
||||
MIN=$((MIN-1))
|
||||
done
|
||||
MIN=59
|
||||
HOUR=$((HOUR-1))
|
||||
done
|
||||
}
|
||||
|
||||
Timecount $m
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue