aboutsummaryrefslogtreecommitdiff
path: root/quickshell/shell.qml
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-08-06 00:29:36 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-08-06 00:29:36 +0530
commit91a5f9790cfd4a98ee940633694fb512ecf24942 (patch)
treeb20bdd22e304234b6893e20d0ca5fbfd042f2184 /quickshell/shell.qml
parentced774e19c36fb3b0b33a3846e7c9cf874b0c206 (diff)
i3 > hyprland & x11 > wayland
Diffstat (limited to 'quickshell/shell.qml')
-rw-r--r--quickshell/shell.qml253
1 files changed, 0 insertions, 253 deletions
diff --git a/quickshell/shell.qml b/quickshell/shell.qml
deleted file mode 100644
index 2396ea8..0000000
--- a/quickshell/shell.qml
+++ /dev/null
@@ -1,253 +0,0 @@
-import "./items"
-import Quickshell
-import Quickshell.Wayland
-import Quickshell.Hyprland
-import Quickshell.Io
-import QtQuick
-import QtQuick.Layouts
-
-ShellRoot {
- id: shellRoot
-
- property int redBatteryPoint: 15
- property int orangeBatteryPoint: 30
-
- property color black: "#000000"
- property color gray: "#202020"
- property color lightgray: "#404040"
- property color white: "#ffffff"
- property color green: "#28CD41"
- property color red: "#FF4040"
- property color orange: "#FFA500"
- property color purple: "#BF00FF"
- property color blue: "#00FFFF"
- property string fontFamily: "JetBrainsMono Nerd Font"
- property int fontSize: 18
-
- property bool appLauncherVisible: false
- property bool barVisible: true
- property bool calendarVisible: false
- property bool dnd: false
- property bool batteryInfo: false
- property bool blink: false
-
- GlobalShortcut {
- id: barShortcut
- name: "toggleBar"
- onPressed: {
- barVisible = !barVisible
- }
- }
- GlobalShortcut {
- id: launcherShortcut
- name: "toggleLauncher"
- onPressed: {
- appLauncherVisible = !appLauncherVisible
- }
- }
- GlobalShortcut {
- id: dndShortCut
- name: "toggleDnd"
- onPressed: {
- dnd = !dnd
- }
- }
-
- Variants {
- model: Quickshell.screens
- PanelWindow {
- id: root
- // don't render this if shell.navVisible is false
- visible: shellRoot.barVisible
-
- property int cpuUsage: 0
- property int lastCpuTotal: 0
- property int lastCpuIdle: 0
- property int memUsage: 0
- property int cpu_temperature: 6000
- property int brightness: 100
- property int temperature: 6000
- property int volume: 12
- property bool volume_muted: false
- property int battery: 12
- property bool batteryCharging: false
- property string wifiName: "Offline"
- property string bluetoothName: "Offline"
-
- Procs {}
- Process {
- id: networkManagerProc
- command: ["foot", "-e", "nmtui"]
- Component.onCompleted: running = false
- }
- Process {
- id: bluetoothManagerProc
- command: ["foot", "-e", "bluetui"]
- Component.onCompleted: running = false
- }
-
- anchors.bottom: true
- anchors.left: true
- anchors.right: true
- implicitHeight: 32
- color: shellRoot.black
-
- RowLayout {
- anchors.fill: parent
- anchors.margins: 0
- anchors.leftMargin: 10
- anchors.rightMargin: 10
-
-
- Workspace {}
- Item { Layout.fillWidth: true }
- Radio {}
- LowEnergy {}
- Electrons {}
- Waves {}
- Photons {}
- Radiation {}
- DataBus {}
- Latch {}
- Spin {}
- }
- }
- }
- Variants {
- model: Quickshell.screens
-
- PanelWindow {
- visible: shellRoot.appLauncherVisible
-
- anchors {
- top: true
- left: true
- }
-
- margins {
- top: 5
- left: Screen.width/2 - 200
- }
-
- implicitWidth: 400
- implicitHeight: 600
-
- color: "transparent"
- exclusiveZone: 0
-
- WlrLayershell.layer: WlrLayer.Overlay
- WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand
-
- Behavior on height {
- NumberAnimation { duration: 200; easing.type: Easing.OutCubic }
- }
-
- AppLauncher {
- anchors.fill: parent
- isVisible: shellRoot.appLauncherVisible
-
- onRequestClose: {
- shellRoot.appLauncherVisible = false
- }
- }
- }
- }
-
- Variants {
- model: Quickshell.screens
-
- PanelWindow {
- visible: shellRoot.batteryInfo
-
- anchors {
- bottom: true
- left: true
- }
-
- margins {
- top: 0
- left: Screen.width / 2 - 100
- }
-
- implicitWidth: 300
- implicitHeight: 120
-
- color: "transparent"
- exclusiveZone: 0
-
- WlrLayershell.layer: WlrLayer.Overlay
- WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand
-
- Behavior on height {
- NumberAnimation { duration: 200; easing.type: Easing.OutCubic }
- }
-
- BatteryInfo {
- onRequestClose: {
- shellRoot.batteryInfo = false
- }
- }
- }
- }
-
- NotificationOverlay {}
-
- Timer {
- interval: 1000 * 60 * 30
- running: true
- repeat: true
- onTriggered: {
- if (dnd) return;
- shellRoot.blink = true;
- }
- }
-
- Variants {
- model: Quickshell.screens
-
- PanelWindow {
- visible: shellRoot.blink
-
- margins {
- top: 0
- left: 0
- }
-
- implicitWidth: 800
- implicitHeight: 400
-
- color: "transparent"
- exclusiveZone: 0
-
- WlrLayershell.layer: WlrLayer.Overlay
- WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand
-
- Behavior on height {
- NumberAnimation { duration: 200; easing.type: Easing.OutCubic }
- }
-
- Rectangle {
- id: blinkRect
-
- width: 800
- height: 400
- Layout.fillWidth: true
- Layout.fillHeight: true
- color: shellRoot.black
- antialiasing: true
- radius: 10
- focus: true
- Keys.onEscapePressed: shellRoot.blink = false;
-
- Text {
- anchors.centerIn: parent
- text: "BLINK"
- font.family: shellRoot.fontFamily
- font.weight: 800
- font.pixelSize: 200
- color: shellRoot.white
- }
- }
- }
- }
-}