forked from Shinonome/dots-hyprland
24 lines
674 B
QML
24 lines
674 B
QML
import qs.services
|
|
import qs.modules.common
|
|
import qs.modules.common.widgets
|
|
import qs.modules.common.functions
|
|
import "../"
|
|
import qs
|
|
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
import Quickshell.Hyprland
|
|
|
|
QuickToggleButton {
|
|
toggled: Network.wifiEnabled
|
|
buttonIcon: Network.materialSymbol
|
|
onClicked: Network.toggleWifi()
|
|
altAction: () => {
|
|
Quickshell.execDetached(["bash", "-c", `${Network.ethernet ? Config.options.apps.networkEthernet : Config.options.apps.network}`])
|
|
GlobalStates.sidebarRightOpen = false
|
|
}
|
|
StyledToolTip {
|
|
text: Translation.tr("%1 | Right-click to configure").arg(Network.networkName)
|
|
}
|
|
}
|