简体   繁体   中英

Only terminal window resizing in Awesome WM

I am using awesome window manager (new to it). The normal keybinding for changing size for the window in tiling mode is Super+h & Super+L but it only resizes the terminal window (I am using alacrity & it is resizing that), but if I try to resize another window instance firefox, it is not resizing that. Any solution will be appreciated在此处输入图像描述

I'd recommend https://github.com/lcpz/awesome-copycats for newcomers. Also this is a related question: What is incwfact and setwfact of awesome.client

Basically what you need is hidden in this documentation page: https://awesomewm.org/doc/api/classes/tag.html

incmwfact : Increase master width factor

And here: https://awesomewm.org/doc/api/classes/client.html

incwfact : Change window factor of a client.

Example from my config:

K.win is the Mod4 Key which is the windows key on my keyboard. I'm "expanding" the current window (client) to the location indicated by the arrow key. Actually I'd need some extra code for up/down to work correctly in all cases but I rarely have vertically stacked windows.


awful.key(
    {K.win},
    "Right",
    function()
        awful.tag.incmwfact(0.05)
    end,
),
awful.key(
    {K.win},
    "Left",
    function()
        awful.tag.incmwfact(-0.05)
    end,
),
awful.key(
    {K.win},
    "Down",
    function()
        awful.client.incwfact(-0.05)
    end,
),
awful.key(
    {K.win},
    "Up",
    function()
        awful.client.incwfact(0.05)
    end,
),

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM