[bibtex] Add rofi theme

Added theme to rofi making use of dropdown possibility. Will create a
window spanning whole page (or less, depending on how many lines dmenu
command passes on), and dynamically resizing to number of items.
This commit is contained in:
Marty Oehme 2020-05-11 17:39:24 +02:00
parent dba4877983
commit f8056ed25a
No known key found for this signature in database
GPG Key ID: 0CCB0526EFB9611A
3 changed files with 36 additions and 1 deletions

View File

@ -3,7 +3,7 @@
exist rofi normal
_rofi() {
rofi -dmenu -no-auto-select -i "$@"
rofi -dmenu -no-auto-select -i "$@" -theme themes/dropdown -p "papers" -l 25 -yoffset 20
}
bib=${1:-$BIBFILE}

View File

@ -0,0 +1,17 @@
/**
* This theme is intended for a full-width dropdown. It will dynamically resize, depending on the amount of list items.
*/
@import "./layouts/list-vertical-dynamic.rasi"
#window {
width: 100%;
location:north;
anchor:north;
}
#listview {
dynamic: true;
fixed-height: false;
}

View File

@ -0,0 +1,18 @@
/**
* This theme is intended for a normal vertical list, which can fill the width of the screen.
*/
@import "../settings.rasi"
#window {
padding: 5;
}
#listview {
layout: vertical;
spacing: @option-5-listview-spacing;
}
#element {
padding: 10;
}