Jas-SinghFSU / HyprPanel

A Bar/Panel for Hyprland with extensive customizability.
MIT License
778 stars 55 forks source link

Help adding updates and brightness modules, as well as a border around modules #16

Closed zstg closed 1 month ago

zstg commented 3 months ago

Is your feature request related to a problem? Please describe. I'm not quite sure how to add additional modules to this bar. I'd like a module (quite similar to the volume module) that displays brightness. And I'd like to know how to create a new module (perhaps by duplicating and modifying existing code for 1 module?) for showing the number of updates (on hover, it shows what updates are available - via yay -Qu on Arch, and if i click it it opens a terminal window prompting me to update). I have achieved this on Waybar, but I have no idea how to get this working on AGS.

Describe the solution you'd like

Describe the steps you've taken This is how it looks in my fork. I'd modified the border of the individual menus, but I'm not able to set this blue border around image

Additional context Forgive me if this isn't the right place to ask for help (I guess it isn't).

zstg commented 3 months ago

image Here's a pic of Waybar's CPU usage, brightness and updates modules - along with that blue border.

Jas-SinghFSU commented 3 months ago

I'd modified the border of the individual menus, but I'm not able to set this blue border around

Could you clarify this please? I'm not sure I understand.

In terms of creating custom modules, you can follow the documentation over at https://aylur.github.io/ags-docs/ to know how to develop in AGS. For reference, you can look at https://github.com/Jas-SinghFSU/HyprPanel/blob/master/modules/bar/window_title/index.ts as that is a rather simple bar module.

I'll tag this as a feature request for now.

Edit: Nevermind about the question. I understand now that you want a border around the buttons.

zstg commented 3 months ago

I tried copying the window_title files, but I do not understand how to use it, rename it to create a custom module. I reckon if I'm able to "duplicate" one of the modules (say the window title module) I'll be able to replace the content there with the content that I'd want (namely updates)