23 lines
		
	
	
		
			858 B
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			858 B
		
	
	
	
		
			Plaintext
		
	
	
	
| ### Session --------------------------------------------------------------
 | ||
| # -sXX : XX session ID or name
 | ||
| # -nWINDOW_NAME : Name of the window…
 | ||
| # -d : Don't attache to the new session/window/pane/…
 | ||
| # -tXX:YY.ZZ :
 | ||
| #   XX : session ID or name
 | ||
| #   YY : (optional) Window ID
 | ||
| #   ZZ : (optional) Pane ID
 | ||
| #   YY and ZZ should exists to be able to change the parameters,…
 | ||
| # monitor-activity : permet de mettre en avant une fenêtre quand son contenu reçoit un événement
 | ||
| # 'exec ${SHELL}' : Allow to keep the pane running after the program exists
 | ||
| 
 | ||
| # Manage new window for APT update
 | ||
| 
 | ||
| # If a session already exists {{{
 | ||
| if-shell -b 'tmux has-session' {
 | ||
| 
 | ||
| 	# Window for system update
 | ||
| 	display-message "Create a new window for system update"
 | ||
| 	new-window -nAPT 'sudo apt update ; sudo aptitude full-upgrade ; sudo aptitude clean ; exec ${SHELL}'
 | ||
| }
 | ||
| # }}}
 |