config examples for popup layout widgets #365
-
HI , i was trying to decorate and customize the popup layout it some widgets such pulse volume extra but i am not sure how to do that , i think an example config file gonna help . |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
Can I check what you're asking here: Do you want to know how to put widgets in a popup layout, or do you want to customise the layout used by some widgets (e.g. pulse volume extra has a popup that can be used to display the volume level)? |
Beta Was this translation helpful? Give feedback.
-
The By default, this is set to: PopupRelativeLayout(
width=200,
height=50,
controls=[
PopupText(
text="Volume:",
name="text",
pos_x=0.1,
pos_y=0.1,
height=0.2,
width=0.8,
v_align="middle",
h_align="center",
),
PopupSlider(
name="volume",
pos_x=0.1,
pos_y=0.3,
width=0.8,
height=0.8,
colour_below="00ffff",
bar_border_size=2,
bar_border_margin=1,
bar_size=6,
marker_size=0,
end_margin=0,
),
],
) It's defined here: https://github.com/elParaguayo/qtile-extras/blob/main/qtile_extras/popup/templates/volume.py#L22 To customise the popup, you need to define a new layout. The layout should have at least one of the following controls: a |
Beta Was this translation helpful? Give feedback.
-
I've pushed two updates:
|
Beta Was this translation helpful? Give feedback.
The
PulseVolumeExtra
widget has a parameter calledpopup_layout
.By default, this is set to: