Skip to content

feat(custom_module): tooltips - #914

Open
LukeCarrier wants to merge 1 commit into
MalpenZibo:mainfrom
LukeCarrier:custom-module-tooltips
Open

feat(custom_module): tooltips#914
LukeCarrier wants to merge 1 commit into
MalpenZibo:mainfrom
LukeCarrier:custom-module-tooltips

Conversation

@LukeCarrier

Copy link
Copy Markdown

Renders Waybar-style tooltip fields in custom module events, with the caveat that tooltip-format is ignored:

image
Complete configuration
[[CustomModule]]
command = "/nix/store/mgzqjp2k7wfrhf1ygsq4skz8cvz5lay7-tardy-0.1.0/bin/tardy open"
listen_cmd = "/nix/store/mgzqjp2k7wfrhf1ygsq4skz8cvz5lay7-tardy-0.1.0/bin/tardy daemon --format=ashell"
name = "Tardy"
type = "Button"

[appearance]
font_name = "Inter"
opacity = 0.8
primary_color = "#7aa2f7"
success_color = "#9ece6a"
text_color = "#a9b1d6"

[appearance.background_color]
base = "#1a1b26"
strong = "#414868"
weak = "#24273a"

[appearance.danger_color]
base = "#f7768e"
weak = "#e0af68"

[appearance.menu]
opacity = 0.8

[appearance.secondary_color]
base = "#0c0d14"

[[appearance.workspace_colors]]
base = "#ffffff"
strong = "#ffffff"
text = "#24273a"
weak = "#24273a"

[modules]
center = ["Privacy", "SystemInfo", "MediaPlayer"]
left = ["Workspaces"]
right = ["Tempo", "Tardy", ["Settings", "Tray"]]

[system_info]
indicators = ["Cpu", "Memory", "Temperature", "DownloadSpeed", "UploadSpeed"]

[workspaces]
visibility_mode = "MonitorSpecific"
Sample custom module output
tardy daemon --format ashell
{"text":"11:00 · eMed X AWS | DevOps Agent Demo","alt":"scheduled","class":"scheduled","tooltip":"11:00–12:00 · eMed X AWS | DevOps Agent Demo\n13:00–14:30 · Company & Strategy Update: Building What’s Next\n15:30–16:00 · eMed Engineering and Data + AI 🦾\n15:30–16:00 · eMed Engineering and Data + AI 🦾\n16:00–17:00 · [HOLD] AWS DevOps AI Agent Demo\n17:00–19:00 · Engineering Social\n09:30–10:00 · Crumpet 2nd vaccination\n15:30–16:30 · Engineering Friday Demos\n15:30–16:30 · Engineering Demos"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant