From 066e0e3dc350752b3826150694f7deca5e0cce8d Mon Sep 17 00:00:00 2001 From: Anish L Date: Fri, 2 Sep 2022 01:38:07 +1000 Subject: [PATCH] screenshot through rofi + maim --- users/profiles/desktop/bin/screenshot | 2 +- .../profiles/desktop/rofi/screenshotmenu.rasi | 23 ++++++++++++++++--- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/users/profiles/desktop/bin/screenshot b/users/profiles/desktop/bin/screenshot index 6e0e8bc3..157d8e8d 100755 --- a/users/profiles/desktop/bin/screenshot +++ b/users/profiles/desktop/bin/screenshot @@ -12,7 +12,7 @@ cancel="" # Variable passed to rofi options="$select\n$window\n$screen\n$delay\n$cancel" -rofi_command="rofi -theme theme/screenshotsmenu.rasi" +rofi_command="rofi -theme theme/screenshotmenu.rasi" setFilename() { directory="/tmp/" diff --git a/users/profiles/desktop/rofi/screenshotmenu.rasi b/users/profiles/desktop/rofi/screenshotmenu.rasi index 5b1778dd..16771912 100644 --- a/users/profiles/desktop/rofi/screenshotmenu.rasi +++ b/users/profiles/desktop/rofi/screenshotmenu.rasi @@ -1,5 +1,22 @@ -@import "iconmenu.rasi" +@import "appmenu.rasi" -* { icon-font: "Iosevka Nerd Font Mono 24"; } +window { + children: [ listview ]; + width: 264px; + y-offset: -540px; + border-radius: 5px 5px 5px 5px; +} -window { width: 264px; } +listview { + scrollbar: false; + lines: 1; + columns: 6; +} + +element { + background-color: @bg; +} +element.selected { + background-color: @off; + text-color: @bg; +}