DEV Community

Cover image for Tired of opening manually the same programs every morning ?
Ismael Garcia
Ismael Garcia

Posted on

Tired of opening manually the same programs every morning ?

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

tmuxp

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
Enter fullscreen mode Exit fullscreen mode

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

Recommendations

Discussion (18)

Collapse
oysterd3 profile image
Oyster Lee

Do people still shut down their computers at the end of the day? People I know, they just put it to sleep, faster.

Collapse
thefluxapex profile image
Ian Pride • Edited

I shut down everything no matter what. And I unplug any appliance that isn't a clock or doesn't cool food.

Collapse
leamsigc profile image
Ismael Garcia Author

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.

Collapse
moutafatin1 profile image
moutafatin1 • Edited

there is no risk for the computer, to let it sleep every day?

Collapse
leamsigc profile image
Ismael Garcia Author

I don't think 🤔 that putting it on to sleep mode have a problem probably the difference could be in the electricity usage

Collapse
milindsoorya profile image
milindsoorya

As a windows user, I shutdown my pc everyday.

Collapse
leamsigc profile image
Ismael Garcia Author

Me too but just because I don't lke it to consume electricity while not doing anything.

Thread Thread
milindsoorya profile image
milindsoorya

For me, it is beacuse of fear of loosing battery capacity. I plan on switching to mac soon, then I will live dangerously 😄

Collapse
zaimazhar97 profile image
zaimazhar97

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. 😉

Collapse
leamsigc profile image
Ismael Garcia Author

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.

  • CD to the folder of the project
  • git pull all the branches for the other services like the backend for some sort of business.
  • rebuild the jar files
  • open a new tmux -panel -run a couple of Docker commands to get systems up
  • open vscode
Collapse
nombrekeff profile image
Keff

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!

Collapse
leamsigc profile image
Ismael Garcia Author

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

  • open tmux panel for each service
  • open vscode
  • run yarn command to get the front end up
  • run yarn command to get the node server up

  • pull all the changes from the team members.

Collapse
beginnerdeveloper profile image
Beginner Developer

You can Pin tabs...

Collapse
leamsigc profile image
Ismael Garcia Author

Pin tabs is a good solution if you only want to open the browser.

For me is not only the browser.

  • Time tracking app
  • Chat App
  • Terminal with 6 panel each panel running and specific command

  • Vscode with the current project that I need

Collapse
beginnerdeveloper profile image
Beginner Developer

ohhh, Okay 😬😅

Collapse
arberbr profile image
Arber Braja

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.

Collapse
leamsigc profile image
Ismael Garcia Author

Is any particular reason that you keep it on all the time?

Collapse
phantas0s profile image
Matthieu Cneude

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