From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: minimize-frame ?
Date: Thu, 22 Jul 2021 02:09:46 +0200 [thread overview]
Message-ID: <87k0ljtdit.fsf@zoho.eu> (raw)
In-Reply-To: AM9PR09MB4977610BC57E4BF5B319004496E39@AM9PR09MB4977.eurprd09.prod.outlook.com
Arthur Miller wrote:
>> Is it possible to have Emacs control the window manager?
>> For instance, if I didn't want to use the mouse, could
>> I setup a key to minimize Emacs?
>
> Don't almost any window manager has some way of doing this
> via a shortcut
Maybe not, if you (the OP) are on a Debian system or fork,
$ sudo apt-get --install-suggests install cwm picom
then in ~/.xinitrc, last
picom &
openbsd-cwm &
xterm # or your prefered X terminal emulator
# or whatever software you want to start
(picom makes it faster to iterate windows, it is really
noticeable so take that extra step to level up even further)
An example cwm configuration file:
# this file:
# http://user.it.uu.se/~embe8573/conf/.cwmrc
# https://dataswamp.org/~incal/conf/.cwmrc
color activeborder black
unbind-key all
bind-key M-p window-rcycle
bind-key M-n window-cycle
bind-key C-r restart
bind-key M-j "chvt 5"
bind-key M-l "chvt 1"
bind-key M-e "chvt 1"
(You need to do 'chmod +s /bin/chvt' for the last three lines
to work, I think. Unrelated comment added for completeness!
But note the "shell command syntax" and the
window-manager-made-up-command syntax - see man pages
openbsd-cwm(1) and cwmrc(5))
--
underground experts united
https://dataswamp.org/~incal
next prev parent reply other threads:[~2021-07-22 0:09 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-21 23:17 minimize-frame ? David Masterson
2021-07-21 23:35 ` Arthur Miller
2021-07-22 0:09 ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]
2021-07-21 23:48 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-22 0:16 ` Michael Heerdegen
2021-07-22 0:35 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-22 1:00 ` Michael Heerdegen
2021-07-22 1:07 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-22 1:07 ` Arthur Miller
2021-07-22 1:20 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-22 1:27 ` Arthur Miller
2021-07-22 1:40 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-22 1:56 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-22 12:14 ` Arthur Miller
2021-07-22 2:09 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-22 12:09 ` Arthur Miller
2021-07-22 0:55 ` Arthur Miller
2021-07-22 1:02 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-22 1:15 ` Arthur Miller
2021-07-22 3:05 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-22 12:26 ` Arthur Miller
2021-07-22 0:18 ` Óscar Fuentes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k0ljtdit.fsf@zoho.eu \
--to=help-gnu-emacs@gnu.org \
--cc=moasenwood@zoho.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).