help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: minimize-frame ?


From: Emanuel Berg
Subject: Re: minimize-frame ?
Date: Thu, 22 Jul 2021 01:48:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

David Masterson wrote:

> Is it possible to have Emacs control the window manager?

You mean, not using shell tools? If shell tools are OK then
you can feed it to this for example and hold your thumbs -

#! /bin/zsh

hide-win () {
    local win=$1
    wmctrl -r $win -b toggle,hidden
} # [1]

- but ...

> For instance, if I didn't want to use the mouse, could
> I setup a key to minimize Emacs?

... you can, but isn't it better to do this on the window
manager level?

What WM do you use?

For example, I use openbsd-cwm so I would do

bind-key   M-h   window-hide

in the config file [2], then do C-r which is

bind-key   C-r   restart

and try it :)

[1] https://dataswamp.org/~incal/conf/.zsh/wm
[2] https://dataswamp.org/~incal/conf/.cwmrc

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]