add a rofi companion to notes bin

This commit is contained in:
Daylin Morgan 2024-02-20 13:09:55 -06:00
parent 51e512c83f
commit eb73ac5a37
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
3 changed files with 22 additions and 0 deletions

View file

@ -67,6 +67,8 @@ bind = ,W, exec, ~/.config/rofi/bin/windows.sh
bind = ,W, submap, reset bind = ,W, submap, reset
bind = ,P, exec, ~/.config/rofi/bin/powermenu.sh bind = ,P, exec, ~/.config/rofi/bin/powermenu.sh
bind = ,P, submap, reset bind = ,P, submap, reset
bind = ,N, exec, ~/.config/rofi/bin/notes.sh
bind = ,N, submap, reset
bind = ,escape, submap, reset bind = ,escape, submap, reset
submap = reset submap = reset

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
styles="$(dirname "$(which $0)")/../styles"
rofi_cmd="rofi -theme $styles/notes.rasi -dmenu -p notes -l 0"
# Rofi command to pipe into, can add any options here
# rofi_command="rofi -dmenu -theme $rofi_styles/bluetooth.rasi -no-fixed-num-lines -yoffset -100 -i -p "
notes "$($rofi_cmd)"

View file

@ -0,0 +1,11 @@
@import "default.rasi"
@import "colors.rasi"
mainbox {
padding: 12px;
}
entry {
placeholder: "entry";
}