diff options
Diffstat (limited to 'rofi/udt/screenshot.rasi')
| -rw-r--r-- | rofi/udt/screenshot.rasi | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/rofi/udt/screenshot.rasi b/rofi/udt/screenshot.rasi new file mode 100644 index 0000000..0eff248 --- /dev/null +++ b/rofi/udt/screenshot.rasi @@ -0,0 +1,54 @@ +/* + * udt screenshot layout: two fullscreen buttons, whole screen or area. + * Copyright (C) 2026 Danilo M. <danix@danix.xyz> + * Licensed under the GNU General Public License v2 only. + * + * Each option takes half the monitor, so the choice is one glance and one + * click. Cells fill whatever monitor rofi opens on; the glyph size cannot be + * a percentage in rofi, so the script passes it with -theme-str, derived from + * the focused monitor's height. The font below is only the fallback. + */ + +@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: 6%; +} + +/* rofi sizes a row by its text, not by the space left, so spacers above and + * below centre the row instead of leaving it pinned to the top edge. */ +mainbox { + children: [ dummy, listview, dummy ]; +} + +dummy { + expand: true; +} + +listview { + expand: false; + columns: 2; + lines: 1; + fixed-height: true; + fixed-columns: true; + flow: horizontal; + spacing: 4%; +} + +element { + padding: 80px 0px; + border-radius: 24px; + background-color: @surface0; +} + +element-text { + font: "Inconsolata Nerd Font Mono 160"; + horizontal-align: 0.5; + vertical-align: 0.5; + text-color: inherit; +} |
