mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-07 05:55:37 -05:00
Remove unused files and code
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
pragma Singleton
|
||||
pragma ComponentBehavior: Bound
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
// Color Picker Process
|
||||
Process {
|
||||
id: colorPickerProcess
|
||||
command: ["hyprpicker", "-a"]
|
||||
running: false
|
||||
|
||||
onExited: (exitCode) => {
|
||||
if (exitCode !== 0) {
|
||||
console.warn("Color picker failed. Make sure hyprpicker is installed: yay -S hyprpicker")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function pickColor() {
|
||||
colorPickerProcess.running = true
|
||||
}
|
||||
}
|
||||
@@ -149,15 +149,12 @@ Singleton {
|
||||
}
|
||||
|
||||
function handleWorkspaceActivated(data) {
|
||||
console.log("DEBUG: WorkspaceActivated event - ID:", data.id, "focused:", data.focused)
|
||||
|
||||
// Update focused workspace
|
||||
focusedWorkspaceId = data.id
|
||||
focusedWorkspaceIndex = allWorkspaces.findIndex(w => w.id === data.id)
|
||||
|
||||
if (focusedWorkspaceIndex >= 0) {
|
||||
var activatedWs = allWorkspaces[focusedWorkspaceIndex]
|
||||
console.log("DEBUG: Found workspace - idx:", activatedWs.idx + 1, "output:", activatedWs.output, "was_active:", activatedWs.is_active)
|
||||
|
||||
// Update workspace states properly
|
||||
// First, deactivate all workspaces on this output
|
||||
@@ -173,7 +170,6 @@ Singleton {
|
||||
allWorkspaces[focusedWorkspaceIndex].is_focused = data.focused || false
|
||||
|
||||
currentOutput = activatedWs.output || ""
|
||||
console.log("DEBUG: Activated workspace", activatedWs.idx + 1, "on", currentOutput)
|
||||
|
||||
updateCurrentOutputWorkspaces()
|
||||
} else {
|
||||
@@ -256,7 +252,6 @@ Singleton {
|
||||
// Use sequential index (number is 1-based, array is 0-based)
|
||||
if (number >= 1 && number <= outputWorkspaces.length) {
|
||||
var workspace = outputWorkspaces[number - 1]
|
||||
console.log("DEBUG: Switching to workspace ID", workspace.id, "for sequential number", number, "on", targetOutput)
|
||||
return switchToWorkspace(workspace.id)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
singleton MprisController 1.0 MprisController.qml
|
||||
singleton OSDetectorService 1.0 OSDetectorService.qml
|
||||
singleton ColorPickerService 1.0 ColorPickerService.qml
|
||||
singleton WeatherService 1.0 WeatherService.qml
|
||||
singleton NetworkService 1.0 NetworkService.qml
|
||||
singleton WifiService 1.0 WifiService.qml
|
||||
|
||||
Reference in New Issue
Block a user