You are not logged in.

Dear visitor, welcome to VDR Portal. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

tecfreak

Professional

  • "tecfreak" started this thread

Posts: 1,001

Location: Berlin

  • Send private message

1

Thursday, December 20th 2007, 9:52pm

Zur nächsten Arbeitsfläche springen per Fernbedienung (GNOME)

Hallo,

habe mit Erfolg einen neuen VDR aufgebaut mit Ubuntu/Compiz-GNOME als Unterbau.
Was ich bis heute jedoch sehr vermisse, ist die Möglichkeit zwischen den einzelnen Arbeitsflächen per Fernbedienung zu wechseln (lirc, irexec).

Hat jemand eine Idee wie man das mit GNOME bewerkstelligen könnte? Gibt es da irgend ein shell Befehl für sowas?


Gruß
tec
Server: XEN 3.4.1; AMD 4850e, 4G DDR2, Dual Intel PRO/1000 PT, DVBSky S952 Dual DVB-S2 + TT-C1501 DVB-C, 2x 2TB + 500GB
dom0 - lenny xenlinux 2.6.32.13; vdr-domu - ubuntu 10.04 xenlinux 2.6.34.7, yavdr-ppa

Client-1: MSI 785GM-E65, X2 215, 2GB DDR3, 64GB SSD, Zotac GT 640 LP, IR atric rev5, Ubuntu 12.04, yavdr-ppa
Client-2
: Sapphire Edge-HD, Atom D510, 2GB DDR2, 250GB, ION2 512MB, Ubuntu 12.04, yavdr-ppa

2

Thursday, December 20th 2007, 10:06pm

Hallo,

Normalerweise erfolgt das über Keybindings, z.B. Einstellbar per über gnome-keybinding-properties ...

Aber bei lirc leistet wohl eher wmctrl -s <DESK> über irexec das gewünschte.

also
wmctrl -s 0
wmctrl -s 1
...

Andreas

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
~$ wmctrl 
wmctrl 1.07
Usage: wmctrl [OPTION]...
Actions:
  -m                   Show information about the window manager and
                       about the environment.
  -l                   List windows managed by the window manager.
  -d                   List desktops. The current desktop is marked
                       with an asterisk.
  -s <DESK>            Switch to the specified desktop.
  -a <WIN>             Activate the window by switching to its desktop and
                       raising it.
  -c <WIN>             Close the window gracefully.
  -R <WIN>             Move the window to the current desktop and
                       activate it.
  -r <WIN> -t <DESK>   Move the window to the specified desktop.
  -r <WIN> -e <MVARG>  Resize and move the window around the desktop.
                       The format of the <MVARG> argument is described below.
  -r <WIN> -b <STARG>  Change the state of the window. Using this option it's
                       possible for example to make the window maximized,
                       minimized or fullscreen. The format of the <STARG>
                       argument and list of possible states is given below.
  -r <WIN> -N <STR>    Set the name (long title) of the window.
  -r <WIN> -I <STR>    Set the icon name (short title) of the window.
  -r <WIN> -T <STR>    Set both the name and the icon name of the window.
  -k (on|off)          Activate or deactivate window manager's
                       "showing the desktop" mode. Many window managers
                       do not implement this mode.
  -o <X>,<Y>           Change the viewport for the current desktop.
                       The X and Y values are separated with a comma.
                       They define the top left corner of the viewport.
                       The window manager may ignore the request.
  -n <NUM>             Change number of desktops.
                       The window manager may ignore the request.
  -g <W>,<H>           Change geometry (common size) of all desktops.
                       The window manager may ignore the request.
  -h                   Print help.

Options:
  -i                   Interpret <WIN> as a numerical window ID.
  -p                   Include PIDs in the window list. Very few
                       X applications support this feature.
  -G                   Include geometry in the window list.
  -x                   Include WM_CLASS in the window list or
                       interpret <WIN> as the WM_CLASS name.
  -u                   Override auto-detection and force UTF-8 mode.
  -F                   Modifies the behavior of the window title matching
                       algorithm. It will match only the full window title
                       instead of a substring, when this option is used.
                       Furthermore it makes the matching case sensitive.
  -v                   Be verbose. Useful for debugging.
  -w <WA>              Use a workaround. The option may appear multiple
                       times. List of available workarounds is given below.

Arguments:
  <WIN>                This argument specifies the window. By default it's
                       interpreted as a string. The string is matched
                       against the window titles and the first matching
                       window is used. The matching isn't case sensitive
                       and the string may appear in any position
                       of the title.

                       The -i option may be used to interpret the argument
                       as a numerical window ID represented as a decimal
                       number. If it starts with "0x", then
                       it will be interpreted as a hexadecimal number.

                       The -x option may be used to interpret the argument
                       as a string, which is matched against the window's
                       class name (WM_CLASS property). Th first matching
                       window is used. The matching isn't case sensitive
                       and the string may appear in any position
                       of the class name. So it's recommended to  always use
                       the -F option in conjunction with the -x option.

                       The special string ":SELECT:" (without the quotes)
                       may be used to instruct wmctrl to let you select the
                       window by clicking on it.

                       The special string ":ACTIVE:" (without the quotes)
                       may be used to instruct wmctrl to use the currently
                       active window for the action.

  <DESK>               A desktop number. Desktops are counted from zero.

  <MVARG>              Specifies a change to the position and size
                       of the window. The format of the argument is:

                       <G>,<X>,<Y>,<W>,<H>

                       <G>: Gravity specified as a number. The numbers are
                          defined in the EWMH specification. The value of
                          zero is particularly useful, it means "use the
                          default gravity of the window".
                       <X>,<Y>: Coordinates of new position of the window.
                       <W>,<H>: New width and height of the window.

                       The value of -1 may appear in place of
                       any of the <X>, <Y>, <W> and <H> properties
                       to left the property unchanged.

  <STARG>              Specifies a change to the state of the window
                       by the means of _NET_WM_STATE request.
                       This option allows two properties to be changed
                       simultaneously, specifically to allow both
                       horizontal and vertical maximization to be
                       altered together.

                       The format of the argument is:

                       (remove|add|toggle),<PROP1>[,<PROP2>]

                       The EWMH specification defines the
                       following properties:

                           modal, sticky, maximized_vert, maximized_horz,
                           shaded, skip_taskbar, skip_pager, hidden,
                           fullscreen, above, below

Workarounds:

  DESKTOP_TITLES_INVALID_UTF8      Print non-ASCII desktop titles correctly
                                   when using Window Maker.

The format of the window list:

  <window ID> <desktop ID> <client machine> <window title>

The format of the desktop list:

  <desktop ID> [-*] <geometry> <viewport> <workarea> <title>
System: VDR 2.0 unter Debian Wheezy
Aktive Projekte : Radiorecorder Web GUI | DVD-Switch Plugin | targa VFD Plugin | XXV - Xtreme eXtension for VDR

tecfreak

Professional

  • "tecfreak" started this thread

Posts: 1,001

Location: Berlin

  • Send private message

3

Thursday, December 20th 2007, 11:03pm

wmctrl -d bringt bei mir

0 * DG: 5120x1024 VP: 1280,0 WA: 0,25 1280x974 N/A

obwohl ich vier Arbeitsflächen habe.
Server: XEN 3.4.1; AMD 4850e, 4G DDR2, Dual Intel PRO/1000 PT, DVBSky S952 Dual DVB-S2 + TT-C1501 DVB-C, 2x 2TB + 500GB
dom0 - lenny xenlinux 2.6.32.13; vdr-domu - ubuntu 10.04 xenlinux 2.6.34.7, yavdr-ppa

Client-1: MSI 785GM-E65, X2 215, 2GB DDR3, 64GB SSD, Zotac GT 640 LP, IR atric rev5, Ubuntu 12.04, yavdr-ppa
Client-2
: Sapphire Edge-HD, Atom D510, 2GB DDR2, 250GB, ION2 512MB, Ubuntu 12.04, yavdr-ppa

4

Friday, December 21st 2007, 8:31am

Das ist wohl vom Fenstermanager¹ abhängig, bei mir werden alle verfügbaren Arbeitsfläche angezeigt...

$ wmctrl -d
0 * DG: 1280x1024 VP: 0,0 WA: 0,0 1206x976 Arbeitsfläche 1
1 - DG: 1280x1024 VP: N/A WA: 0,0 1206x976 Arbeitsfläche 2
2 - DG: 1280x1024 VP: N/A WA: 0,0 1206x976 Arbeitsfläche 3
3 - DG: 1280x1024 VP: N/A WA: 0,0 1206x976 Arbeitsfläche 4

Nur um keine Missverständnisse aufkommen zulassen, meist Du wirklich Arbeitsflächen (Workspace²) oder redest Du vom Umschalten zwischen virtuellen Konsolen in denen mehreren XServern (Alt+F8 ...) laufen

¹)
$ metacity --version
metacity 2.20.1

²) http://www.gnome.org/learn/users-guide/l…workspaces.html

EDIT: Aufgrund deine Metrik sieht so aus als wenn du in der xorg.conf eine virtuelle Bildschirmgröße³) angeben hast, um die Arbeitsflächen in Gnome umschalten zu können sollten diese gemäß ²) angelegt werden :

Im Panel, den Arbeitsflächenumschalter hinzufügen ...

Quoted

To add workspaces to the GNOME Desktop, right-click on the Workspace Switcher applet, then choose Preferences. The Workspace Switcher Preferences dialog is displayed. Use the Number of workspaces spin box to specify the number of workspaces that you require.

³) Gemäß https://answers.launchpad.net/ubuntu/+question/6373
System: VDR 2.0 unter Debian Wheezy
Aktive Projekte : Radiorecorder Web GUI | DVD-Switch Plugin | targa VFD Plugin | XXV - Xtreme eXtension for VDR

This post has been edited 2 times, last edit by "Hulk" (Dec 21st 2007, 8:50am)


5

Friday, December 21st 2007, 9:27am

Laut google geht es auch per xautomation .> http://osrevolution.wordpress.com/2007/0…beryl-o-compiz/
System: VDR 2.0 unter Debian Wheezy
Aktive Projekte : Radiorecorder Web GUI | DVD-Switch Plugin | targa VFD Plugin | XXV - Xtreme eXtension for VDR

tecfreak

Professional

  • "tecfreak" started this thread

Posts: 1,001

Location: Berlin

  • Send private message

6

Friday, December 21st 2007, 8:36pm

DANKE! DANKE! DANKE!

Du bist mein Held!


Mit xautomation geht es jetzt. wmctrl ist wohl nicht compiz kompatibel.

Danke nochmal.

Gruß
tec
Server: XEN 3.4.1; AMD 4850e, 4G DDR2, Dual Intel PRO/1000 PT, DVBSky S952 Dual DVB-S2 + TT-C1501 DVB-C, 2x 2TB + 500GB
dom0 - lenny xenlinux 2.6.32.13; vdr-domu - ubuntu 10.04 xenlinux 2.6.34.7, yavdr-ppa

Client-1: MSI 785GM-E65, X2 215, 2GB DDR3, 64GB SSD, Zotac GT 640 LP, IR atric rev5, Ubuntu 12.04, yavdr-ppa
Client-2
: Sapphire Edge-HD, Atom D510, 2GB DDR2, 250GB, ION2 512MB, Ubuntu 12.04, yavdr-ppa

7

Saturday, January 19th 2008, 2:57pm

dumme frage: aber wie schalte ich denn jetz mit xautomation zur nächsten arbeitsfläche? ich kann da irgendwie nix sehen..

edit: sorry, jetz hab ich es auch verstanden ;)
kuifje
asus m2n-vm | Athlon 5600 | Nvidia 9300GE | TT S2-3200
yaVDR 0.4 | 1.7.21
haddock
asus p4pe | 2ghz | 3x DVB-S Budget | 2x500gb
debian lenny 2.6.29.3 | e-tobi 1.7.0 | streamdev cvs | live

<30.12.07 <igel>sid fuer den gewissen kick>
<01.04.08 <igel>ich kann eh nix ausser debian pakete installiern>
<15.12.09 igel hasst linux>
<23.02.10 <igel> easyvdr is nur easy wenn es easy is>

This post has been edited 1 times, last edit by "infinite" (Jan 20th 2008, 10:56am)