r/QuickShell • • 22d ago

Help!!! How do i make Widgets? | send widgets to the background.

Hello, there!

I'm learning quickshell and want to make a screen widgets. so i wanna know what Object should i use like a tried (PanelWindow, FloatingWindow, Window) i can't bring the widget window to background, all of them opens at foreground top of other applications.

i want to send the widget to background, what should i do?

1 Upvotes

6 comments sorted by

1

u/Rich-Investment8782 22d ago

read the documentation. PanelWindow has aboveWindows property for this.

In case of you're using wayland, you should look up to WlrLayershell instead

1

u/marouane_tea 22d ago

You could try using a PanelWindow by setting its aboveWindows property, but it's a boolean with only two options. If you're on Wayland and need more control, there is the WlrLayershell attached object, as it supports one of four options (background, bottom, top, overlay).

1

u/Dark_Chigga69 22d ago edited 22d ago

i tried bro, but it's don't work for me,

import Quickshell.Wayland
PanelWindow {
    implacitWidth : 300
    implacitHeight : 300
    anchors { top : true ; left : true ; bottom : true }
   aboveWindows : false
   WlrLayershell.Layer : background
   Text { text : "Hello World" ; color : "red" anchors.centerIn : parent }

if im not worng, i wrote exact same code but that doesn't work. i even tried changing some value/options but didnot work 😞

2

u/marouane_tea 21d ago

I think it's : WlrLayershell.layer : WlrLayer.Background

1

u/Dark_Chigga69 21d ago

im on my phone bro and didn't look at the code when i commented. ooh, i was doing this : WlrLayershell.layer : Background i will try this what you just teach me WlrLayershell.layer : WlrLayer.Background thanks 👍