开发者

How to make a shortcut/script that checks and toggles screen orientation in Ubuntu 9.10

I have a screen with pivot functionality, and I'd very much like just one shortcut/launcher on my desktop that toggles between two orientations. In my case that would be the two commands:

xrandr -o left xrandr -o normal

How can I make this a shortcut that checks which orientation is used and make it take appropriate actio开发者_StackOverflown? I use nvidia.


Try the script mentioned at this blog post. If it works, just save it somewhere like /usr/local/bin/toggle_xrandr.sh (make sure you do chmod +x on it), and then create a new shortcut on your desktop or panel pointing to the script.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