.tmux.conf 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. #
  2. # Powerline Double Magenta - Tmux Themepack
  3. # https://github.com/jimeh/tmux-themepack
  4. #
  5. # Inspired by vim-powerline: https://github.com/powerline/powerline
  6. #
  7. # Requires terminal to be using a powerline compatible font, find one here:
  8. # https://github.com/powerline/fonts
  9. #
  10. # Themepack format options
  11. set -goq @themepack-status-left-area-left-format "#S"
  12. set -goq @themepack-status-left-area-middle-format "#(whoami)"
  13. set -goq @themepack-status-left-area-right-format "#I:#P"
  14. set -goq @themepack-status-right-area-left-format "%H:%M:%S"
  15. set -goq @themepack-status-right-area-middle-format "%d-%b-%y"
  16. set -goq @themepack-status-right-area-right-format "#H"
  17. set -goq @themepack-window-status-current-format "#I:#W#F"
  18. set -goq @themepack-window-status-format "#I:#W#F"
  19. # Customizable prefixes and suffixes for @themepack-* format options
  20. set -goq @themepack-status-left-area-left-prefix ""
  21. set -goq @themepack-status-left-area-left-suffix ""
  22. set -goq @themepack-status-left-area-middle-prefix ""
  23. set -goq @themepack-status-left-area-middle-suffix ""
  24. set -goq @themepack-status-left-area-right-prefix ""
  25. set -goq @themepack-status-left-area-right-suffix ""
  26. set -goq @themepack-status-right-area-left-prefix ""
  27. set -goq @themepack-status-right-area-left-suffix ""
  28. set -goq @themepack-status-right-area-middle-prefix ""
  29. set -goq @themepack-status-right-area-middle-suffix ""
  30. set -goq @themepack-status-right-area-right-prefix ""
  31. set -goq @themepack-status-right-area-right-suffix ""
  32. set -goq @themepack-window-status-current-prefix ""
  33. set -goq @themepack-window-status-current-suffix ""
  34. set -goq @themepack-window-status-prefix ""
  35. set -goq @themepack-window-status-suffix ""
  36. # Apply prefixes and suffixes to @themepack-* format options
  37. set -gqF @themepack-status-left-area-left-format "#{@themepack-status-left-area-left-prefix}#{@themepack-status-left-area-left-format}#{@themepack-status-left-area-left-suffix}"
  38. set -gqF @themepack-status-left-area-middle-format "#{@themepack-status-left-area-middle-prefix}#{@themepack-status-left-area-middle-format}#{@themepack-status-left-area-middle-suffix}"
  39. set -gqF @themepack-status-left-area-right-format "#{@themepack-status-left-area-right-prefix}#{@themepack-status-left-area-right-format}#{@themepack-status-left-area-right-suffix}"
  40. set -gqF @themepack-status-right-area-left-format "#{@themepack-status-right-area-left-prefix}#{@themepack-status-right-area-left-format}#{@themepack-status-right-area-left-suffix}"
  41. set -gqF @themepack-status-right-area-middle-format "#{@themepack-status-right-area-middle-prefix}#{@themepack-status-right-area-middle-format}#{@themepack-status-right-area-middle-suffix}"
  42. set -gqF @themepack-status-right-area-right-format "#{@themepack-status-right-area-right-prefix}#{@themepack-status-right-area-right-format}#{@themepack-status-right-area-right-suffix}"
  43. set -gqF @themepack-window-status-current-format "#{@themepack-window-status-current-prefix}#{@themepack-window-status-current-format}#{@themepack-window-status-current-suffix}"
  44. set -gqF @themepack-window-status-format "#{@themepack-window-status-prefix}#{@themepack-window-status-format}#{@themepack-window-status-suffix}"
  45. # Powerline color options
  46. set -goq @powerline-color-main-1 colour13
  47. set -goq @powerline-color-main-2 colour14
  48. set -goq @powerline-color-main-3 colour11
  49. set -goq @powerline-color-black-1 black
  50. set -goq @powerline-color-grey-1 colour233
  51. set -goq @powerline-color-grey-2 colour235
  52. set -goq @powerline-color-grey-3 colour238
  53. set -goq @powerline-color-grey-4 colour240
  54. set -goq @powerline-color-grey-5 colour243
  55. set -goq @powerline-color-grey-6 colour245
  56. # Powerline Double Override
  57. set -goqF @powerline-status-right-area-right-bg "#{@powerline-color-main-1}"
  58. # Powerline options
  59. set -goqF @powerline-color-activity-1 "#{@powerline-color-grey-6}"
  60. set -goqF @powerline-status-bg "#{@powerline-color-grey-1}"
  61. set -goqF @powerline-status-fg "#{@powerline-color-grey-4}"
  62. set -goqF @powerline-status-left-area-left-bg "#{@powerline-color-main-1}"
  63. set -goqF @powerline-status-left-area-left-fg "#{@powerline-status-bg}"
  64. set -goqF @powerline-status-left-area-middle-bg "#{@powerline-status-fg}"
  65. set -goqF @powerline-status-left-area-middle-fg "#{@powerline-status-bg}"
  66. set -goqF @powerline-status-left-area-right-bg "#{@powerline-color-grey-2}"
  67. set -goqF @powerline-status-left-area-right-fg "#{@powerline-status-fg}"
  68. set -goqF @powerline-status-left-bg "#{@powerline-color-grey-1}"
  69. set -goqF @powerline-status-left-fg "#{@powerline-color-grey-5}"
  70. set -goqF @powerline-status-right-area-left-bg "#{@powerline-color-grey-2}"
  71. set -goqF @powerline-status-right-area-left-fg "#{@powerline-status-fg}"
  72. set -goqF @powerline-status-right-area-middle-bg "#{@powerline-status-fg}"
  73. set -goqF @powerline-status-right-area-middle-fg "#{@powerline-status-bg}"
  74. set -goqF @powerline-status-right-area-right-bg "#{@powerline-color-grey-6}"
  75. set -goqF @powerline-status-right-area-right-fg "#{@powerline-status-bg}"
  76. set -goqF @powerline-status-right-bg "#{@powerline-color-grey-1}"
  77. set -goqF @powerline-status-right-fg "#{@powerline-color-grey-5}"
  78. # Theme options
  79. set -goqF @theme-clock-mode-colour "#{@powerline-color-main-1}"
  80. set -goq @theme-clock-mode-style 24
  81. set -goqF @theme-display-panes-active-colour "#{@powerline-color-grey-6}"
  82. set -goqF @theme-display-panes-colour "#{@powerline-color-grey-1}"
  83. set -goqF @theme-message-bg "#{@powerline-color-main-1}"
  84. set -goqF @theme-message-command-bg "#{@powerline-color-main-1}"
  85. set -goqF @theme-message-command-fg "#{@powerline-color-black-1}"
  86. set -goqF @theme-message-fg "#{@powerline-color-black-1}"
  87. set -goqF @theme-mode-bg "#{@powerline-color-main-1}"
  88. set -goqF @theme-mode-fg "#{@powerline-color-black-1}"
  89. set -goq @theme-pane-active-border-bg default
  90. set -goqF @theme-pane-active-border-fg "#{@powerline-color-main-1}"
  91. set -goq @theme-pane-border-bg default
  92. set -goqF @theme-pane-border-fg "#{@powerline-color-grey-3}"
  93. set -goqF @theme-status-bg "#{@powerline-status-bg}"
  94. set -goqF @theme-status-fg "#{@powerline-status-fg}"
  95. set -goq @theme-status-interval 1
  96. set -goq @theme-status-justify centre
  97. set -goqF @theme-status-left "#[fg=#{@powerline-status-left-area-left-fg},bg=#{@powerline-status-left-area-left-bg},bold] #{@themepack-status-left-area-left-format} #[fg=#{@powerline-status-left-area-left-bg},bg=#{@powerline-status-left-area-middle-bg},nobold]>#[fg=#{@powerline-status-left-area-middle-fg},bg=#{@powerline-status-left-area-middle-bg}] #{@themepack-status-left-area-middle-format} #[fg=#{@powerline-status-left-area-middle-bg},bg=#{@powerline-status-left-area-right-bg}]>#[fg=#{@powerline-status-left-area-right-fg},bg=#{@powerline-status-left-area-right-bg}] #{@themepack-status-left-area-right-format} #[fg=#{@powerline-status-left-area-right-bg},bg=#{@theme-status-bg},nobold]>"
  98. set -goqF @theme-status-left-bg "#{@powerline-status-left-bg}"
  99. set -goqF @theme-status-left-fg "#{@powerline-status-left-fg}"
  100. set -goq @theme-status-left-length 40
  101. set -goqF @theme-status-right "#[fg=#{@powerline-status-right-area-left-bg},bg=#{@theme-status-bg}]<#[fg=#{@powerline-status-right-area-left-fg},bg=#{@powerline-status-right-area-left-bg}] #{@themepack-status-right-area-left-format} #[fg=#{@powerline-status-right-area-middle-bg},bg=#{@powerline-status-right-area-left-bg}]<#[fg=#{@powerline-status-right-area-middle-fg},bg=#{@powerline-status-right-area-middle-bg}] #{@themepack-status-right-area-middle-format} #[fg=#{@powerline-status-right-area-right-bg},bg=#{@powerline-status-right-area-middle-bg}]<#[fg=#{@powerline-status-right-area-right-fg},bg=#{@powerline-status-right-area-right-bg},bold] #{@themepack-status-right-area-right-format} "
  102. set -goqF @theme-status-right-bg "#{@powerline-status-right-bg}"
  103. set -goqF @theme-status-right-fg "#{@powerline-status-right-fg}"
  104. set -goq @theme-status-right-length 150
  105. set -goqF @theme-window-status-activity-bg "#{@theme-status-bg}"
  106. set -goqF @theme-window-status-activity-fg "#{@powerline-color-activity-1}"
  107. set -goq @theme-window-status-separator ""
  108. set -goqF @theme-window-status-current-bg "#{@powerline-color-black-1}"
  109. set -goqF @theme-window-status-current-fg "#{@powerline-color-main-2}"
  110. set -goqF @theme-window-status-format " #{@themepack-window-status-format} "
  111. set -goqF @theme-window-status-current-format "#[fg=#{@theme-status-bg},bg=#{@theme-window-status-current-bg}]<#[fg=#{@theme-window-status-current-fg},nobold] #{@themepack-window-status-current-format} #[fg=#{@theme-status-bg},bg=#{@theme-window-status-current-bg},nobold]<"
  112. # Customizable prefixes and suffixes for @theme-* format options
  113. set -goq @theme-status-left-prefix ""
  114. set -goq @theme-status-left-suffix ""
  115. set -goq @theme-status-right-prefix ""
  116. set -goq @theme-status-right-suffix ""
  117. set -goq @theme-window-status-current-prefix ""
  118. set -goq @theme-window-status-current-suffix ""
  119. set -goq @theme-window-status-prefix ""
  120. set -goq @theme-window-status-suffix ""
  121. # Apply prefixes and suffixes to @theme-* format options
  122. set -gqF @theme-status-left "#{@theme-status-left-prefix}#{@theme-status-left}#{@theme-status-left-suffix}"
  123. set -gqF @theme-status-right "#{@theme-status-right-prefix}#{@theme-status-right}#{@theme-status-right-suffix}"
  124. set -gqF @theme-window-status-current-format "#{@theme-window-status-current-prefix}#{@theme-window-status-current-format}#{@theme-window-status-current-suffix}"
  125. set -gqF @theme-window-status-format "#{@theme-window-status-prefix}#{@theme-window-status-format}#{@theme-window-status-suffix}"
  126. # Apply @theme-* options to Tmux
  127. set -gF display-panes-active-colour "#{@theme-display-panes-active-colour}"
  128. set -gF display-panes-colour "#{@theme-display-panes-colour}"
  129. set -gF message-command-style "fg=#{@theme-message-command-fg},bg=#{@theme-message-command-bg}"
  130. set -gF message-style "fg=#{@theme-message-fg},bg=#{@theme-message-bg}"
  131. set -gF status-interval "#{@theme-status-interval}"
  132. set -gF status-justify "#{@theme-status-justify}"
  133. set -gF status-left "#{@theme-status-left}"
  134. set -gF status-left-length "#{@theme-status-left-length}"
  135. set -gF status-left-style "fg=#{@theme-status-left-fg},bg=#{@theme-status-left-bg}"
  136. set -gF status-right "#{@theme-status-right}"
  137. set -gF status-right-length "#{@theme-status-right-length}"
  138. set -gF status-right-style "fg=#{@theme-status-right-fg},bg=#{@theme-status-right-bg}"
  139. set -gF status-style "fg=#{@theme-status-fg},bg=#{@theme-status-bg}"
  140. set -gwF clock-mode-colour "#{@theme-clock-mode-colour}"
  141. set -gwF clock-mode-style "#{@theme-clock-mode-style}"
  142. set -gwF mode-style "fg=#{@theme-mode-fg},bg=#{@theme-mode-bg}"
  143. set -gwF pane-active-border-style "fg=#{@theme-pane-active-border-fg},bg=#{@theme-pane-active-border-bg}"
  144. set -gwF pane-border-style "fg=#{@theme-pane-border-fg},bg=#{@theme-pane-border-bg}"
  145. set -gwF window-status-activity-style "fg=#{@theme-window-status-activity-fg},bg=#{@theme-window-status-activity-bg}"
  146. set -gwF window-status-current-format "#{@theme-window-status-current-format}"
  147. set -gwF window-status-current-style "fg=#{@theme-window-status-current-fg},bg=#{@theme-window-status-current-bg}"
  148. set -gwF window-status-format "#{@theme-window-status-format}"
  149. set -gwF window-status-separator "#{@theme-window-status-separator}"