Last active
          November 29, 2020 19:00 
        
      - 
      
- 
        Save yzdann/a76ea51a269d748813f587d80dfa299c to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | TMUX_WINDOW_ID=$(wmctrl -l | grep -i tmux | grep -i konsole | awk "/$rx/"'{print $1}' | head -1 ) | |
| # activate the window terminal with tmux if existed | |
| if [[ ! -z "$TMUX_WINDOW_ID" ]]; then | |
| wmctrl -i -a $TMUX_WINDOW_ID | |
| else | |
| konsole -e tmux | |
| fi | |
| tmux new-window | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment