Skip to main content

Get the Reddit app

Scan this QR code to download the app now
Or check it out in the app stores
r/awesomewm icon
r/awesomewm icon

r/awesomewm

members
online


New post flairs and community rules


Help with Using PWA from Brave Browser and Spawning Them from Awesome WM Config Help with Using PWA from Brave Browser and Spawning Them from Awesome WM Config
Awesome Git

I'm looking for some help with integrating PWAs (Progressive Web Apps) from the Brave Browser into my Awesome WM setup. Specifically, I'd like to be able to spawn these PWAs directly from my Awesome WM config.

Has anyone managed to do this? If so, could you please share your setup or guide me through the process?

Any help or pointers would be greatly appreciated!

Thanks in advance!


Make transparent overlay Make transparent overlay
Awesome v4.3

I want to make a transparent overlay that covers the entire screen. The overlay should be transparent.

For this I am using the pure Lua-awesomewm API.

My code so far is this:

local overlay = wibox {
    ontop = true,
    visible = false,
    bg = "#00000000", -- Transparent background
    type = "desktop",
    screen = awful.screen.focused(),
    x = 0,
    y = 0,
    width = awful.screen.focused().geometry.width,
    height = awful.screen.focused().geometry.height
}

The problem is that instead of showing the apps underneath, it is showing the wallpaper. I have been looking at the docs and I can't find the solution to this.

Any ideas guys?


No default file explorer for Signal and Brave anymore No default file explorer for Signal and Brave anymore
Awesome v4.3

EDIT: issuing

 dbus-update-activation-environment --all

in a shell fixed the problem!

------- Original Message -----

I log into Awesome using SDDM. Something was updated with, I guess, KDE a few weeks ago and since then any action which would pop up a file explorer (dolphin in my case) in either brave or signal-desktop doesn't work anymore. ("save Image" in signal for example).

When started from a console neither application throws any error.

This used to work reliably at least until the end of May, and I didn't change any settings. It works if I log into KDE/Plasma.

Anybody got an idea how to fix that, or at least what could be the cause?



Hide Splash Screen Hide Splash Screen
Awesome v4.3

Is there a way to set a rule to hide splash screens? I tried the following but it doesn't work. I also tried targetting the rule to specify the window name also but it doesn't work.

-- Rules applied to new clients via manage signal. 
	awful.rules.rules = { 

  -- All clients.
    { rule = { }, 
    except_any = { type = { "splash" } },
    properties = { 
      border_width = 6,
      border_color = beautiful.border_normal,
      focus = awful.client.focus.filter,
      raise = true,
      keys = clientkeys,
      buttons = clientbuttons,
      screen = awful.screen.preferred,
      placement = awful.placement.no_overlap + awful.placement.no_offscreen }
    },

    -- Rule to hide all splash screens
    {
        rule_any = {
            type = { "splash" }
        },
        properties = { hidden = true },
    },

Customizing Layouts? Customizing Layouts?
Awesome v4.3

I'm looking to set up some specific layouts and thought awesome is where this could maybe be done.

Two things i'm trying to do:

For a Vertical Monitor i need the "tile.top" layout, but with two masters stacked vertically. So, the layout splits the screen in three thirds, two masters and one stack. Ideally this would be the setup when switching to that layout.

The second layout i'm looking for is a "center Master" with two stacks, one left and one right.

Are custom layouts a thing that's possible to do? Could i customize existing ones to do what i want?




Need some help to make notifications for mpd Need some help to make notifications for mpd
Awesome Git

[SOLVED]

I'm trying to make a notification for mpd like this but it's not working. I'm using this repo as my configuration base. I'm pretty lost right now so I don't really know what information I should provide to you guys to make it easier to help, but you can ask for it and I'll edit my post and ping you to check the changes. Help would be appreciated.

[EDIT] Okay, so it's working just fine for Spotify when I set app_name="Spotify". So most probably there is no app_name for mpd. I read the docs and found out that notify-send doesn't really have a app_name. And since I'm using a script in my ncmpccp to send a notification of song change using notify-send it's probably not picking that up. Now we just need to figure out how to hack around this.




Correct way of making a popup Correct way of making a popup
Awesome v4.3

I am an awesome noob. Making a theme for Awesome.

After a few tries I managed to make a simple popup. It feels a little hacky though. The docs didn't worked for me. So, I was left wondering:

Are the docs outdated?

Did I do something wrong?

This is the way I got it working:


local wifi_widget = wibox.widget { ... }

local wifi_popup = awful.popup {
    widget = {
        {
            {
                id = "text_role",
                text = "WiFi status",
                widget = wibox.widget.textbox,
            },
            margins = 8,
            widget = wibox.container.margin,
        },
        bg = beautiful.bg_normal,
        widget = wibox.container.background,
    },
    border_color = beautiful.border_color,
    border_width = 2,
    ontop = true,
    visible = false,
}

wifi_popup.parent = wifi_widget

wifi_widget:buttons(
    gears.table.join(
        awful.button({}, 1, function()
            awful.placement.next_to(wifi_popup, {
                preferred_positions = { "bottom" }
            })
            wifi_popup.visible = not wifi_popup.visible

            --
        end)
    )
)

Is this how it should be done?



Stretch resolution of game window without changing screen resolution Stretch resolution of game window without changing screen resolution

I would like to know if it is possible to implement something similar to what games like Rainbow Six Seige allows you to do: play the game at a native resolution while simulating a stretched aspect ratio.

Can this maybe be possible by running the game itself at a 4:3 aspect ratio while awesomewm stretches the window out to the entire screen?



What am I doing wrong? What am I doing wrong?
Awesome v4.3

I have troubles with mouse resize of a terminal window.

When I have two windows tiled in a column (usually they are second and third ones with first as master to the left), if the terminal is under another GUI window, resizing the terminal itself collapses it to minimal size or just breaking it out of the layout at all. If I resize the GUI window ontop instead, everything works smoothly, and terminal tiles nicely. Although it has it's weird gaps on gapless setup. The only way to force the terminal to behave in this context is to make the font size around single pixel.

I found about size_hints_honor = false, but seems like it doesn't do anything at all. I love all the other benefits of autotiling, but using a mouse to resize is a strong habit and I just like the feel of resizing 3 windows by two axis with a single gesture. I could just resize top window instead, but it is contrintuitive enough to be annoying.

I tried gnome-terminal, xterm and lxterminal, but they all share this problem. I haven't installed any fancy compositors yet. Just pure awesome package on top of Mint 21.3 Cinnamon, if this is somehow related.

Could it be a compositor issue? Should I switch to a different terminal? Is this just mouse-related and noone cared enough to report?

UPD, I can tolerate a solution, when the terminal window isn't resized by itself until the drag is over. I haven't got deep enough to understand if this is possible on awesome, but maybe.

UPD2: I found a typo in size_hints_honor. I used singular hint :facepalm:. It improved the situation. No gaps now. Single axis move also works fine. But if I move the mouse, layout keeps nice only until I move straight along the window borders. Too much side move and the terminal snaps outside the layout like it's floating, the window above it maximises to the bottom. Fast right click on terminal's header snaps it back to the tiling, but it still feels buggy. Fun notice: after side movement drag behaviour switches to the border between inactive windows, while active floats above them.


need help with pywal theming need help with pywal theming
Awesome Git

Hello, I'm quite new to awesome, and I wanted to try theming it with pywal. In my rc.lua I have an autostart file, which runs my wallpaper setting script. Now the problem is that, I'm running the autostart at the end of the rc.lua file, and every time it runs, the wallpaper and pywal colors are set, but the bar colors aren't changing until I reload awesome again(but then the scripts sets a different wallpaper and colors).


Firefox and Obsidian not tiling Firefox and Obsidian not tiling

I recently had an issue with Firefox suddenly not tiling despite only having the awfule.layout.suit.tile layout active.

After screwing around for quite a while I realized the issue was associated with Firefox and Obsidian and not Awesomewm directly.

To solve this issue, you simply need to delete the config files for the applications and let the application generate a new config file.

Obsidian's can be cound in ~/.config/obsidian

Firefox's can be found in ~/.mozilla/firefox

You're welcome to try and find the exact config variable that causes this but comparing the newly generated config with the old config produced too much information for me to want to comb through for Obsidian and Firefox seems to store these variables with some sort of hashed values.

EDIT: After experiencing this issue again, u/raven2cz is absolutely right. The issue is with the windows floating but locked in position. It's not obvious that the flags mentioned below are active but, like raven said, modkey "f" and "m" will fix the issue.

I realized I should edit this to avoid confusing anyone running into the same problem




Volume Keybind Help Volume Keybind Help

Hello awesome people,

I have a new keyboard. It's a 78 key mech. So it's missing the typical volume up and down buttons. So I want to bind it to some keys. This is what I'm working with:

awful.key({modkey}, "Up", function ()

awful.util.spawn("amixer set Master 9%+" end),)

awful.key({modkey}, "Down", function ()

awful.util.spawn("amixer set Master 9%-" end),)

I thought it would be simple emough, but it''s not working. I've tried the Control key and Alt key, but I just cannot get the volume to go up or down in awesome. Does anyone see what it wrong?

Thank you for any and all help


Mousewheel over tray area Mousewheel over tray area
Awesome Git

I dedicate a large part of my panel above to switch tags through the mousewheel when hovering it. However the tray area doesn't use this mousewheel event, leaving dead spots on the panel that I can't use for tag switching. Is there a way to make the tray area respond to mousewheel events?

local systray = wibox.widget.systray()
systray:set_screen(screen[Globals.primary_screen])
local systray_container = wibox.layout.margin(systray, 0, 0, 3, 3)