LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-12-2013, 03:55 PM   #16
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware64 14.1
Posts: 397

Rep: Reputation: 153Reputation: 153

Quote:
Originally Posted by Skaperen View Post
Would that "368" be typed as a stepped sequence of '3' and then '6' and then '8' while holding F12 ? Would I be flapping through viewport 3 and then 36 before getting to 368?
No. While pressing the numbers nothing happens. When the F12 key is released the viewport changes.

Quote:
I don't want to think in numbers. Names would be not much better. I think in positions. I am using Ubuntu+Gnome+Compiz now on an older desktop machine I'm trying to move away from. That's where I have a 6x6 grid. I do think in positions on that grid. I do not think in terms of grid number. I don't think of numbers at all with it (even though a number of tools let me move windows to specifically numbered desktops). But this is slower than I want.

So I don't want to type the number for two reasons. One is the extra steps. The other is the thinking mode being less natural for me. I want to hold a key chord (1 or 2 or maybe 3 of Alt, Ctrl, Shift, Windows) and while holding that, press ONE MORE KEY, and instantly be on that desktop or viewport or workspace or whatever we call it ... that is associated with that ONE MORE KEY.
Well, I'm afraid that the method I described with compiz is not for you then. These compiz plugins manage viewports in a grid/numeric fashion, which is not what you need. My apologies for misunderstanding your requirements.

Good luck.
 
Old 06-12-2013, 05:29 PM   #17
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Original Poster
Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by Diantre View Post
No. While pressing the numbers nothing happens. When the F12 key is released the viewport changes.
The way I would want this to happen is that there is the key chord AND the single key, one of 60 or so, which when pressed causes the switch to happen instantly, and go to that single key's viewport. The key chord, still in a held down state, will affect the next key pressed, which will instantly switch viewport again. That's how it works on the text mode virtual consoles. Hopefully the state of the held keys is not inappropriately erased.

Quote:
Originally Posted by Diantre View Post
Well, I'm afraid that the method I described with compiz is not for you then. These compiz plugins manage viewports in a grid/numeric fashion, which is not what you need. My apologies for misunderstanding your requirements.

Good luck.
Well, that seems to be how compiz does it w/o any plugins *I* added ... maybe Ubuntu added them. But I note that when I press and hold the key chord Ctrl+Alt with compiz, the grid does not come up until I press and arrow key. But is stays up as long as I continue to hold the key chord, then I can press another arrow key. The grid drops away only when I release Ctrl+Alt. See the logic in how holding the key chord PREFIX keeps the other keys being considered part of the whole key chord.
 
Old 06-12-2013, 06:40 PM   #18
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware64 14.1
Posts: 397

Rep: Reputation: 153Reputation: 153
Quote:
Originally Posted by Skaperen View Post
But I note that when I press and hold the key chord Ctrl+Alt with compiz, the grid does not come up until I press and arrow key. But is stays up as long as I continue to hold the key chord, then I can press another arrow key. The grid drops away only when I release Ctrl+Alt. See the logic in how holding the key chord PREFIX keeps the other keys being considered part of the whole key chord.
Yes, I understand the logic. This Ctrl+Alt+Arrow movement is provided by the Desktop Wall plugin, along with mouse/keyboard/screen position combinations to switch viewports. But switching directly to an arbitrary viewport is not possible with this plugin, the switching is done only to adjacent viewports.

The other plugin, Viewport Switcher, provides the means to change directly to an specific viewport with the keybinding+number combination, but the plugin handles the viewports in a grid/numeric way, which is not what you require.

As far as I know, there is no way to accomplish what you want to do with compiz or XFCE.

Perhaps someone with experience in KDE can comment if this kind of viewport switching is possible there?
 
Old 06-12-2013, 08:58 PM   #19
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Original Poster
Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by Diantre View Post
Yes, I understand the logic. This Ctrl+Alt+Arrow movement is provided by the Desktop Wall plugin, along with mouse/keyboard/screen position combinations to switch viewports. But switching directly to an arbitrary viewport is not possible with this plugin, the switching is done only to adjacent viewports.

The other plugin, Viewport Switcher, provides the means to change directly to an specific viewport with the keybinding+number combination, but the plugin handles the viewports in a grid/numeric way, which is not what you require.

