Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've finally hit upon an electronic calendar scenario I am happy enough with to try for a few months. I use calcurse, with the main directory for daily, and subdirectories for Weekly, Monthly, Quarterly, and Yearly.

I have aliases defined to reach these subdirectories because I am lazy:

       # calcurse stuff
	export Week='-D .calcurse/Weekly'
	export Month='-D .calcurse/Monthly'
	export Quarter='-D .calcurse/Quarterly'
	export Year='-D .calcurse/Yearly'
I use tmux and a startup script to open daily, weekly, and monthly

  #!/bin/bash
	# Start a session named cal, name the window "Day", 
	# pane.  Detach the session for the setup process.
	tmux new -s cal -n Day -d
	# Create second window named "Week", split it and      select left pane
	tmux new-window -t cal:1 -n 'Week'
	# Create a third window named "Month", split and select left
	tmux new-window -t cal:2 -n 'Month'
	# Load the calendars
	## Note ^M and Enter seem to do the same thing
	tmux send-keys -t cal:0 'calcurse' ^M  
	tmux send-keys -t cal:1 'calcurse $Week' ^M
	tmux send-keys -t cal:2 'calcurse $Month' Enter
	# Select window 0 and re-attach the session so we can reach it.
	tmux select-window -t cal:0
	tmux attach -t cal
Now I can set up tasks and priorities, and update according to the work plan. Share via rsyn. And not dependent on the cloud (I can rsync to a stick). Drawback; it is not integrated with Evolution or Thunderbird.


Just for future record, the script I actually use has two returns at the end of the send-keys lines

        tmux send-keys -t cal:0 'calcurse' ^M  ^M
	tmux send-keys -t cal:1 'calcurse $Week' ^M ^M
	tmux send-keys -t cal:2 'calcurse $Month' Enter Enter




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: