xfce version 3 vs. 4 : missing features?
edscott wilson garcia
edscott at imp.mx
Mon Sep 29 23:13:12 CEST 2003
Forgot a step:
2.5- using the setting manager, under window-manager->keyboard-and-focus
select custom.keys instead of default.keys.
On Mon, 2003-09-29 at 15:57, edscott wilson garcia wrote:
> Most of this in the archives, here and there. This is a summary:
>
> Keyboard configuration.
>
> 1- copy $PREFIX/share/xfwm4/themes/default.keys/keythemerc to
> ~/.themes/xfwm4/custom.keys/keythemerc
> 2- edit file to your liking (see NOTE below)
> 3- install xbindkeys and xbindkeys_config (not included in xfce4.0.0)
> 4- put "xbindkeys" in your ./xfce4/xinitrc file (which has the exec bit
> set, of course) If you don't have a ./xfce4/xinitrc file, copy from the
> $PREFIX/share/etc/xfce4 directory.
> 5- run xbindkeys_config and confirm how wonderful xbindkeys can be.
>
> NOTE: For raise and lower windows with keyboard, there is a very small
> patch by Michael Smith, but which needs further testing (volunteers,
> anybody?)
>
> patch:
>
> diff -ru xfwm4-3.99.2-orig/src/client.c xfwm4-3.99.2/src/client.c
> --- xfwm4-3.99.2-orig/src/client.c 2003-07-20 12:53:26.000000000
> -0400
> +++ xfwm4-3.99.2/src/client.c 2003-08-20 12:25:48.000000000 -0400
> @@ -1319,6 +1319,8 @@
> grabKey (dpy, ¶ms.keys[KEY_SHORTCUT_8], c->window);
> grabKey (dpy, ¶ms.keys[KEY_SHORTCUT_9], c->window);
> grabKey (dpy, ¶ms.keys[KEY_SHORTCUT_10], c->window);
> + grabKey (dpy, ¶ms.keys[KEY_RAISE_WINDOW], c->window);
> + grabKey (dpy, ¶ms.keys[KEY_LOWER_WINDOW], c->window);
> }
>
> void
> diff -ru xfwm4-3.99.2-orig/src/events.c xfwm4-3.99.2/src/events.c
> --- xfwm4-3.99.2-orig/src/events.c 2003-07-15 17:31:24.000000000
> -0400
> +++ xfwm4-3.99.2/src/events.c 2003-08-20 12:27:10.000000000 -0400
> @@ -373,6 +373,12 @@
> case KEY_MOVE_WORKSPACE_9:
> workspaceSwitch (8, c);
> break;
> + case KEY_RAISE_WINDOW:
> + clientRaise (c);
> + break;
> + case KEY_LOWER_WINDOW:
> + clientLower (c);
> + break;
> default:
> break;
> }
> diff -ru xfwm4-3.99.2-orig/src/settings.c xfwm4-3.99.2/src/settings.c
> --- xfwm4-3.99.2-orig/src/settings.c 2003-06-30 18:05:33.000000000
> -0400
> +++ xfwm4-3.99.2/src/settings.c 2003-08-20 13:32:58.000000000 -0400
> @@ -861,6 +861,10 @@
> getValue ("shortcut_9_key", rc));
> parseKeyString (dpy, ¶ms.keys[KEY_SHORTCUT_10],
> getValue ("shortcut_10_key", rc));
> + parseKeyString (dpy, ¶ms.keys[KEY_RAISE_WINDOW],
> + getValue ("raise_window_key", rc));
> + parseKeyString (dpy, ¶ms.keys[KEY_LOWER_WINDOW],
> + getValue ("lower_window_key", rc));
> ungrabKeys (dpy, gnome_win);
> grabKey (dpy, ¶ms.keys[KEY_CYCLE_WINDOWS], gnome_win);
> grabKey (dpy, ¶ms.keys[KEY_NEXT_WORKSPACE], gnome_win);
> @@ -1013,6 +1017,8 @@
> {"shortcut_8_exec", NULL, FALSE},
> {"shortcut_9_exec", NULL, FALSE},
> {"shortcut_10_exec", NULL, FALSE},
> + {"raise_window_key", NULL, FALSE},
> + {"lower_window_key", NULL, FALSE},
> {NULL, NULL, FALSE}
> };
> GValue tmp_val = { 0, };
> diff -ru xfwm4-3.99.2-orig/src/settings.h xfwm4-3.99.2/src/settings.h
> --- xfwm4-3.99.2-orig/src/settings.h 2003-06-18 02:27:11.000000000
> -0400
> +++ xfwm4-3.99.2/src/settings.h 2003-08-20 12:25:05.000000000 -0400
> @@ -111,7 +111,9 @@
> #define KEY_SHORTCUT_8 47
> #define KEY_SHORTCUT_9 48
> #define KEY_SHORTCUT_10 49
> -#define KEY_COUNT 50
> +#define KEY_LOWER_WINDOW 50
> +#define KEY_RAISE_WINDOW 51
> +#define KEY_COUNT 52
> #define NB_KEY_SHORTCUTS 10
>
> #define ALIGN_LEFT 0
>
>
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://moongroup.com/mailman/listinfo/xfce
>
More information about the Xfce
mailing list