Tired of opening manually the same programs every morning ? Or every time that you switch projects, running the same command over and over?
Well I was in the same place that you, so I did a little research and check what other team member were using to start the day faster
My start of the day is kind of repetitive or let say is almost the same when I start the working day.
— Open the chat application that i user to communicate with my team
— Open my time tracker application — so I can have a clear view of where my time is going every day.
- Open Firefox with a couple tabs that a need for the day
- Check emails
- Check the ticket system
- Check my calendar for the day
- See the latest changes that the repo have
The solution for me was the fallowing
tmux session manager
INSTALL STEPS
pip install --user tmuxp
Create and yml
file in the ~/.config/tmuxp/{filename}.yaml
Here is mine :
session_name: Start
start_directory: ~/ # load session relative to config location (project root).
before_script: echo "Starting of the day"
# shell_command_before:
# - '[ -f .venv/bin/activate ] && source .venv/bin/activate && reset'
windows:
- window_name: Start the day
focus: true
layout: tiled
options:
main-pane-height: 35
panes:
- shell_command:
- firefox #https://leamsigc.com/ add the link to the tab that firefox sould open
- shell_command:
- code # Open vscode
- bpytop # #https://github.com/aristocratos/bpytop and alternative to htop
- shell_command:
- superproductivity & bg # https://super-productivity.com/ Time tricker
- element-desktop & bg
How to user
Start the day by open the terminal and run the fallowing command
tmuxp load start #Remember the filename is start for my side so for you it would depend in the faliname
Top comments (18)
Do people still shut down their computers at the end of the day? People I know, they just put it to sleep, faster.
I shut down everything no matter what. And I unplug any appliance that isn't a clock or doesn't cool food.
I switch to windows at the end of my work day so i can play apex legend for 30min or 1hr, just because, is my way to handle the stress.
there is no risk for the computer, to let it sleep every day?
I don't think 🤔 that putting it on to sleep mode have a problem probably the difference could be in the electricity usage
As a windows user, I shutdown my pc everyday.
Me too but just because I don't lke it to consume electricity while not doing anything.
For me, it is beacuse of fear of loosing battery capacity. I plan on switching to mac soon, then I will live dangerously 😄
I use Brave browser with saved session and tabs. My calendar, emails, git repositories are all in the browser. I could simply close Brave with all the tabs running and open Brave the next day with the same tabs popping up. 😉
That sounds nice. Probably this is more towards to someone that switch project in between the day and you need to run more than one command to get the project up and running.
Here is an example
when I'm working on a specific day
I need to do the following.
I don't mind actually, I just open the programs I need that day. Sometimes I only need one, sometimes I need 5. I hate having opened programs that I'm not using (and browser tabs), so I only open what I need in any given moment.
But I see the appeal of this!
For me, this is helpful because I'm lazy and don't like to do of typing manually.
I prefer just run a command and let it do its thing while I'm making a coffee.
Like switching from project to project
I prefer just to run tmuxp load $project
run yarn command to get the node server up
pull all the changes from the team members.
You can Pin tabs...
Pin tabs is a good solution if you only want to open the browser.
For me is not only the browser.
Terminal with 6 panel each panel running and specific command
Vscode with the current project that I need
ohhh, Okay 😬😅
I use tmuxp everyday for years. My whole dev environment is around the shell, so I've config files for each of my project (side projects or professional ones).
Love this tool <3
My computer turns off once in a week probably or whenever there is an update that needs restart. But thank you for this article anyway. Now I know that I can automate this process too.
Is any particular reason that you keep it on all the time?