/* * udt screenshot layout: a compact two-button card, whole screen or area. * Copyright (C) 2026 Danilo M. * Licensed under the GNU General Public License v2 only. * * The window stays fullscreen for the scrim; the buttons sit on a fixed-size * card centred on it, so they read the same on every monitor. */ @import "common.rasi" /* Translucent like the power menu, so it reads as a layer over the session. */ window { fullscreen: true; background-color: @scrim; border: 0; border-radius: 0; padding: 0; } /* rofi has no centring property, so spacers on both axes hold the card in * the middle: mainbox centres a column horizontally, column centres the card * vertically. */ mainbox { orientation: horizontal; children: [ dummy, column, dummy ]; } /* A horizontal box sizes children by their own width, and listview reports * none, so the card's width is spelled out: two 150px buttons, 16px apart, * plus 24px padding and 2px border each side. */ column { expand: false; width: 368px; orientation: vertical; children: [ dummy, card, dummy ]; } card { expand: false; orientation: vertical; children: [ listview ]; spacing: 20px; padding: 24px; background-color: @base; border: 2px; border-color: @accent; border-radius: 18px; } dummy { expand: true; } listview { expand: false; columns: 2; lines: 1; fixed-height: true; fixed-columns: true; flow: horizontal; spacing: 16px; } /* Text only: common.rasi's element spacing still reserves a gap for the * icon, which pushed the glyph off centre. */ element { children: [ element-text ]; width: 150px; padding: 28px 0px; border-radius: 12px; background-color: @surface0; } element-text { font: "Inconsolata Nerd Font Mono 72"; horizontal-align: 0.5; vertical-align: 0.5; text-color: inherit; }