To add or not to add?
When I first read about undistract-me, the website stated that I need to add the follwing lines to my .bashrc file:
. /usr/share/
notify_
So, I added those lines to my .bashrc and it worked fine until I rebooted. Now when I open a terminal I get the following error:
notify_
So I looked in to it and found that I needed to check the 'run as command' option in gnome-terminal, but I also use other terminals that don't have that option, (examples: lxterminal, and gnome-shell extension 'drop-down terminal'). I was able to make it work in those terminals, but I have to run 'bash -l' every time I open them. So I was ok with that annoying little work around, but I use byobu with tmux as the backend ALL the time. Well, it doesn't seem to work in byobu when I launch new windows. I believe it is because those windows are non-interactive shells.
Now that you know my issues, let me get to the questions.
Because of the issues I have been having I started researching the problem. I haven't found any solid answers, but when I went to the undistract-me git site I noticed that you don't suggest or recommend adding those lines to the .bashrc file. You only mention running those lines in the shell, and you mention starting a new gnome-terminal session and running 'bash --login', or logging out and log back in again. So, back to the question.
Do I need to add those lines to my .bashrc file or not? (I am thinking not, because I noticed that undistract-me.sh is in /etc/profile.d, so I assume it doesn't have to be added to the .bashrc anymore)
My main issue is this: How can I get undistract-me to work in byobu?
Am I going to be forced to always run 'bash -l' or 'bash --login' after every time I create new windows in byobu?
If that is the case, is there a way to force byobu to automatically run 'bash -l' or 'bash --login' when I create a new window?
I've looked every where to try and answer these questions without bothering you about it, but I can't find a straight answer.
Some things I have found will make it work in some of the terminals that don't include the 'run as command' option in the preferences. But, NONE of the fixes I have found will allow undistract-me to work in byobu without me having to run 'bash -l' or 'bash --login' when I create new windows.
I love undistract-me, it is absolutely brilliant and minimal, which in my opinion makes it incredible. I also think that byobu is a great as well. I would love for these two to work with each other the way I thought they would. I just hope I didn't stumble upon a bug that can't be squashed. Please help!
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: