Skip to content

Styling and Customization

Blackeye edited this page Jul 27, 2024 · 2 revisions

Customizable Icons

There are 4 entries in the gsettings-schema:

  • headphone-icon: colorful icon for headphone
  • headphone-icon-symbolic : symbolic / monochrome icon for headphone
  • speaker-icon: colorful icon for speaker
  • speaker-icon-symbolic: symbolic / monochrome icon for speaker

you can change the icon using gsetting-cli these entries.

example

change headphone-icon to audio-volume-high:

gsettings --schemadir $HOME/.local/share/gnome-shell/extensions/toggleAudio@blackeyeprojects.de/schemas set org.gnome.shell.extensions.toggle-audio headphone-icon "audio-volume-high"

Where can I get those possible icon-names ?

All possible os-icons are possible.

To see which icon-names are possible, you can use Icon Browser or the flatpak Icon Library

Icon Browser (left) Icon Library (right)

Icon Browser (left), Icon Library (right)

Ps: You can add icons using icon packages like this one: https://www.gnome-look.org/p/1256209

Further Information and useful links

Gsetting-Entries can be found here:

https://github.com/Blackstareye/toggleAudio-blackeyeprojects.de/blob/1e82ae25f24a178a8edc7580637a600389a30786/schemas/org.gnome.shell.extensions.toggle-audio.gschema.xml#L72-L93

    <!-- Icons -->
    <key name="speaker-icon-symbolic" type="s">
      <default>'audio-card-symbolic'</default>
      <summary>''</summary>
      <description>''</description>
    </key>
    <key name="speaker-icon" type="s">
      <!-- There is no colorful audio card -->
      <default>'audio-card-symbolic'</default>
      <summary>''</summary>
      <description>''</description>
    </key>
    <key name="headphone-icon-symbolic" type="s">
      <default>'audio-headphones-symbolic'</default>
      <summary>''</summary>
      <description>''</description>
    </key>
    <key name="headphone-icon" type="s">
      <default>'audio-headphones'</default>
      <summary>''</summary>
      <description>''</description>
    </key>