User Tools

Site Tools


wm:awesome

Awesome Window Manager

Change Workspace on Both Screens

When using dual screen setup the default for Awesome WM is to change workspace for only the active screen. This behaviour can be changed by using the following. (comment out the original controls if necessary)

awful.key({ modkey, }, "Left", 
  function()
    for i = 1, screen.count() do
      awful.tag.viewprev(screen[i])
    end
  end ),
 
awful.key({ modkey,  }, "Right", 
  function()
    for i = 1, screen.count() do
      awful.tag.viewnext(screen[i])
    end
  end ),
 

Run browser and dmenu

Running browser or dmenu with keyboard shortcut: (from arcolinux setup, can be customized to run other commands)

-- browser
awful.key({ modkey }, "w", function () awful.util.spawn( browser1 ) end,
    {description = browser1, group = "function keys"}),
 
-- dmenu
awful.key({ modkey, "Shift"   }, "d",
function ()
    awful.spawn(string.format("dmenu_run -i -nb '#191919' -nf '#fea63c' -sb '#fea63c' -sf '#191919' -fn NotoMonoRegular:bold:pixelsize=14",
    beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus))
    end,
    {description = "show dmenu", group = "hotkeys"}),
wm/awesome.txt ยท Last modified: 2022/06/10 19:19 by 127.0.0.1