You are not logged in.

#1 2023-02-08 20:27:32

robinm
Member
Registered: 2023-01-14
Posts: 9

[solved] AwesomeWM - Notifications theme not applied

Hello folks!

My awesomewm theme is applied and I am very happy with it but for the life of me I cannot seem to be able to theme the notifications.

I am running

awesome 4.3-1588-gb54e50ad6

(git) and

lua 5.4.4

Relevant part of the theme:

local theme_assets = require("beautiful.theme_assets")
local xresources = require("beautiful.xresources")
local rnotification = require("ruled.notification")
local dpi = xresources.apply_dpi
local naughty = require("naughty")

local gfs = require("gears.filesystem")
local themes_path = gfs.get_themes_dir()

local theme = {}

-- Other stuff ...

theme.notification_bg = "#FF0000"

Obviously I am not a psychopath who wants red notifications at all times, I am just trying it out and I want it to be obvious. I have tried pretty much all the other variables and nothing ever happens. All other aspects of the theme work as expected. I've also started awesome with the parameters that give me a log but no error shows up.

Thank you for your time.

Last edited by robinm (2023-02-12 14:21:45)

Offline

#2 2023-02-09 15:03:46

lmn
Member
Registered: 2021-05-09
Posts: 88
Website

Re: [solved] AwesomeWM - Notifications theme not applied

Relevant part of the theme:

Can you please post the full config as there is no indication on how the theme dictionary is used. Maybe it is overwritten somewhere else?

Have you looked at https://awesomewm.org/doc/api/libraries … ication_bg for more information?

All other aspects of the theme work as expected.

Pertaining to which elements? Other theming like the notification font or the theme in general (window decoration color, border width)?
Also which theme?

Last edited by lmn (2023-02-09 15:06:30)

Offline

#3 2023-02-09 21:24:52

robinm
Member
Registered: 2023-01-14
Posts: 9

Re: [solved] AwesomeWM - Notifications theme not applied

lmn wrote:

Can you please post the full config as there is no indication on how the theme dictionary is used. Maybe it is overwritten somewhere else?

Here you go smile Just uploaded it on github: https://github.com/robinmayol/config-awesome

I have run grep for "notification_bg" on the whole .config/awesome/ directory and my theme.lua is the only match.

Have you looked at https://awesomewm.org/doc/api/libraries … ication_bg for more information?

I did indeed, well the git version of the docs because that's the one I use, checked the colour format and tried other theme.notification_ variables as well. No cigar.

Pertaining to which elements? Other theming like the notification font or the theme in general (window decoration color, border width)?
Also which theme?

Sorry yeah, that was unclear. I meant other types of elements are fine. It's only the notifications that don't react. I have modified the default theme from https://github.com/lkschu/awesomewm-config-modular

Offline

#4 2023-02-12 14:19:51

robinm
Member
Registered: 2023-01-14
Posts: 9

Re: [solved] AwesomeWM - Notifications theme not applied

OK So I ended up checking the colour value for the notification using xcolor then I looked for it with grep in my ~/.config folder as well as /usr/ and /etc/ and I found a dunst config file specifying a background of that very value. I removed dunst (which I am not sure why I installed it in the first place) and the theme works now.

Sorry for wasting everybody's time!

Last edited by robinm (2023-02-12 14:21:28)

Offline

Board footer

Powered by FluxBB