activate_linux: add example
This commit is contained in:
		
							parent
							
								
									f76b43db25
								
							
						
					
					
						commit
						9437c6a840
					
				
					 3 changed files with 60 additions and 0 deletions
				
			
		
							
								
								
									
										7
									
								
								activate_linux/README.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								activate_linux/README.md
									
										
									
									
									
										Normal 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`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										
											BIN
										
									
								
								activate_linux/image.png
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								activate_linux/image.png
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 119 KiB  | 
							
								
								
									
										53
									
								
								activate_linux/shell.qml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								activate_linux/shell.qml
									
										
									
									
									
										Normal 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
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue