From 78b453374400ebcd5792b64a54784a4104978117 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 26 Feb 2024 10:11:00 -0600 Subject: [PATCH] more notes-updates --- home/private_dot_config/hypr/execs.conf | 2 ++ home/private_dot_config/hypr/hyprland.conf | 1 + home/private_dot_config/hypr/keys.conf | 5 +++-- home/private_dot_config/hypr/windows.conf | 3 ++- .../rofi/bin/executable_notes.sh | 3 --- home/private_dot_config/rofi/styles/notes.rasi | 18 ++++++++++++++++-- 6 files changed, 24 insertions(+), 8 deletions(-) diff --git a/home/private_dot_config/hypr/execs.conf b/home/private_dot_config/hypr/execs.conf index 789e771..36ddbe3 100644 --- a/home/private_dot_config/hypr/execs.conf +++ b/home/private_dot_config/hypr/execs.conf @@ -5,8 +5,10 @@ exec-once = dunst -conf ~/.config/hypr/dunstrc & # exec-once = udiskie & exec-once = xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE 2 +exec = swayidle & exec = kanshi & exec = hyprpaper & + # TODO: make hyprman kill eww if necessary exec = pkill eww & hyprman monitors & diff --git a/home/private_dot_config/hypr/hyprland.conf b/home/private_dot_config/hypr/hyprland.conf index 37b5ab1..e0b04b0 100644 --- a/home/private_dot_config/hypr/hyprland.conf +++ b/home/private_dot_config/hypr/hyprland.conf @@ -7,6 +7,7 @@ monitor=,preferred,auto,1 env = GDK_SCALE=2 env = XCURSOR_SIZE,24 env = QT_QPA_PLATFORMTHEME,qt5ct # change to qt6ct if you have that +env = GTK_THEME, Catppuccin-Mocha-Standard-Rosewater-Dark general { diff --git a/home/private_dot_config/hypr/keys.conf b/home/private_dot_config/hypr/keys.conf index 8b5d811..24f0e57 100644 --- a/home/private_dot_config/hypr/keys.conf +++ b/home/private_dot_config/hypr/keys.conf @@ -3,6 +3,7 @@ $mainMod = SUPER # Program binds bind = $mainMod SHIFT, RETURN, exec, wezterm bind = $mainMod, P, exec, ~/.config/rofi/bin/launcher.sh +bind = $mainMod, N, exec, wezterm start --class "notes-editor" -e notes bind = $mainMod SHIFT, Q, killactive, bind = $mainMod SHIFT, L, exec, lock @@ -67,8 +68,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 = ,N, exec, ~/.config/rofi/bin/notes.sh +# bind = ,N, submap, reset bind = ,escape, submap, reset submap = reset diff --git a/home/private_dot_config/hypr/windows.conf b/home/private_dot_config/hypr/windows.conf index 4e2b14c..5d01cb9 100644 --- a/home/private_dot_config/hypr/windows.conf +++ b/home/private_dot_config/hypr/windows.conf @@ -3,6 +3,7 @@ windowrulev2 = tile,class:(Vivaldi-stable) # prevent flameshot from requesting fullscreen # windowrulev2 = nofullscreenrequest,class:^(flameshot)$,title:^(flameshot) -# set flameshot to floating # windowrulev2 = float,class:^(flameshot)$,title:^(flameshot) +set notes editor to floating +windowrulev2 = float,class:^(notes-editor)$ diff --git a/home/private_dot_config/rofi/bin/executable_notes.sh b/home/private_dot_config/rofi/bin/executable_notes.sh index 96edf53..2203b15 100644 --- a/home/private_dot_config/rofi/bin/executable_notes.sh +++ b/home/private_dot_config/rofi/bin/executable_notes.sh @@ -3,7 +3,4 @@ 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 index 0c5befa..ffef650 100644 --- a/home/private_dot_config/rofi/styles/notes.rasi +++ b/home/private_dot_config/rofi/styles/notes.rasi @@ -5,7 +5,21 @@ mainbox { padding: 12px; } -entry { - placeholder: "entry"; + +inputbar { + background-color: @background; + border-color: @primary; + + border: 2px; + border-radius: 4px; + + padding: 8px 16px; + spacing: 8px; + height: 100px; +} + +entry { + placeholder: "entry"; + height: 100 px; }