LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-24-2011, 03:11 AM   #1
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
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).
 
Old 02-24-2011, 03:42 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
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
 
Old 02-24-2011, 03:46 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
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?
 
Old 02-24-2011, 05:19 AM   #4
redgoblin
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 189

Rep: Reputation: 41
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.

Last edited by redgoblin; 02-24-2011 at 05:20 AM. Reason: Highlight application name
 
Old 02-24-2011, 05:29 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
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.
 
Old 02-24-2011, 11:00 AM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
I thought the solution looked too easy/common.

Regards Glenn
 
Old 02-28-2011, 01:20 AM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
@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 .
 
Old 02-28-2011, 08:09 AM   #8
bluebox
Member
 
Registered: Jun 2004
Posts: 71

Rep: Reputation: 9
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
 
Old 02-28-2011, 10:15 AM   #9
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,772
Blog Entries: 3

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

~~~ 0;-Dan
 
Old 02-28-2011, 05:33 PM   #10
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
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
 
Old 02-28-2011, 07:22 PM   #11
bluebox
Member
 
Registered: Jun 2004
Posts: 71

Rep: Reputation: 9
Quote:
Originally Posted by GlennsPref View Post
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.
 
1 members found this post helpful.
Old 02-28-2011, 08:32 PM   #12
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Smile Thanks

Quote:
Originally Posted by bluebox View Post
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.


Thank you very much.

Cheers.
 
Old 03-16-2011, 02:00 AM   #13
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
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" 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>

Last edited by JZL240I-U; 03-16-2011 at 02:03 AM.
 
Old 03-16-2011, 02:07 AM   #14
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
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
 
Old 03-16-2011, 02:12 AM   #15
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by GlennsPref View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Changing screen resolution on laptops with KDE 10 messes up desktop display garza SUSE / openSUSE 8 08-09-2010 05:20 AM
display in monitor is too big for the screen in X Grid_Iron Linux - Hardware 1 04-26-2007 10:08 AM
Rotate Screen Display ! santoshpatel Linux - Hardware 3 06-19-2005 09:00 AM
How to rotate the Display using KDE Control Panel? blish_blash Linux - Software 1 03-17-2005 10:31 AM
Unable to rotate monitor in kde 3.2 ghow961 Linux - Software 2 05-01-2004 07:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration