Skip to content

[Feature Request] support for relative paths #3715

Open
@Heus-Sueh

Description

@Heus-Sueh

The need to put the absolute path becomes unbearable when you include several modules:

  "include": [
    "~/.config/waybar/modules/hyprland.jsonc",
    "~/.config/waybar/modules/battery.jsonc",
    "~/.config/waybar/modules/backlight.jsonc",
    "~/.config/waybar/modules/custom-music.jsonc",
    "~/.config/waybar/modules/custom-colorpicker.jsonc",
	...
  ],

I believe that the waybar could easily assume the path based on where the config.jsonc is being loaded and thus making it easier.

  "include": [
	# the waybar would be assuming that the user is referencing the modules folder which is located in the same place as config.json
    "modules/hyprland.jsonc", # absolute path (~/.config/waybar/modules/hyprland.jsonc) 
    "modules/battery.jsonc",
    "modules/backlight.jsonc",
    "modules/custom-music.jsonc",
    "custom-colorpicker.jsonc",
	...
  ],

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions