1
0
Fork 0

activate_linux: add example

This commit is contained in:
outfoxxed 2024-03-10 04:36:29 -07:00
parent f76b43db25
commit 9437c6a840
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
3 changed files with 60 additions and 0 deletions

7
activate_linux/README.md Normal file
View file

@ -0,0 +1,7 @@
# Activate Linux
A parody of the activate windows watermark on windows.
You can run the watermark with `quickshell -p shell.qml`.
![](./image.png)

BIN
activate_linux/image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

53
activate_linux/shell.qml Normal file
View file

@ -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
}
}
}
}
}