LinuxQuestions.org
Help answer threads with 0 replies.
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 09-01-2010, 11:04 AM   #1
connie84911
LQ Newbie
 
Registered: Jan 2010
Posts: 24

Rep: Reputation: 0
Rotate image for desktop applications


Hello,

I would like to use a key stroke sequence to rotate an applications view. For instance, when using gimp I would like to rotate the displayed image. I believe I would need to first know what application is currently in use, and then determine the hotkey(s) to rotate.

So, I need to what application is running in the foreground, and the keys that make the image rotate.

Can you tell me how to accomplish this?

Thanks
 
Old 09-01-2010, 01:06 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
For instance, when using gimp I would like to rotate the displayed image.
Isn't Image - Transform - Rotate in the gimp sufficient for you? Even ALT-I T R if you prefer keystrokes.

Most other picture viewers have similar options.

Some will automatically rotate your camera's images if your camera attaches the right "orientation" metadata to the jpgs it makes. My older camera does not do this. My more recent one does.

If this doesn't answer your Q, then we'll need details of your linux distro and what desktop you are running.
 
1 members found this post helpful.
Old 09-01-2010, 05:56 PM   #3
connie84911
LQ Newbie
 
Registered: Jan 2010
Posts: 24

Original Poster
Rep: Reputation: 0
Apologies if this is a repeat of an earlier response - I can't seem to find it though.

Thanks tredegar for the help regarding rotating gimp.

I am wondering if I can find out the current foreground application so I know the correct keystroke to use to rotate a particular application.

Thanks
 
Old 09-01-2010, 06:00 PM   #4
connie84911
LQ Newbie
 
Registered: Jan 2010
Posts: 24

Original Poster
Rep: Reputation: 0
I should have included my distro information:

Ubuntu 10.04 LTS
gnome desktop
kernel 2.6.32-24-generic
 
Old 09-02-2010, 11:39 AM   #5
connie84911
LQ Newbie
 
Registered: Jan 2010
Posts: 24

Original Poster
Rep: Reputation: 0
This bash script will display the active window:


#!/bin/bash

while true;
do
xprop -id `xprop -root | grep "_NET_ACTIVE_WINDOW(WINDOW)" | awk '{print $5}'` | grep "WM_CLASS(STRING)"
done
 
  


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
Image viewer that can rotate and save tiff mwildam Linux - Desktop 13 09-30-2006 06:35 AM
imagemagick and rotate image question nephish Linux - Software 2 08-26-2006 10:54 PM
unable rotate desktop Chinook06 Linux - General 2 03-12-2006 07:43 PM
how to rotate an image (clockwise for example)? xpucto Linux - Newbie 21 03-08-2006 12:22 PM
GIMP - Rotate image arbitrarily Micro420 Linux - Software 2 11-03-2003 02:52 AM

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

All times are GMT -5. The time now is 10:47 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