[Top][All Lists]

[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 02:09:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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:

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

reply via email to

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