cosmic-settings icon indicating copy to clipboard operation
cosmic-settings copied to clipboard

Go-to specific window by dock index

Open junlarsen opened this issue 11 months ago • 0 comments

Hi :) Thanks for the work on Cosmic!

I'm looking for the ability to select a window by its index on the dock. I'm specifically looking for an alternative to the org.gnome.shell.keybindings switch-to-application-X settings. Below is a configuration what my Gnome setup used to have to achieve this. (fwiw, I believe this is also default Windows behavior).

gsettings set org.gnome.shell.keybindings switch-to-application-1 "['<Super>1']"
gsettings set org.gnome.shell.keybindings switch-to-application-2 "['<Super>2']"
gsettings set org.gnome.shell.keybindings switch-to-application-3 "['<Super>3']"
gsettings set org.gnome.shell.keybindings switch-to-application-4 "['<Super>4']"
gsettings set org.gnome.shell.keybindings switch-to-application-5 "['<Super>5']"
gsettings set org.gnome.shell.keybindings switch-to-application-6 "['<Super>6']"
gsettings set org.gnome.shell.keybindings switch-to-application-7 "['<Super>7']"
gsettings set org.gnome.shell.keybindings switch-to-application-8 "['<Super>8']"
gsettings set org.gnome.shell.keybindings switch-to-application-9 "['<Super>9']"

From a quick glance at the available settings, it seems this isn't possible yet? https://github.com/pop-os/cosmic-settings/blob/master/cosmic-settings/src/pages/input/keyboard/shortcuts/mod.rs#L467

I would look for the Dock source, but I'm not sure which repository it's in? cosmic-dock is the old Gnome fork of dash-to-dock

I wouldn't mind helping/contributing code, I would just have to learn where to look :)

junlarsen avatar Jan 27 '25 12:01 junlarsen