forked from Shinonome/dots-hyprland
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";
|
|
}
|
|
}
|