Add a notch mode that splits the bar around a pocket-dots style notch
Settings → Notch switches it on. The bar becomes left and right islands with a notch at the top centre. Super+C, Super+X and a click on the notch open a three-column panel: dashboard pages on the left (Media, Performance, Calendar; the wheel switches them), the Control Center tiles and weather in the middle, and notifications on the right. The Performance card opens the full "Your computer" view. The launcher drops out of the notch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
178041edf9
commit
5217af4f67
20 files changed
+919
-14
No files matched your search
@@ -1,13 +1,14 @@
|
||||
pragma Singleton
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import "../services"
|
||||
|
||||
Singleton {
|
||||
property bool wallpaperPickerOpen: false
|
||||
property var wallpaperScreen: null
|
||||
property var wallpaperWindow: null
|
||||
function openWallpaperPicker() {
|
||||
settingsOpen=false;launcherOpen=false;controlCenterOpen=false;dashboardOpen=false;overviewOpen=false;
|
||||
settingsOpen=false;launcherOpen=false;controlCenterOpen=false;dashboardOpen=false;overviewOpen=false;notchOpen=false;
|
||||
wallpaperScreen=activeScreen();wallpaperPickerOpen=true;
|
||||
}
|
||||
property var systemPills: []
|
||||
@@ -15,6 +16,8 @@ Singleton {
|
||||
property var controlCenterScreen: null
|
||||
property var controlCenterWindow: null
|
||||
function openControlCenter() {
|
||||
if (notchMode)
|
||||
return openNotch();
|
||||
wallpaperPickerOpen=false;
|
||||
overviewOpen = false;
|
||||
dashboardOpen = false;
|
||||
@@ -26,6 +29,8 @@ Singleton {
|
||||
controlCenterOpen = true;
|
||||
}
|
||||
function toggleControlCenter() {
|
||||
if (notchMode)
|
||||
return toggleNotch();
|
||||
if (controlCenterOpen)
|
||||
controlCenterOpen = false;
|
||||
else
|
||||
@@ -37,6 +42,8 @@ Singleton {
|
||||
property var dashboardWindow: null
|
||||
property string dashboardTab: ""
|
||||
function openDashboard(tab) {
|
||||
if (notchMode)
|
||||
return openNotch();
|
||||
wallpaperPickerOpen = false;
|
||||
overviewOpen = false;
|
||||
controlCenterOpen = false;
|
||||
@@ -49,17 +56,51 @@ Singleton {
|
||||
dashboardOpen = true;
|
||||
}
|
||||
function toggleDashboard(tab) {
|
||||
if (notchMode)
|
||||
return toggleNotch();
|
||||
if (dashboardOpen && (!tab || tab === dashboardTab))
|
||||
dashboardOpen = false;
|
||||
else
|
||||
openDashboard(tab);
|
||||
}
|
||||
// Notch mode (pocket-dots style): the bar splits into side islands and a
|
||||
// centre notch; the Control Center and Dashboard keys open the notch instead.
|
||||
readonly property bool notchMode: ConfigService.ready && !!ConfigService.data.notch && ConfigService.data.notch.enabled
|
||||
property bool notchOpen: false
|
||||
// Collapsed notch body width (ears excluded): clock alone, or art + clock + cava.
|
||||
readonly property real notchPillWidth: MediaService.playing ? 236 : 128
|
||||
property var notchScreen: null
|
||||
property var notchWindow: null
|
||||
// "main" is the three-column panel; "computer" is the full Performance view.
|
||||
property string notchView: "main"
|
||||
function openNotch() {
|
||||
wallpaperPickerOpen = false;
|
||||
overviewOpen = false;
|
||||
controlCenterOpen = false;
|
||||
dashboardOpen = false;
|
||||
launcherOpen = false;
|
||||
settingsOpen = false;
|
||||
if (!notchOpen) {
|
||||
notchScreen = activeScreen();
|
||||
notchView = "main";
|
||||
}
|
||||
notchOpen = true;
|
||||
}
|
||||
function toggleNotch() {
|
||||
if (notchOpen)
|
||||
notchOpen = false;
|
||||
else
|
||||
openNotch();
|
||||
}
|
||||
onNotchModeChanged: if (!notchMode)
|
||||
notchOpen = false
|
||||
// Workspace overview (SUPER+Tab): a drawer of live workspace thumbnails.
|
||||
property bool overviewOpen: false
|
||||
property var overviewScreen: null
|
||||
property var overviewWindow: null
|
||||
function openOverview() {
|
||||
wallpaperPickerOpen = false;
|
||||
notchOpen = false;
|
||||
controlCenterOpen = false;
|
||||
dashboardOpen = false;
|
||||
launcherOpen = false;
|
||||
@@ -85,6 +126,7 @@ Singleton {
|
||||
}
|
||||
function openLauncher(mode) {
|
||||
wallpaperPickerOpen=false;
|
||||
notchOpen = false;
|
||||
overviewOpen = false;
|
||||
dashboardOpen = false;
|
||||
launcherMode = mode === "clipboard" || mode === "emoji" ? mode : "apps";
|
||||
@@ -130,6 +172,7 @@ Singleton {
|
||||
}
|
||||
function openSettings(page) {
|
||||
wallpaperPickerOpen=false;
|
||||
notchOpen = false;
|
||||
overviewOpen = false;
|
||||
dashboardOpen = false;
|
||||
controlCenterOpen = false;
|
||||
|
||||
Reference in new issue
Block a user