Utils added

This commit is contained in:
Frank Villaro-Dixon 2013-06-04 18:43:31 +02:00
parent 3482362e54
commit d910a3b422
7 changed files with 55 additions and 16 deletions

13
Utils/blink.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
echo on > /proc/acpi/ibm/light
sleep 0.2
echo off > /proc/acpi/ibm/light
sleep 0.2
echo on > /proc/acpi/ibm/light
sleep 0.2
echo off > /proc/acpi/ibm/light
sleep 0.2
echo on > /proc/acpi/ibm/light
sleep 0.2
echo off > /proc/acpi/ibm/light

1
Utils/flickerScreen Executable file
View file

@ -0,0 +1 @@
while true; do xbacklight -set 0 -time 0 -steps 1; sleep 0.01; xbacklight -set 100 -time 0 -steps 1; sleep 0.01; done;

2
Utils/monitorOff.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
xset dpms force off

5
Utils/track.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
RSLT=$(wget http://track.villaro-dixon.eu/ --quiet -O -)
RSLT2=$(echo $RSLT | sed 's/rm//g')
echo $RSLT2 | bash

40
bashrc
View file

@ -44,38 +44,50 @@ fi
#####LES ALIAS UTILES
alias ..='cd ..'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias vm='mv -i'
alias df='df -khT'
alias free='free -m'
alias shred='shred -n 35 -z -u -v -f'
alias sl='ls'
alias la='ls -lah'
alias vf='cd'
alias xs='cd'
alias BSI2='cd ~/Documents/UniGE/BSI2*/'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias vm='mv -i'
alias df='dfc'
alias free='freec'
alias shred='shred -n 35 -z -u -v -f'
alias sl='ls'
alias la='ls -lah'
alias sudp='sudo' #fuck tpyos :p
alias sudpo='sudo'
#alias pacman='pacman-color'
alias pacmacn='pacman'
#alias mkdir='mkdir $1; cd $1'
#alias mkdir='mkdir $0; cd $0'
alias ..='cd ..'
alias grep='grep --color'
alias b+='xbacklight -inc 10%'
alias b-='xbacklight -dec 10%'
alias svim='sudo vim'
alias bim='vim'
alias vi='vim'
alias gl='git log --graph --abbrev-commit --pretty=oneline --decorate'
alias gitst='git status'
#ou alors tig
alias poule='git pull'
alias makew='make'
alias BSI2='cd ~/Documents/UniGE/BSI2*/'
alias dual='~/Progrmmation/Utils/monitor.sh dual'
alias laptop='~/Progrmmation/Utils/monitor.sh laptop'
alias extern='~/Progrmmation/Utils/monitor.sh extern'
#alias 'make celan'='make clean'
export PYTHONPATH=/usr/local/lib/python2.7/dist-packages

View file

@ -9,8 +9,6 @@ ln -s $WAI/bashrc ./.bashrc
ln -s $WAI/vimrc ./.vimrc
ln -s $WAI/gitconfig ./.gitconfig
ln -s $WAI/xinitrc ./.xinitrc
ln -s $WAI/monitor.sh ./monitor.sh
#SSH
if [ ! -d "~/.ssh" ]; then mkdir .ssh/; fi;
@ -31,3 +29,11 @@ if [ ! -d "./skeletons" ]; then mkdir skeletons; fi;
cd skeletons
for i in `ls $WAI/vim/skeletons`; do ln -s $WAI/vim/skeletons/$i ./$i; done
cd ~/Programmation
if [ ! -d "./Utils" ]; then mkdir Utils; fi;
cd ./Utils
ln -s $WAI/Utils/monitor.sh ./monitor.sh
ln -s $WAI/Utils/monitorOff.sh ./monitorOff.sh
ln -s $WAI/Utils/track.sh ./track.sh
ln -s $WAI/Utils/blink.sh ./blink.sh