dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

The Waybar `launch.sh` to source the `.bashrc`

Open zzvara opened this issue 1 year ago • 6 comments

Supports use-cases for custom Python venvs, for example, for plugins like nextmeeting.

zzvara avatar Nov 25 '24 15:11 zzvara

Hi. Could this cause any side effects? I will test.

mylinuxforwork avatar Nov 25 '24 17:11 mylinuxforwork

@zzvara What happens if someone switched to zsh? Is it the required to source the .zshrc?

mylinuxforwork avatar Nov 26 '24 07:11 mylinuxforwork

I don't understand what is the benefit of this?

feikedonia avatar Dec 01 '24 15:12 feikedonia

@mylinuxforwork I indeed use .zshrc, but I had to replicate my .zshrc setup to .bashrc, because some programs that interface with bash use .bashrc, not .zshrc. I define Python, sdkman and other development environment stuff to .zshrc and .bashrc and by default these programs add themselves to these rc files.

I realized, that Waybar could not call nextmeeting Python program that uses gcalcli, because nextmeeting lives in my Python venv. While I customize Waybar, I add custom modules that make calls to programs that work correctly after .rc files are loaded.

Maybe sourcing these .rc files in the Waybar launch.sh is not the best way, but I could not find a better place globally, and it worked.

zzvara avatar Dec 03 '24 20:12 zzvara

@mylinuxforwork I now have a python env, scala, java, sdkman and soon other stuff which requires that .rc files to be loaded for Waybar. I love how customizable it is.

I now have Teleport VPN login panels, meeting monitors, indoor and outdoor air quality monitors with notifications for me to open the window to get some fresh air inside, because of high CO2.

image

These all need .rc files to be loaded, because the runtimes required for these also add themselves to the .rc file by default, during their installation.

zzvara avatar Dec 22 '24 06:12 zzvara

I would just add a option to the ml4w app

JumpIn-Git avatar Dec 25 '24 00:12 JumpIn-Git