From 2eb7a1b4e7da08bb071346f4c231b17ed109eb14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Sat, 6 Dec 2025 12:20:24 -0800 Subject: [PATCH 1/4] Launcher: show accels --- src/AppSystem/Launcher.vala | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/AppSystem/Launcher.vala b/src/AppSystem/Launcher.vala index bb7e0c01..b20fd30a 100644 --- a/src/AppSystem/Launcher.vala +++ b/src/AppSystem/Launcher.vala @@ -89,7 +89,8 @@ public class Dock.Launcher : BaseItem { popover_menu.set_offset (0, -1); popover_menu.set_parent (this); - tooltip_text = app.app_info.get_display_name (); + update_tooltip (); + notify["current-pos"].connect (update_tooltip); image = new Gtk.Image (); @@ -377,6 +378,19 @@ public class Dock.Launcher : BaseItem { }); } + private void update_tooltip () { + string[] accels = {}; + var index = (int) current_pos / ItemManager.get_launcher_size (); + if (index < 9) { + accels = {"%i".printf (index + 1)}; + } + + tooltip_text = Granite.markup_accel_tooltip ( + accels, + app.app_info.get_display_name () + ); + } + protected override bool drag_cancelled (Gdk.Drag drag, Gdk.DragCancelReason reason) { if (app.pinned && reason == NO_TARGET) { var popover = new PoofPopover (); From 51b4cdd6322469b91f2083297c9609b63f0952b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Fri, 23 Jan 2026 15:17:42 -0800 Subject: [PATCH 2/4] get accels from settings --- src/AppSystem/Launcher.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AppSystem/Launcher.vala b/src/AppSystem/Launcher.vala index 5397eed5..5f503aac 100644 --- a/src/AppSystem/Launcher.vala +++ b/src/AppSystem/Launcher.vala @@ -373,7 +373,8 @@ public class Dock.Launcher : BaseItem { string[] accels = {}; var index = (int) current_pos / ItemManager.get_launcher_size (); if (index < 9) { - accels = {"%i".printf (index + 1)}; + var settings = new GLib.Settings ("io.elementary.dock.keybindings"); + accels = settings.get_strv ("launch-dock-%i".printf (index + 1)); } tooltip_text = Granite.markup_accel_tooltip ( From 733cfb1294da2d1c8d3a42fa1cedc0273604051d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Fri, 23 Jan 2026 15:19:02 -0800 Subject: [PATCH 3/4] Update dock.metainfo.xml.in --- data/dock.metainfo.xml.in | 1 + 1 file changed, 1 insertion(+) diff --git a/data/dock.metainfo.xml.in b/data/dock.metainfo.xml.in index bd3235d1..385784e1 100644 --- a/data/dock.metainfo.xml.in +++ b/data/dock.metainfo.xml.in @@ -39,6 +39,7 @@ Background tasks: no menu + Add super number shortcuts to tooltips No app tooltip shows when Hide Dock is set to Never while using Wayland "Keep in Dock" Not Working For Most Applications Drag and drop an app window into the workspace switcher From bf6d160905aa1d308197ac8ef22d804aee1c61c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Fri, 23 Jan 2026 15:21:14 -0800 Subject: [PATCH 4/4] Static construct settings --- src/AppSystem/Launcher.vala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/AppSystem/Launcher.vala b/src/AppSystem/Launcher.vala index 5f503aac..4ecef3b7 100644 --- a/src/AppSystem/Launcher.vala +++ b/src/AppSystem/Launcher.vala @@ -10,12 +10,15 @@ public class Dock.Launcher : BaseItem { private const int DND_TIMEOUT = 1000; + private static Settings keybinding_settings; private static Settings? notify_settings; static construct { if (SettingsSchemaSource.get_default ().lookup ("io.elementary.notifications", true) != null) { notify_settings = new Settings ("io.elementary.notifications"); } + + keybinding_settings = new GLib.Settings ("io.elementary.dock.keybindings"); } // Matches icon size and padding in Launcher.css @@ -91,6 +94,7 @@ public class Dock.Launcher : BaseItem { update_tooltip (); notify["current-pos"].connect (update_tooltip); + keybinding_settings.changed.connect (update_tooltip); image = new Gtk.Image (); @@ -373,8 +377,7 @@ public class Dock.Launcher : BaseItem { string[] accels = {}; var index = (int) current_pos / ItemManager.get_launcher_size (); if (index < 9) { - var settings = new GLib.Settings ("io.elementary.dock.keybindings"); - accels = settings.get_strv ("launch-dock-%i".printf (index + 1)); + accels = keybinding_settings.get_strv ("launch-dock-%i".printf (index + 1)); } tooltip_text = Granite.markup_accel_tooltip (