Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-01-25 08:43:31

D.dave
Member
Registered: 2019-12-06
Posts: 83
LinuxFirefox 134.0

Fine set the position of notifications and add a border

Hi, in the notifications preflet, I've set notifications to appear in bottom right position.
I'd like to have them a little bit more upper, eg of 100 pixel above the panel; what I have to change in the notification's gtk.css file?
At the moment I have personal notifications style, set in the file ~/.themes/MyNotifications/xfce-notify-4.0/gtk.css:

#XfceNotifyWindow {
    background-color: transparent;
    border-color: #ffffff;
    box-shadow: none;
    border-style: solid;
}

Works as expected, but furthermore, no border is draw.

EDIT: also border-width: 5px; does nothing.
EDIT 2: also if i stop picom, the border is not present.
EDIT 3: I also tried to set border: 5px solid #FFFFFF, but no dice.

Last edited by D.dave (2025-01-25 09:50:09)


OS: Manjaro x86_64
DE: Xfce 4.20

Offline

#2 2025-01-25 12:01:27

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,717
LinuxFirefox 134.0

Re: Fine set the position of notifications and add a border

Your tweaks work, but you need to restart the xfce4-notifyd process to re-read the contents of the gtk.css file and process it.

I'd like to have them a little bit more upper, eg of 100 pixel above the panel; what I have to change in the notification's gtk.css file?

I don't think this is currently possible.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2025-01-25 12:05:49

D.dave
Member
Registered: 2019-12-06
Posts: 83
LinuxFirefox 134.0

Re: Fine set the position of notifications and add a border

ToZ wrote:

you need to restart the xfce4-notifyd process

I did it: systemctl --user restart xfce4-notifyd.service but still no bordesr; I also manually killed the process and restart it: still no borders.

Added later 19 min 55 s:

ToZ wrote:

the gtk.css file

I made a workaround: in Gimp I create an png image with the same size of the notifications, and I added it to gtk.css:

background-image: url("file:/home/dave/Pictures/notifications-background.png");

And now there is the border of the image:
notifications.png


EDIT: nothing to do: are messed and broken:

notifications2.png


Ok, I solved by adding:


 background-repeat: round;

notifications.png

Last edited by D.dave (2025-01-25 15:26:55)


OS: Manjaro x86_64
DE: Xfce 4.20

Offline

Registered users online in this topic: 0, guests: 1
[Bot] CCBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 529.37 KiB (Peak: 530.73 KiB) ]