From cc78446d12fd7e94fae3f7756189509401d782ac Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sun, 10 Mar 2024 04:36:29 -0700 Subject: [PATCH] activate_linux: add example --- activate_linux/README.md | 5 ++++ activate_linux/shell.qml | 53 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 activate_linux/README.md create mode 100644 activate_linux/shell.qml diff --git a/activate_linux/README.md b/activate_linux/README.md new file mode 100644 index 0000000..5b792ae --- /dev/null +++ b/activate_linux/README.md @@ -0,0 +1,5 @@ +# Activate Linux + +A parody of the activate windows watermark on windows. + +You can run the watermark with `quickshell -p shell.qml`. diff --git a/activate_linux/shell.qml b/activate_linux/shell.qml new file mode 100644 index 0000000..b025e06 --- /dev/null +++ b/activate_linux/shell.qml @@ -0,0 +1,53 @@ +import QtQuick +import QtQuick.Layouts +import Quickshell +import Quickshell.Wayland + +ShellRoot { + Variants { + // Create the panel once on each monitor. + variants: Quickshell.screens.map(screen => ({ screen })) + + PanelWindow { + id: w + + anchors { + right: true + bottom: true + } + + margins { + right: 50 + bottom: 50 + } + + width: content.width + height: content.height + + color: "transparent" + + // Give the window an empty click mask so all clicks pass through it. + mask: Region {} + + // Use the wlroots specific layer property to ensure it displays over + // fullscreen windows. + WlrLayershell.layer: Layer.Overlay + + ColumnLayout { + id: content + + Text { + text: "Activate Linux" + color: "#50ffffff" + font.pointSize: 22 + } + + Text { + text: "Go to Settings to activate Linux" + color: "#50ffffff" + font.pointSize: 14 + } + } + } + } +}