diff options
| -rwxr-xr-x | install.sh | 2 | ||||
| -rw-r--r-- | rofi/udt/screenshot.rasi | 54 |
2 files changed, 55 insertions, 1 deletions
@@ -22,7 +22,7 @@ fi # Theme files are symlinked individually; accent.rasi is NOT, it points at the # generated file in the wal cache instead. -for f in palette.rasi common.rasi menu.rasi list.rasi grid.rasi powermenu.rasi confirm.rasi; do +for f in palette.rasi common.rasi menu.rasi list.rasi grid.rasi powermenu.rasi confirm.rasi screenshot.rasi; do ln -sfn "$repo/rofi/udt/$f" "$target/$f" done 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; +} |
