quickshell and hyprland additions

This commit is contained in:
2026-03-15 13:56:00 +02:00
parent c9c27d1554
commit 1ad06b82a6
509 changed files with 68371 additions and 19 deletions

View File

@@ -0,0 +1,24 @@
pragma Singleton
import QtQuick
import Quickshell
import Quickshell.Bluetooth
Singleton {
id: root
readonly property BluetoothAdapter defaultAdapter: Bluetooth.defaultAdapter
readonly property list<BluetoothDevice> devices: defaultAdapter?.devices?.values ?? []
readonly property BluetoothDevice activeDevice: devices.find(d => d.connected) ?? null
readonly property string icon: {
if (!defaultAdapter?.enabled)
return "bluetooth_disabled"
if (activeDevice)
return "bluetooth_connected"
return defaultAdapter.discovering
? "bluetooth_searching"
: "bluetooth"
}
}