Compare commits
No commits in common. "484e0ce17f9656a963105dda68c05ec62d3b294f" and "8f085b5c36084d8cca38195827d446d109d5c7c3" have entirely different histories.
484e0ce17f
...
8f085b5c36
5 changed files with 16 additions and 84 deletions
|
|
@ -54,13 +54,10 @@ Scope {
|
||||||
if (index > uiState.workspaces.count) return;
|
if (index > uiState.workspaces.count) return;
|
||||||
let id;
|
let id;
|
||||||
if (index === uiState.workspaces.count) {
|
if (index === uiState.workspaces.count) {
|
||||||
if (uiState.workspaces.get(index - 1).workspace === Hypr.focusedWorkspace
|
|
||||||
&& Hypr.focusedWorkspace.toplevels.values.length === 0) return;
|
|
||||||
id = root.nextWorkspace();
|
id = root.nextWorkspace();
|
||||||
} else {
|
} else {
|
||||||
id = uiState.workspaces.get(index).workspace.id;
|
id = uiState.workspaces.get(index).workspace.id;
|
||||||
}
|
}
|
||||||
if (id === Hypr.focusedWorkspace.id) return;
|
|
||||||
Hypr.dispatch(`workspace ${id}`);
|
Hypr.dispatch(`workspace ${id}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -79,13 +76,10 @@ Scope {
|
||||||
if (index > uiState.workspaces.count) return;
|
if (index > uiState.workspaces.count) return;
|
||||||
let id;
|
let id;
|
||||||
if (index === uiState.workspaces.count) {
|
if (index === uiState.workspaces.count) {
|
||||||
if (uiState.workspaces.get(index - 1).workspace === Hypr.focusedWorkspace
|
|
||||||
&& Hypr.focusedWorkspace.toplevels.values.length === 0) return;
|
|
||||||
id = nextWorkspace();
|
id = nextWorkspace();
|
||||||
} else {
|
} else {
|
||||||
id = uiState.workspaces.get(index).workspace.id;
|
id = uiState.workspaces.get(index).workspace.id;
|
||||||
}
|
}
|
||||||
if (id === Hypr.focusedWorkspace.id) return;
|
|
||||||
Hypr.dispatch(`hy3:movetoworkspace ${id}`);
|
Hypr.dispatch(`hy3:movetoworkspace ${id}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -115,7 +109,7 @@ Scope {
|
||||||
description: "Toggle launcher"
|
description: "Toggle launcher"
|
||||||
onPressed: {
|
onPressed: {
|
||||||
const uiState = States.getForActive();
|
const uiState = States.getForActive();
|
||||||
uiState.launcher = !uiState.launcher;
|
uiState.laucher = !uiState.launcher;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ pragma Singleton
|
||||||
|
|
||||||
import qs.config
|
import qs.config
|
||||||
import qs.custom
|
import qs.custom
|
||||||
import QtQuick
|
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Services.Pipewire
|
import Quickshell.Services.Pipewire
|
||||||
|
|
||||||
|
|
@ -38,49 +37,15 @@ Singleton {
|
||||||
}
|
}
|
||||||
|
|
||||||
CustomShortcut {
|
CustomShortcut {
|
||||||
id: volumeUp
|
|
||||||
name: "volumeUp"
|
name: "volumeUp"
|
||||||
description: "Increase volume"
|
description: "Increase volume"
|
||||||
onPressed: {
|
onPressed: root.increaseVolume()
|
||||||
root.increaseVolume();
|
|
||||||
volumeUpTimer.interval = 800;
|
|
||||||
volumeUpTimer.running = true;
|
|
||||||
}
|
|
||||||
onReleased: {
|
|
||||||
volumeUpTimer.running = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Timer {
|
|
||||||
id: volumeUpTimer
|
|
||||||
interval: 800
|
|
||||||
repeat: true
|
|
||||||
onTriggered: {
|
|
||||||
interval = 200;
|
|
||||||
root.increaseVolume();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CustomShortcut {
|
CustomShortcut {
|
||||||
id: volumeDown
|
|
||||||
name: "volumeDown"
|
name: "volumeDown"
|
||||||
description: "Decrease volume"
|
description: "Decrease volume"
|
||||||
onPressed: {
|
onPressed: root.decreaseVolume()
|
||||||
root.decreaseVolume();
|
|
||||||
volumeDownTimer.interval = 800;
|
|
||||||
volumeDownTimer.running = true;
|
|
||||||
}
|
|
||||||
onReleased: {
|
|
||||||
volumeDownTimer.running = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Timer {
|
|
||||||
id: volumeDownTimer
|
|
||||||
interval: 800
|
|
||||||
repeat: true
|
|
||||||
onTriggered: {
|
|
||||||
interval = 200;
|
|
||||||
root.decreaseVolume();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CustomShortcut {
|
CustomShortcut {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
pragma Singleton
|
pragma Singleton
|
||||||
pragma ComponentBehavior: Bound
|
pragma ComponentBehavior: Bound
|
||||||
|
|
||||||
import qs.config
|
|
||||||
import qs.custom
|
import qs.custom
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
|
|
@ -68,50 +67,15 @@ Singleton {
|
||||||
}
|
}
|
||||||
|
|
||||||
CustomShortcut {
|
CustomShortcut {
|
||||||
id: brightnessUp
|
|
||||||
name: "brightnessUp"
|
name: "brightnessUp"
|
||||||
description: "Increase brightness"
|
description: "Increase brightness"
|
||||||
onPressed: {
|
onPressed: root.increaseBrightness()
|
||||||
console.log("a")
|
|
||||||
root.increaseBrightness();
|
|
||||||
brightnessUpTimer.interval = 800;
|
|
||||||
brightnessUpTimer.running = true;
|
|
||||||
}
|
|
||||||
onReleased: {
|
|
||||||
brightnessUpTimer.running = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Timer {
|
|
||||||
id: brightnessUpTimer
|
|
||||||
interval: 800
|
|
||||||
repeat: true
|
|
||||||
onTriggered: {
|
|
||||||
interval = 200;
|
|
||||||
root.increaseBrightness();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CustomShortcut {
|
CustomShortcut {
|
||||||
id: brightnessDown
|
|
||||||
name: "brightnessDown"
|
name: "brightnessDown"
|
||||||
description: "Decrease brightness"
|
description: "Decrease brightness"
|
||||||
onPressed: {
|
onPressed: root.decreaseBrightness()
|
||||||
root.decreaseBrightness();
|
|
||||||
brightnessDownTimer.interval = 800;
|
|
||||||
brightnessDownTimer.running = true;
|
|
||||||
}
|
|
||||||
onReleased: {
|
|
||||||
brightnessDownTimer.running = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Timer {
|
|
||||||
id: brightnessDownTimer
|
|
||||||
interval: 800
|
|
||||||
repeat: true
|
|
||||||
onTriggered: {
|
|
||||||
interval = 200;
|
|
||||||
root.decreaseBrightness();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
component Monitor: QtObject {
|
component Monitor: QtObject {
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,16 @@ Singleton {
|
||||||
description: "Dismiss all notifications"
|
description: "Dismiss all notifications"
|
||||||
onPressed: {
|
onPressed: {
|
||||||
for (const notif of root.list)
|
for (const notif of root.list)
|
||||||
notif.notification.dismiss();
|
notif.popup = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
IpcHandler {
|
||||||
|
target: "notifs"
|
||||||
|
|
||||||
|
function clear(): void {
|
||||||
|
for (const notif of root.list)
|
||||||
|
notif.popup = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ Singleton {
|
||||||
|
|
||||||
property real cpuPerc
|
property real cpuPerc
|
||||||
property real cpuTemp
|
property real cpuTemp
|
||||||
readonly property string gpuType: Config.services.gpuType?.toUpperCase() || autoGpuType
|
readonly property string gpuType: Config.services.gpuType.toUpperCase() || autoGpuType
|
||||||
property string autoGpuType: "NONE"
|
property string autoGpuType: "NONE"
|
||||||
property real gpuPerc
|
property real gpuPerc
|
||||||
property real gpuTemp
|
property real gpuTemp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue