monitor programming, xmodmap, op function

This commit is contained in:
Frank Villaro-Dixon 2013-12-18 23:08:34 +01:00
parent 7be684839b
commit 7a53b18ed5
8 changed files with 80 additions and 34 deletions

View file

@ -45,26 +45,30 @@ case $1 in
"monitor") "monitor")
case $2 in case $2 in
"extern") "extern")
xrandr --output LVDS1 --off \ xrandr --output LVDS2 --off \
--output VGA1 --auto --rotate normal --output VGA2 --auto --rotate normal
;; ;;
"laptop") "laptop")
xrandr --output LVDS1 --auto --rotate normal \ xrandr --output LVDS2 --auto --rotate normal \
--output VGA1 --off --output VGA2 --off
;; ;;
"dual") "dual")
xrandr --output LVDS1 --auto --rotate normal \ xrandr --output LVDS2 --auto --rotate normal \
--output VGA1 --auto --rotate normal \ --output VGA2 --auto --rotate normal \
--right-of LVDS1 --right-of LVDS2
;; ;;
"programming")
xrandr --output VGA2 --auto --rotate left \
--output LVDS2 --off
;;
"pdfpc") "pdfpc")
xrandr --output LVDS1 --auto --rotate normal \ xrandr --output LVDS2 --auto --rotate normal \
--output VGA1 --auto --rotate normal \ --output VGA2 --auto --rotate normal \
--left-of LVDS1 --left-of LVDS2
;; ;;
"clone") "clone")
xrandr --output LVDS1 --auto \ xrandr --output LVDS2 --auto \
--output VGA1 --auto --same-as LVDS1 --output VGA2 --auto --same-as LVDS2
;; ;;
"off") "off")
xset dpms force off xset dpms force off

15
Xmodmap
View file

@ -7,10 +7,13 @@
!remove mod1 = Alt_L !remove mod1 = Alt_L
!remove Control = Control_L !remove Control = Control_L
clear Control !clear Control
clear mod1 !clear mod1
keysym Control_L = Alt_L !keysym Control_L = Alt_L
keysym Alt_L = Control_L !keysym Alt_L = Control_L
add mod1 = Alt_L !add mod1 = Alt_L
add Control = Control_L !add Control = Control_L
! Control_R ! Control_R
!Espace insécable: Shift-Space ou Compose-Space-Space
keycode 65 = space nobreakspace emspace

36
bashrc
View file

@ -125,6 +125,8 @@ alias git_mail='git send-email --annotate --compose origin'
alias poule='git pull' alias poule='git pull'
alias makew='make' alias makew='make'
alias mkae='make'
alias amek='make'
alias BSI2='cd ~/Documents/UniGE/BSI2*/' alias BSI2='cd ~/Documents/UniGE/BSI2*/'
BSI3_PATH='/home/frank/Documents/UniGE/BSI3 - 2013-2014/' BSI3_PATH='/home/frank/Documents/UniGE/BSI3 - 2013-2014/'
@ -152,7 +154,6 @@ alias shm='cd /dev/shm'
alias ip6='ip -6' alias ip6='ip -6'
alias disk-usage-analyser='baobab' alias disk-usage-analyser='baobab'
alias op='xdg-open'
alias o='octave' alias o='octave'
alias cdu='cdu -idh' alias cdu='cdu -idh'
alias dus='du -sh * | sort -h' alias dus='du -sh * | sort -h'
@ -288,9 +289,7 @@ _StudyCompletion()
complete -F _StudyCompletion -o filenames study complete -F _StudyCompletion -o filenames study
## FIXME TO IMPROVE WITH VARIOUS locations (ex: ro 1; ro 2; ro 3)
RO_ROOT_DIRECTORY=/dev/shm/ro_$USER RO_ROOT_DIRECTORY=/dev/shm/ro_$USER
ro() ro()
{ # {{{ { # {{{
if [ ! -d $RO_ROOT_DIRECTORY ]; then if [ ! -d $RO_ROOT_DIRECTORY ]; then
@ -313,7 +312,6 @@ ro()
fi fi
fi; fi;
} # }}} } # }}}
roset() roset()
{ # {{{ { # {{{
if [ ! -d $RO_ROOT_DIRECTORY ]; then if [ ! -d $RO_ROOT_DIRECTORY ]; then
@ -326,7 +324,6 @@ roset()
pwd > $RO_ROOT_DIRECTORY/$1 pwd > $RO_ROOT_DIRECTORY/$1
fi fi
} # }}} } # }}}
_RoRosetCompletion() _RoRosetCompletion()
{ # {{{ { # {{{
local cur # Pointer to current completion word. local cur # Pointer to current completion word.
@ -444,10 +441,33 @@ function bpm
diff=`echo "scale=1; $beats / (($actual - $start) / 60)" | bc` diff=`echo "scale=1; $beats / (($actual - $start) / 60)" | bc`
echo $diff bpm echo $diff bpm
done done
} }
function op
{
file="$1"
ext=${file##*\.}
echo file is "$ext"
case $ext in
"pdf")
echo "toto"
evince "$1"
;;
"zip")
file-roller "$1"
;;
"latex"|"tex")
vim "$1"
;;
"java")
vim "$1"
;;
*)
xdg-open "$1"
;;
esac
}
# }}} # }}}
SSHAGENT=/usr/bin/ssh-agent SSHAGENT=/usr/bin/ssh-agent

