forked from Shinonome/alt-illogical-impulse
ac6d3adeb9
BREAKING CHANGE: Remove external dots-hyprland dependency - Imported all essential configs from dots-hyprland/installer-replication - Added complete configs/ directory with: - hypr/ - Hyprland configuration - quickshell/ - Quickshell widgets and config - applications/ - Application configurations - scripts/ - Utility scripts - matugen/ - Material You theming - Updated flake.nix to use local ./configs instead of external repo - Simplified update-flake script (removed external repo management) - Updated README to reflect self-contained architecture - All builds pass with local configurations Benefits: - No external repository dependencies - Faster builds (no network dependencies) - Version controlled configs in single repo - Easier maintenance and development - Complete installer replication in one place
35 lines
1018 B
QML
35 lines
1018 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.networkName.length > 0 && Network.networkName != "lo"
|
|
buttonIcon: Network.materialSymbol
|
|
onClicked: {
|
|
toggleNetwork.running = true
|
|
}
|
|
altAction: () => {
|
|
Quickshell.execDetached(["bash", "-c", `${Network.ethernet ? Config.options.apps.networkEthernet : Config.options.apps.network}`])
|
|
GlobalStates.sidebarRightOpen = false
|
|
}
|
|
Process {
|
|
id: toggleNetwork
|
|
command: ["bash", "-c", "nmcli radio wifi | grep -q enabled && nmcli radio wifi off || nmcli radio wifi on"]
|
|
onRunningChanged: {
|
|
if(!running) {
|
|
Network.update()
|
|
}
|
|
}
|
|
}
|
|
StyledToolTip {
|
|
content: Translation.tr("%1 | Right-click to configure").arg(Network.networkName)
|
|
}
|
|
}
|