From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Lifehack of binding key to 'show desktop' on GuixSD Date: Tue, 2 Apr 2019 18:00:56 +0200 (CEST) Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_54869_1166863671.1554220856739" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:56598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBLqP-0003Oc-47 for help-guix@gnu.org; Tue, 02 Apr 2019 12:01:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBLqN-0004bB-Kf for help-guix@gnu.org; Tue, 02 Apr 2019 12:01:01 -0400 Received: from w1.tutanota.de ([81.3.6.162]:18766) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hBLqM-0004Yj-NR for help-guix@gnu.org; Tue, 02 Apr 2019 12:00:59 -0400 Received: from w2.tutanota.de (unknown [192.168.1.163]) by w1.tutanota.de (Postfix) with ESMTP id B6895FA01E1 for ; Tue, 2 Apr 2019 16:00:56 +0000 (UTC) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Help Guix ------=_Part_54869_1166863671.1554220856739 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello! I am using GuixSD and Xfce4 desktop environment. There is shortcut on my panel that shows desktop: http://0x0.st/zPx4.png How to bind keyboard key to minimize all windows and show desktop? By default there is such key bind: Ctrl + Alt + D=C2=A0 -- this shows deskt= op on Xfce4. But I want to use just only one button - Menu - this is extra button betwee= n Ctrl and Alt in the right side, cause I do not use it at all. I install wmctrl $ guix package -i wmctrl according to the manual https://linux.die.net/man/1/wmctrl need to use command $ wmctrl -k on To bind a key to this command I open on Xfce4: Menu -> Settings -> Keyboard= .=20 (or also you can open settings from terminal: `xfce4-settings-manager` and = choose Keyboard menu) 'Application Shortcuts' tab there and add command 'wmctrl -k on' and press = 'Menu' when it asks to press. I've got this line: http://0x0.st/zPxx.png Now it works permanently. Also I usually change keyboard layout selection button to left Menu button. There is also xdotool in guix that might be helpful for tasks like this. znavko. ------=_Part_54869_1166863671.1554220856739 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello! I am using GuixSD and Xfce4 = desktop environment.
There= is shortcut on my panel that shows desktop: http://0x0.st/zPx4.png

How to bind keyboard key to minimize all win= dows and show desktop?
By default there is such key bind: Ctrl + Alt + D  -- this s= hows desktop on Xfce4.
But= I want to use just only one button - Menu - this is extra button between C= trl and Alt in the right side, cause I do not use it at all.
I install wmctrl
$ guix package -i wmctrl

= according to the manual http= s://linux.die.net/man/1/wmctrl need to use command
$ wmctrl -k on

To bin= d a key to this command I open on Xfce4: Menu -> Settings -> Keyboard= .
(or also you can open s= ettings from terminal: `xfce4-settings-manager` and choose Keyboard menu)
'Application Shortcuts' tab= there and add command 'wmctrl -k on' and press 'Menu' when it asks = to press.

I've got this line: http://0x0.st/zPxx.png

Now it wor= ks permanently.

=
Also I usually change keyboard layo= ut selection button to left Menu button.

There is a= lso xdotool in guix that might be helpful for tasks like this.

znavko.

------=_Part_54869_1166863671.1554220856739--