diff --git a/bibtex/.local/bin/rofi-bib-due b/bibtex/.local/bin/rofi-bib-due index a76760e..623a92d 100755 --- a/bibtex/.local/bin/rofi-bib-due +++ b/bibtex/.local/bin/rofi-bib-due @@ -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} diff --git a/rofi/.config/rofi/themes/dropdown.rasi b/rofi/.config/rofi/themes/dropdown.rasi new file mode 100644 index 0000000..4d4b542 --- /dev/null +++ b/rofi/.config/rofi/themes/dropdown.rasi @@ -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; +} diff --git a/rofi/.config/rofi/themes/layouts/list-vertical-dynamic.rasi b/rofi/.config/rofi/themes/layouts/list-vertical-dynamic.rasi new file mode 100644 index 0000000..88e6a61 --- /dev/null +++ b/rofi/.config/rofi/themes/layouts/list-vertical-dynamic.rasi @@ -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; +}