Rotate the monitor-display and the screen-desktop in KDE
I have a monitor which I can rotate 90 degrees clockwise from landscape to portrait setting and vice versa. I'm looking for a setting (preferredly realized as a shortcut) to rotate the contents i.e. my (KDE) desktop along.
In Windows *cough* I use <ctrl><alt><arrow> to switch the up-direction of the display to where I want it. Something like that is what I'm looking for in KDE as well. (For my hardware setup look in my signature). |
Hi I think this is it...
Quote:
Regards Glenn |
Yes, I know those. They are from the control center (I think system settings sub-menu ... or keyboard? Dunno, I' sitting in front of a windows box right now ;)). But they lack the desired rotation keys. How can I create them?
|
Krandr is an application that sits in the system tray and handles screen resolution and rotation for KDE. (Sorry can't find a link to it). Not sure if it supports shortcut keys as I'm not infront of my desktop at the moment.
I noted that there's some work toward automatic screen rotation (Google Search). At least one of those links mention a short Bash script bound to a shortcut key that might do what you want. Let us know if you get it working. |
Will do over the weekend and come back with the results.
This is part of my effort to create a multi user / multi seat setup in a congested space (more room when you can tilt the monitors ;)). Anybody with interest in this, feel free ;) to support my feature request here: https://features.opensuse.org/310913. Thanks. |
I thought the solution looked too easy/common.
Regards Glenn |
@redgoblin Works like a charm. Thanks a load. I didn't find any possibility for a shortcut, though, same as you already mentioned. So, anybody who knows how to add that?
@GlennsPref You pulling my leg? Too easy/common? That's what the desktop linux user is drooling over ;). As to your first post: Do you know of a method to add to this list of shortcuts? Thanks to both of you :). |
For rotation, write two scripts to do what you want (rotate and rotate back). When "krandr" doesn't qualify for this, have a look at "xrandr".
For shortcuts, have a look at "xbindkeys" and "xte" and at this text: http://wiki.ubuntuusers.de/xbindkeys |
For Ubuntu folks, there is a package tablet-screen-rotation-support that uses ACPI to detect the rotation and change the geometry.
~~~ 0;-Dan |
Quote:
Besides they might be kde3.5 vintage/age. Bluebox has a promising link, too bad my grade8 German fails me. (it might not be German) Using kde4 here, try this link. /home/$USER/.kde4/share/config/kglobalshortcutsrc All the best, Glenn |
Quote:
Here's an even more detailed explanation of xbindkeys for the people with less specialized linguistic habits: https://wiki.archlinux.org/index.php/Xbindkeys And here is a very short explanation of xte: http://bingnu.net/keybindings-with-linux/ xbindkeys is intended to run a command on a key press and should be the thing that is needed here. xte can emulate complex X events on key presses, but I don't expect it to be necessary here. |
Thanks
Quote:
Thank you very much. Cheers. |
Sorry to come back only this late. I had trouble with my setup which is only now resolved.
@ redgoblin & @ SaintDanBert: Automatic detection of a change of orientation would be nice. But the links are usually for netbooks / tablets and the like, I don't even know whether a "normal" monitor generates a signal when it is rotated (at least I found no pertinent information). So I'd settle for a manual setting. "Krandr" works with the mouse in a menu as posted, thanks. @ GlennsPref & @ bluebox: openSuSE doesn't seem to know either "(x)bindkeys" or "xte" :scratch: Are those two part of a package? Funny thing is, my installation doesn't know "Krandr" either, though it is there and works. I'm somewhat perplexed by this... <edit> Btw. the second link of your last post times out, bluebox... </edit> |
There's all types of Randr, krandr, xrandr
These pages are concerned with PC's I've found the archlinux wiki to be very good. https://wiki.archlinux.org/index.php/Xrandr http://linux.die.net/man/1/xrandr |
Quote:
Would you happen to know where I can find "(x)bindkeys" and "xte" or which packet they belong to? Thanks for the links, I like the ArchWiki, too. |
All times are GMT -5. The time now is 02:45 PM. |