Monitor clone

This commit is contained in:
Frank Villaro-Dixon 2013-09-29 17:36:18 +02:00
parent eca9563d78
commit 8e84d7fc91
7 changed files with 11 additions and 37 deletions

View file

@ -1,27 +0,0 @@
#!/bin/bash
if [ $# -lt 1 ]
then
echo "Usage : $0 [dual|extern|laptop]"
exit
fi
case "$1" in
"dual")
xrandr --output LVDS1 --auto --rotate normal --pos 0x0 \
--output VGA1 --auto --rotate normal --right-of LVDS1
;;
"laptop")
xrandr --output LVDS1 --auto --rotate normal --pos 0x0 \
--output VGA1 --off
;;
"extern")
xrandr --output LVDS1 --off \
--output VGA1 --auto --rotate normal
;;
esac
~/Pictures/wallpapers/chooseWP.sh

View file

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

View file

@ -41,6 +41,10 @@ case $1 in
--output VGA1 --auto --rotate normal \
--right-of LVDS1
;;
"clone")
xrandr --output LVDS1 --auto \
--output VGA1 --auto --same-as LVDS1
;;
"off")
xset dpms force off
;;

1
bashrc
View file

@ -130,6 +130,7 @@ OCTOPUS=~/.my_utils/octopus.sh
alias dual='$OCTOPUS monitor dual'
alias laptop='$OCTOPUS monitor laptop'
alias extern='$OCTOPUS monitor extern'
alias clone='$OCTOPUS monitor clone'
alias volup='$OCTOPUS volume up'
alias voldown='$OCTOPUS volume down'

View file

@ -11,8 +11,6 @@ function deploy_for_desktop()
cd ~
if [ ! -d "~/.my_utils" ]; then mkdir ~/.my_utils; fi;
cd ~/.my_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
ln -s $WAI/Utils/octopus.sh ./octopus.sh

View file

@ -1,13 +1,13 @@
############################
##### ATTENTION - /!\ ######
# Fichier sur git, #
# Accessible publijuement #
# Accessible publiquement #
# Ne pas mettre de mdp en #
# clair ! #
############################
set from = "Frank@Villaro-Dixon.eu"
set from = "Frank Villaro-Dixon <Frank@Villaro-Dixon.eu>"
set realname = "Frank Villaro-Dixon"
set smtp_url = "smtp://frank_mail@villaro-dixon.eu:587/"
@ -55,10 +55,8 @@ set auto_tag = yes
set abort_unmodified=ask-yes #réponse non modifiée
set fast_reply="yes" # Yeah, I know what person I want to reply to!
set attribution="On %d, %n, wrote %c characters saying:"
set indent_string=">"
set indent_string="> "
#set max_line_length = 80
#set stuff_quoted
@ -75,6 +73,8 @@ auto_view text/html
bind editor ^T complete
bind editor <space> noop
set pager_stop="yes"
# Gmail-style keyboard shortcuts
#macro index,pager y "<enter-command>unset trash\n <delete-message>" "Gmail archive message"
#macro index,pager d "<enter-command>set trash=\"imaps://imap.googlemail.com/[GMail]/Bin\"\n <delete-message>" "Gmail delete message"

View file

@ -145,7 +145,7 @@ inoremap § <esc>/<+.\{-1,}+><return>c/+>/e<return>
"Automatic line wrap/br when writing mails in mutt
au BufRead /dev/shm/mutt-* set tw=80 fo+=aw
au BufRead /dev/shm/mutt-* set tw=80 fo+=aw noautoindent
"Automatic documentation
autocmd BufNewFile,BufRead *.py set keywordprg=pydoc