[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:
parent
dba4877983
commit
f8056ed25a
3 changed files with 36 additions and 1 deletions
|
@ -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}
|
||||
|
|
17
rofi/.config/rofi/themes/dropdown.rasi
Normal file
17
rofi/.config/rofi/themes/dropdown.rasi
Normal 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;
|
||||
}
|
18
rofi/.config/rofi/themes/layouts/list-vertical-dynamic.rasi
Normal file
18
rofi/.config/rofi/themes/layouts/list-vertical-dynamic.rasi
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue