Skip to content

Commit

Permalink
Add fade_inactive option
Browse files Browse the repository at this point in the history
  • Loading branch information
ckyrouac committed Jan 10, 2024
1 parent 3607ef8 commit 5a56ca8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ set -g @onedark_date_format "%D"

These modifiers were taken from from [strftime manpage](http://man7.org/linux/man-pages/man3/strftime.3.html).

#### Fade inactive panes

By default text in inactive panes are faded. This can be toggled via the following option.

```
set -g @onedark_fade_inactive_panes "false"
```

### Installation with [Tmux Plugin Manager](https://github.com/tmux-plugins/tpm) (recommended)

Add plugin to the list of TPM plugins in `.tmux.conf`:
Expand Down
7 changes: 6 additions & 1 deletion tmux-onedark-theme.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ setw "window-status-activity-attr" "none"

setw "window-status-separator" ""

set "window-style" "fg=$onedark_comment_grey"
fade_inactive_panes=$(get "@onedark_fade_inactive_panes" "true")
if [ "$fade_inactive_panes" = "true" ]; then
set "window-style" "fg=$onedark_comment_grey"
else
set "window-style" "fg=$onedark_white"
fi
set "window-active-style" "fg=$onedark_white"

set "pane-border-fg" "$onedark_white"
Expand Down

0 comments on commit 5a56ca8

Please sign in to comment.