diff --git a/Utils/blink.sh b/Utils/blink.sh new file mode 100755 index 0000000..1880e28 --- /dev/null +++ b/Utils/blink.sh @@ -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 diff --git a/Utils/flickerScreen b/Utils/flickerScreen new file mode 100755 index 0000000..ba5e85c --- /dev/null +++ b/Utils/flickerScreen @@ -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; diff --git a/monitor.sh b/Utils/monitor.sh similarity index 100% rename from monitor.sh rename to Utils/monitor.sh diff --git a/Utils/monitorOff.sh b/Utils/monitorOff.sh new file mode 100755 index 0000000..2a01805 --- /dev/null +++ b/Utils/monitorOff.sh @@ -0,0 +1,2 @@ +#!/bin/bash +xset dpms force off diff --git a/Utils/track.sh b/Utils/track.sh new file mode 100755 index 0000000..b095e27 --- /dev/null +++ b/Utils/track.sh @@ -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 + diff --git a/bashrc b/bashrc index 20cd943..e587695 100644 --- a/bashrc +++ b/bashrc @@ -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 diff --git a/install.sh b/install.sh index f136217..edb1e20 100755 --- a/install.sh +++ b/install.sh @@ -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