From eb73ac5a3767f725417b140f1c4fde42ed2b5701 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 20 Feb 2024 13:09:55 -0600 Subject: [PATCH] add a rofi companion to notes bin --- home/private_dot_config/hypr/keys.conf | 2 ++ home/private_dot_config/rofi/bin/executable_notes.sh | 9 +++++++++ home/private_dot_config/rofi/styles/notes.rasi | 11 +++++++++++ 3 files changed, 22 insertions(+) create mode 100644 home/private_dot_config/rofi/bin/executable_notes.sh create mode 100644 home/private_dot_config/rofi/styles/notes.rasi diff --git a/home/private_dot_config/hypr/keys.conf b/home/private_dot_config/hypr/keys.conf index 72637e4..8b5d811 100644 --- a/home/private_dot_config/hypr/keys.conf +++ b/home/private_dot_config/hypr/keys.conf @@ -67,6 +67,8 @@ bind = ,W, exec, ~/.config/rofi/bin/windows.sh bind = ,W, submap, reset bind = ,P, exec, ~/.config/rofi/bin/powermenu.sh bind = ,P, submap, reset +bind = ,N, exec, ~/.config/rofi/bin/notes.sh +bind = ,N, submap, reset bind = ,escape, submap, reset submap = reset diff --git a/home/private_dot_config/rofi/bin/executable_notes.sh b/home/private_dot_config/rofi/bin/executable_notes.sh new file mode 100644 index 0000000..96edf53 --- /dev/null +++ b/home/private_dot_config/rofi/bin/executable_notes.sh @@ -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)" diff --git a/home/private_dot_config/rofi/styles/notes.rasi b/home/private_dot_config/rofi/styles/notes.rasi new file mode 100644 index 0000000..0c5befa --- /dev/null +++ b/home/private_dot_config/rofi/styles/notes.rasi @@ -0,0 +1,11 @@ +@import "default.rasi" +@import "colors.rasi" + +mainbox { + padding: 12px; +} + +entry { + placeholder: "entry"; +} +