LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 10-05-2010, 04:00 PM   #1
WetFroggy
Member
 
Registered: Jul 2008
Posts: 49

Rep: Reputation: 0
Question WHAT is the "command" to switch workspaces (gsb-2.30 slackware-13.1)


using : gsb-2.30 slackware-13.1
not using : KDE (or qt)
xfce exists somewhere on here, as I use it as root's desktop

1) The workspace selector applet, doesn't have any edit ability to change (or even add default) shortcut key combinations.

2) In 'gconf-editor', there does not seem to be anything really related to selecting a workspace.

3) Keyboard Selector, does NOT have any reference to workspace, so setting the default shortcut keys, is impossible.

Add (custom shortcut) name (description of shortcut) & command .. so that leaves me with, what is this 'mythical' command to change to a specific workspace?

I am unable to locate any information on this required command.
 
Old 10-05-2010, 04:32 PM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,223

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
xfce exists somewhere on here, as I use it as root's desktop
Good. Xfce is very light and well ordered interface.

Quote:
1) The workspace selector applet, doesn't have any edit ability to change (or even add default) shortcut key combinations.
Use Ctl+F1 through F4 to switch from one work space to the next.

Quote:
2) In 'gconf-editor', there does not seem to be anything really related to selecting a workspace.
I have not yet delved much about the rich hack-able opportunities in Xfce yet, but I have in past enjoyed much of hacking its interface to my own taste: this is the best thing that xfce offers: for allowing the user to configure the interface to his own desire.

Meantime you can use the applet in setting how many work spaces you like. Menu -> Settings -> Settings manager -> Work spaces and margins: (set how many) then Close. Point mouse anywhere at the desktop then scroll the center wheel of the mouse to shift/change from one space to the next.

Hope this helps.

Good luck and enjoy.
 
Old 10-05-2010, 04:32 PM   #3
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,223

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
xfce exists somewhere on here, as I use it as root's desktop
Good. Xfce is very light and well ordered interface.

Quote:
1) The workspace selector applet, doesn't have any edit ability to change (or even add default) shortcut key combinations.
Use Ctl+F1 through F4 to switch from one work space to the next.

Quote:
2) In 'gconf-editor', there does not seem to be anything really related to selecting a workspace.
I have not yet delved much about the rich hack-able opportunities in Xfce yet, but I have in past enjoyed much of hacking its interface to my own taste: this is the best thing that xfce offers: for allowing the user to configure the interface to his own desire.

Meantime you can use the applet in setting how many work spaces you like. Menu -> Settings -> Settings manager -> Work spaces and margins: (set how many) then Close. Point mouse anywhere at the desktop then scroll the center wheel of the mouse to shift/change from one space to the next.

Hope this helps.

Good luck and enjoy.
 
Old 10-11-2010, 11:14 AM   #4
gammahermit
Member
 
Registered: Apr 2010
Distribution: Arch
Posts: 44

Rep: Reputation: 4
If I understand right you are using Xfce and trying to set/change the keyboard shortcut to switch the workspace. I think the problem is that you are in the keyboard settings program. Which only allows you to start a program not bind internal window manager functions.

If you go to menu->settings->window manager then the keyboard tab it will list all of the actions and their shortcuts and allow you to change them.
 
Old 10-17-2011, 11:32 AM   #5
talfiq
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: 10
go to Applications Menu -> Settings -> Windows Manager.. there is option for keyboard shortcuts there... quite tricky unlike the other windows manager KDE/Gnome for e.g
 
Old 01-28-2012, 02:42 AM   #6
WetFroggy
Member
 
Registered: Jul 2008
Posts: 49

Original Poster
Rep: Reputation: 0
Forgot my original reason for this post (I migrated away to xfce) but I believe what I was asking, was if there was a command prompt issuable command - although I'm pretty sure there wasn't, as workspace switching seemed to be just handled entirely by the gui's code.

Anyhow, thank you for everyone who tried to help me out here. The help was appreciated!
 
Old 01-28-2012, 07:46 AM   #7
Knightron
Senior Member
 
Registered: Jan 2011
Location: Planet Earth
Distribution: Slackware.
Posts: 1,344
Blog Entries: 7

Rep: Reputation: 159Reputation: 159
Hey, did you get your problem solved. If you are having issues with your workspaces, it may be because of compiz if you have that installed
 
Old 01-28-2012, 02:36 PM   #8
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
Here's a little script called 'desktop', that I wrote to switch workspaces / desktops. You call it with the (zero based) workspace you want to switch to. You'll need the wmctrl command installed, which should be in most distribution's repositories.

Code:
#!/bin/bash
#-------------------------------------------------------------------------------
#
# desktop
# 
# Author:   Mace Moneta
# Version:  1.1
# Created:  01/13/2010
# Modified: 10/04/2010
#
# Description: Switch to the requested desktop
# 
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#       ************************** Variables **************************
#-------------------------------------------------------------------------------
# Desktop number passed?
dt=$1
if [ "$dt" == "" ]
then
   echo "Error: missing desktop number"
   exit
fi

#-------------------------------------------------------------------------------
#       ************************* Subroutines *************************
#-------------------------------------------------------------------------------
function dsktop () {
   if [ $COMPIZ -eq 1 ]
   then
      # The target desktop number (begins with 0)
      TVPN=$(( $1 % ${NF} ))
      # The X coordinate of the target viewport
      TVPX=$(( ${TVPN} * ${WW} ))
      # Change to the target viewport
      /usr/bin/wmctrl -o ${TVPX},0
   else
      /usr/bin/wmctrl -s $1
   fi
}

#-------------------------------------------------------------------------------
#       ************************* Mainline ****************************
#-------------------------------------------------------------------------------

# Disable globbing
set -f noglob

# Is compiz running?
COMPIZ=0
window_manager="`/usr/bin/wmctrl -m | /bin/grep -i compiz`"
if [ "$window_manager" != "" ]
then
   COMPIZ=1
fi

# The information about the desktop
INFO=$(/usr/bin/wmctrl -d | /bin/grep "\*")

# The width of the desktop
DW=$(echo "${INFO}" | /bin/awk '{sub(/x[0-9]+/, "", $4); print $4}')

# The width of the workarea
WW=$(echo "${INFO}" | /bin/awk '{sub(/x[0-9]+/, "", $9); print $9}')

# The number of faces on the cube
NF=$(($DW/$WW))

dsktop $dt
/bin/sleep 2
exit
For example, to switch to the first desktop:
Code:
desktop 0
To switch to the second desktop:
Code:
desktop 1
 
  


Reply

Tags
command line, gnome, shortcut, slackware, workspaces


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
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
Make "ls" command show colors without "--color=always" switch SharpyWarpy Linux - General 4 07-17-2007 12:00 AM
C Drive "/dev/hda1" accidently used in dd command at "of=" switch M D Linux - Software 4 04-26-2007 09:56 AM
"NIM thread blocked" & "Deadman Switch (DMS) close to trigger" errors sosborne Linux - Networking 1 06-28-2006 03:07 PM


All times are GMT -5. The time now is 12:23 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration