mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-07 07:49:28 -05:00
24 lines
667 B
QML
24 lines
667 B
QML
pragma Singleton
|
|
|
|
// From https://github.com/caelestia-dots/shell (GPLv3)
|
|
|
|
import Quickshell
|
|
|
|
Singleton {
|
|
id: root
|
|
|
|
function getBluetoothDeviceMaterialSymbol(systemIconName: string): string {
|
|
if (systemIconName.includes("headset") || systemIconName.includes("headphones"))
|
|
return "headphones";
|
|
if (systemIconName.includes("audio"))
|
|
return "speaker";
|
|
if (systemIconName.includes("phone"))
|
|
return "smartphone";
|
|
if (systemIconName.includes("mouse"))
|
|
return "mouse";
|
|
if (systemIconName.includes("keyboard"))
|
|
return "keyboard";
|
|
return "bluetooth";
|
|
}
|
|
}
|