I’d like to customize hyprstart by adding some env vars and changing some others. What’s the right way to do this? I assume that if I edit /usr/local/bin/hyprstart it will get overwritten at the next update? Maybe it would be nice for hyprstart to source something like ~/.config/hypr/hyprstart just before starting hyprland?
If you test this and confirm it will work, I’ll put together a merge request.
This works for me:
/etc [1]> diff -c /tmp/hyprstart /usr/local/bin/hyprstart
*** /tmp/hyprstart 2023-10-29 09:49:30.072789994 -0700
--- /usr/local/bin/hyprstart 2023-10-29 09:50:23.025079612 -0700
***************
*** 50,53 ****
--- 50,57 ----
#export BAT_THEME="catppuccin-mocha"
export MICRO_TRUECOLOR=1
+ # Let the user customize this hyprstart script by overriding stuff in $hyprstart
+ hyprstart="$HOME/.config/hypr/hyprstart"
+ [ -x $hyprstart ] && . $hyprstart
+
exec Hyprland
2 Likes
Done.
Thank you
2 Likes
Wow, that was fast! SGS is a keyboard ninja.
2 Likes
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.