Skip to content

Commit 9437c6a

Browse files
committed
activate_linux: add example
1 parent f76b43d commit 9437c6a

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

activate_linux/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Activate Linux
2+
3+
A parody of the activate windows watermark on windows.
4+
5+
You can run the watermark with `quickshell -p shell.qml`.
6+
7+
![](./image.png)

activate_linux/image.png

119 KB
Loading

activate_linux/shell.qml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
import QtQuick
2+
import QtQuick.Layouts
3+
import Quickshell
4+
import Quickshell.Wayland
5+
6+
ShellRoot {
7+
Variants {
8+
// Create the panel once on each monitor.
9+
variants: Quickshell.screens.map(screen => ({ screen }))
10+
11+
PanelWindow {
12+
id: w
13+
14+
anchors {
15+
right: true
16+
bottom: true
17+
}
18+
19+
margins {
20+
right: 50
21+
bottom: 50
22+
}
23+
24+
width: content.width
25+
height: content.height
26+
27+
color: "transparent"
28+
29+
// Give the window an empty click mask so all clicks pass through it.
30+
mask: Region {}
31+
32+
// Use the wlroots specific layer property to ensure it displays over
33+
// fullscreen windows.
34+
WlrLayershell.layer: Layer.Overlay
35+
36+
ColumnLayout {
37+
id: content
38+
39+
Text {
40+
text: "Activate Linux"
41+
color: "#50ffffff"
42+
font.pointSize: 22
43+
}
44+
45+
Text {
46+
text: "Go to Settings to activate Linux"
47+
color: "#50ffffff"
48+
font.pointSize: 14
49+
}
50+
}
51+
}
52+
}
53+
}

0 commit comments

Comments
 (0)