View file

@ -111,12 +111,12 @@ source ~/.mutt/crypto
# LISTE DE CONTACTS # LISTE DE CONTACTS
#set query_command="~/.mutt/grep_ldap.sh '%s'"
#Alias #Alias
set alias_file=~/.mutt/alias set alias_file=~/.mutt/alias
set sort_alias = alias set sort_alias = alias
set reverse_alias = yes set reverse_alias = yes
source $alias_file source $alias_file
set query_command="~/.mutt/grep_ldap.sh '%s'"
set date_format="%y-%m-%d %T" set date_format="%y-%m-%d %T"
set index_format="%2C | %Z [%d] %-30.30F (%-4.4c) %s" set index_format="%2C | %Z [%d] %-30.30F (%-4.4c) %s"

View file

@ -38,3 +38,12 @@ host pc69240
host cuilxa host cuilxa
hostname cuilxa.unige.ch hostname cuilxa.unige.ch
user villaro0
host cui
hostname cui.unige.ch
user villaro0
host scylla
hostname 129.194.69.109
user villaro0

View file

@ -16,14 +16,20 @@
\usepackage[french]{babel} \usepackage[french]{babel}
%\usepackage[Sonny]{fncychap} % Lenny, Conny ,Bjarne, Rejne, Glenn, Sonny
%\usepackage{fancyhdr}
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\usepackage{sistyle}
\SIthousandsep{'} %to use with \num{1337}
\usepackage{indentfirst} \usepackage{indentfirst}
\setlength{\parindent}{1cm} \setlength{\parindent}{1cm}
%% Déclaration des options
%\DeclareOption{option}{...}
%\DeclareOption*{...}
%\ProcessOptions
\author{Frank Villaro-Dixon} \author{Frank Villaro-Dixon}

View file

@ -31,3 +31,7 @@ ventilo
l'ordi l'ordi
skippé skippé
stacktrace stacktrace
mouhahahhahahha
mouhahahahahha
circlip
BrainFuck

View file

@ -26,9 +26,9 @@ setxkbmap -model pc104 -layout ch -variant fr -option compose:lwin
#My pinkie hurts :'( #My pinkie hurts :'(
#if [ -s ~/.Xmodmap ]; then if [ -s ~/.Xmodmap ]; then
# xmodmap ~/.Xmodmap xmodmap ~/.Xmodmap
#fi fi
$OCTOPUS init-all 1>> /dev/shm/Octopus_logs 2>> /dev/shm/Octopus_logs & $OCTOPUS init-all 1>> /dev/shm/Octopus_logs 2>> /dev/shm/Octopus_logs &
ftpfct.sh >/dev/null & ftpfct.sh >/dev/null &