As far as I know, there is no way to accomplish what you want to do with compiz or XFCE.

Perhaps someone with experience in KDE can comment if this kind of viewport switching is possible there?
I think it is with Xfce ... if someone can tell me what code is used for the Windows key in the shortcuts menu.
 
Old 06-13-2013, 05:05 AM   #20
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
Quote:
Originally Posted by Skaperen View Post
The way I would want this to happen is that there is the key chord AND the single key, one of 60 or so, which when pressed causes the switch to happen instantly, and go to that single key's viewport. The key chord, still in a held down state, will affect the next key pressed, which will instantly switch viewport again.
Inspecting ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml, it seems that's how it works. For example <property name="&lt;Control&gt;F7" type="string" value="workspace_7_key"/>

How would the Super (aka Windows) key be referenced? Well, I use Super+E to start Thunar showing my home directory. The shortcut was created in the GUI. The XML (in xfce4-keyboard-shortcuts.xml) is <property name="&lt;Super&gt;e" type="string" value="thunar /home/c"/>

So, if you want Alt+Super+g to switch to workspace 35, it might be worth shutting down Xfce and adding a line to xfce4-keyboard-shortcuts.xml, something like <property name="&lt;Alt&gt;&lt;Super&gt;g" type="string" value="workspace_35_key"/>. Might be worth testing on workspace 2 first.
 
Old 06-13-2013, 05:09 AM   #21
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
Quote:
Originally Posted by Skaperen View Post
I think it is with Xfce ... if someone can tell me what code is used for the Windows key in the shortcuts menu.
Which shortcuts menu? If you mean Settings -> Keyboard -> Application Shortcuts then no code is entered. The task is achieved by pressing the desired keys. As per my last post, the coded result appears in xfce4-keyboard-shortcuts.xml where the Super (aka Windows) key is coded as "Super".
 
Old 06-13-2013, 11:20 PM   #22
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Original Poster
Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by catkin View Post
Inspecting ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml, it seems that's how it works. For example <property name="&lt;Control&gt;F7" type="string" value="workspace_7_key"/>

How would the Super (aka Windows) key be referenced? Well, I use Super+E to start Thunar showing my home directory. The shortcut was created in the GUI. The XML (in xfce4-keyboard-shortcuts.xml) is <property name="&lt;Super&gt;e" type="string" value="thunar /home/c"/>
I was told that name yesterday on IRC ... first I've ever heard it called "Super". Was that made up to avoid a reference to a Microsoft product?

Quote:
Originally Posted by catkin View Post
So, if you want Alt+Super+g to switch to workspace 35, it might be worth shutting down Xfce and adding a line to xfce4-keyboard-shortcuts.xml, something like <property name="&lt;Alt&gt;&lt;Super&gt;g" type="string" value="workspace_35_key"/>. Might be worth testing on workspace 2 first.
I've added new ones, and so far they do nothing while the old ones still work.

Quote:
Originally Posted by catkin View Post
Which shortcuts menu? If you mean Settings -> Keyboard -> Application Shortcuts then no code is entered. The task is achieved by pressing the desired keys. As per my last post, the coded result appears in xfce4-keyboard-shortcuts.xml where the Super (aka Windows) key is coded as "Super".
I was in Settings -> Settings Editor -> xfce4-keyboard-shortcuts -> xfwm4 -> custom. I eventually figured out that you need to keep the "/xfwm4/custom/" so the string to be in there would look like "/xfwm4/custom/<Alt><Super>g" or such. But stuff is not working. Maybe there is a limit? Maybe "<Super>" is blocked somewhere and has to be enabled? Maybe it can't handle above 12 in the shortcuts?

Is there anyone around that can read the Xfce source code?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] Fluxbox Ignores First Keypress After Switching Virtual Desktops Jdogzz Slackware 8 10-07-2012 09:20 PM
LXer: Deja Vu: IBM Pushes Virtual Linux Desktops With Virtual Bridges (Again) LXer Syndicated Linux News 0 01-25-2011 01:40 PM
switching desktops corbis_demon Linux - General 2 07-19-2004 03:08 AM
switching desktops citrus Linux - General 8 02-19-2004 04:25 PM
Switching Desktops jd300 Linux - Software 1 11-29-2001 02:42 AM


All times are GMT -5. The time now is 12:19 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration