LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Rotate the monitor-display and the screen-desktop in KDE (https://www.linuxquestions.org/questions/linux-desktop-74/rotate-the-monitor-display-and-the-screen-desktop-in-kde-864712/)

JZL240I-U 02-24-2011 03:11 AM

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).

GlennsPref 02-24-2011 03:42 AM

Hi I think this is it...

Quote:

"Ctrl+F8" for "kwin" : "ShowDesktopGrid"
"Ctrl+F9" for "kwin" : "Expose"
"Ctrl+F10" for "kwin" : "ExposeAll"
"Ctrl+F7" for "kwin" : "ExposeClass"
"Ctrl+F12" for "plasma-desktop" : "Show Dashboard"

"Alt+Tab" for "kwin" : "Walk Through Windows"
"Alt+Shift+Backtab" for "kwin" : "Walk Through Windows (Reverse)"
"Alt+F3" for "kwin" : "Window Operations Menu"
"Alt+F4" for "kwin" : "Window Close"
"Ctrl+Alt+A" for "kwin" : "Activate Window Demanding Attention"
"Meta+Alt+Up" for "kwin" : "Switch Window Up"
"Meta+Alt+Down" for "kwin" : "Switch Window Down"
"Meta+Alt+Right" for "kwin" : "Switch Window Right"
"Meta+Alt+Left" for "kwin" : "Switch Window Left"
"Ctrl+F1" for "kwin" : "Switch to Desktop 1"
"Ctrl+F2" for "kwin" : "Switch to Desktop 2"
"Ctrl+F3" for "kwin" : "Switch to Desktop 3"
"Ctrl+F4" for "kwin" : "Switch to Desktop 4"
"Alt+F12" for "kwin" : "Mouse Emulation"
"Ctrl+Alt+Esc" for "kwin" : "Kill Window"
"Alt+Print" for "kwin" : "Window Screenshot to Clipboard"
"Ctrl+Print" for "kwin" : "Desktop Screenshot to Clipboard"
"Alt+Shift+F12" for "kwin" : "Suspend Compositing"

"Alt+F2" for "krunner" : "Run Command"
"Alt+Shift+F2" for "krunner" : "Run Command on clipboard contents"
"Ctrl+Esc" for "krunner" : "Show System Activity"
"Ctrl+Alt+Ins" for "krunner" : "Switch User"
"Ctrl+Alt+L" for "krunner" : "Lock Session"
"Ctrl+Alt+Del" for "krunner" : "Log Out"
"Ctrl+Alt+Shift+Del" for "krunner" : "Log Out Without Confirmation"
"Ctrl+Alt+Shift+PgDown" for "krunner" : "Halt Without Confirmation"
"Ctrl+Alt+Shift+PgUp" for "krunner" : "Reboot Without Confirmation"

no ref sorry.

Regards Glenn

JZL240I-U 02-24-2011 03:46 AM

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?

redgoblin 02-24-2011 05:19 AM

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.

JZL240I-U 02-24-2011 05:29 AM

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.

GlennsPref 02-24-2011 11:00 AM

I thought the solution looked too easy/common.

Regards Glenn

JZL240I-U 02-28-2011 01:20 AM

@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 :).

bluebox 02-28-2011 08:09 AM

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

SaintDanBert 02-28-2011 10:15 AM

For Ubuntu folks, there is a package tablet-screen-rotation-support that uses ACPI to detect the rotation and change the geometry.

~~~ 0;-Dan

GlennsPref 02-28-2011 05:33 PM

Quote:

You pulling my leg? Too easy/common
I meant my attempted solution was too easy.

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

bluebox 02-28-2011 07:22 PM

Quote:

Originally Posted by GlennsPref (Post 4274491)
Bluebox has a promising link, too bad my grade8 German fails me.

ooops, I am sorry! Sometimes I'm simply not aware whether I'm just reading German or English.

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.

GlennsPref 02-28-2011 08:32 PM

Thanks
 
Quote:

Originally Posted by bluebox (Post 4274581)
ooops, I am sorry! Sometimes I'm simply not aware whether I'm just reading German or English.

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.

:cool:

Thank you very much.

Cheers.

JZL240I-U 03-16-2011 02:00 AM

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>

GlennsPref 03-16-2011 02:07 AM

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

JZL240I-U 03-16-2011 02:12 AM

Quote:

Originally Posted by GlennsPref (Post 4292235)
There's all types of Randr, krandr, xrandr...

Yes, I know. I still find it peculiar to have a working "*randr" on my system but YAST doesn't know about it. Now that you mention it, I didn't try xrandr from the command line, maybe it is there too.

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.