~scripts
55 itemsDownload ./*

55 itemsDownload ./*

..
dzen2
tiling
vosh
4cdl
4trips
alarm
ambient
ana-wall.sh
battery-monitor
brightness.sh
checkit
cleverbot.py
clock
color-gen
colors-hex
colorscheme.sh
compton
dailywall
dmenu
ffthumb
grid
gridmacro
gridmacro.kde
help
importw
indexer
install-all.sh
install-twily.sh
installng
keep-on
mp3ogg
orage
pipes
pipes.x
pipewire_bt.sh
ports
rain
randwall
rotate.sh
scan.sh
screen-dim
screencast
screencast2
scrot
scrotw
search
skull
slocker
starwars
streamit
sumnum
tty-colorize
usrmount
ytp
ytplay


scriptsrotate.sh
513•  2 years ago•  DownloadRawClose
2 years ago•  513

{}
#!/bin/bash

R="$1"

case "$R" in
    "normal")
        xrandr -o normal
        xinput set-prop $ID "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
        ;;
    "left")
        xrandr -o left
        xinput set-prop $ID "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1
        ;;
    "inverted")
        xrandr -o inverted
        xinput set-prop $ID "Coordinate Transformation Matrix" -1 0 1 0 -1 1 0 0 1
        ;;
    "right")
        xrandr -o right
        xinput set-prop $ID "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
        ;;
    *)
        echo "Missing input normal,left,inverted,right"
esac

exit

Top
©twily.info 2013 - 2024
twily at twily dot info



2 034 770 visits
... ^ v