added qtcurve

This commit is contained in:
arcan1s
2014-03-11 21:06:47 +04:00
parent 40d40f7a35
commit fc877e4598
4 changed files with 293 additions and 3 deletions

15
zshrc
View File

@ -294,7 +294,7 @@ pack () {
# function to contorl xrandr
# EXAMPLE: projctl 1024x768
projctl () {
if [ $1 ] ; then
if [ $1 ]; then
if [ $1 = "-h" ]; then
echo "Usage: projctl [ off/resolution ]"
return
@ -313,6 +313,18 @@ projctl () {
fi
}
twinmon () {
FIRSTMON="LVDS1"
FIRSTMONRESOL="1366x768"
SECONDMON="VGA1"
SECONDMONRESOL="1280x1024"
if [[ $1 == "off" ]]; then
xrandr --output $FIRSTMON --mode $FIRSTMONRESOL --primary --output $SECONDMON --off
else
xrandr --output $FIRSTMON --mode $FIRSTMONRESOL --primary --output $SECONDMON --mode $SECONDMONRESOL --left-of $FIRSTMON
fi
}
# sudo alias
if [[ $EUID == 0 ]]; then
alias fat32mnt='show_which fat32mnt && mount -t vfat -o codepage=866,iocharset=utf8,umask=000'
@ -332,7 +344,6 @@ else
alias synctime='show_which synctime && { sudo ntpd -qg; sudo hwclock -w; date; }'
alias wifi-menu='show_which wifi-menu && sudo wifi-menu'
alias dhcpcd='show_which dhcpcd && sudo dhcpcd'
alias journalctl='show_which journalctl && sudo journalctl'
alias systemctl='show_which systemctl && sudo systemctl'
alias modprobe='show_which modprobe && sudo modprobe'
alias rmmod='show_which rmmod && sudo rmmod'