Skip to content

Commit

Permalink
Add powerline directly from ubuntu repo and use it in tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIII committed Sep 5, 2018
1 parent 7191ac6 commit 9e3bbeb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
2018-09-05 DariusIII
* Chg: Add powerline directly from ubuntu repo and use it in tmux
* Chg: Update tmux.conf, add credit where credit is due
* Chg: Update tmux theme and remove powerline support
* Chg: Remove now unused packages folder
Expand Down
1 change: 1 addition & 0 deletions install_tmux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ sudo apt install -y pkg-config
sudo apt install -y libevent-dev
sudo apt install -y libncurses5-dev
sudo apt install -y fonts-powerline
sudo apt install -y powerline

rm -fr /tmp/tmux

Expand Down
21 changes: 6 additions & 15 deletions misc/update/tmux/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,16 @@ set -g status-left ""
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on

## Allows us to use C-a a <command> to send commands to a TMUX session inside
## another TMUX session
# bind-key a send-prefix # <<<<===DELETE?

# Activity monitoring
setw -g monitor-activity on
#set -g visual-activity on

# # Refresh the status bar every 5 seconds.
set -g status-interval 5 # default = 15 seconds

# Several examples of using a shell command in the status line <<<=== DELETE???
#set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)"
#set -g status-right "#[fg=yellow]#(free -m | grep 'Mem' | awk '{ print \"Ram Used: \"$3\" MB\";}') #[fg=yellow]#(free -m | grep 'Mem' | awk '{ print \"Ram Free: \"$4\" MB\";}') \
#[fg=yellow]#(free -m | grep 'Swap' | awk '{ print \"Swap Used: \"$3\" MB\";}') #[fg=yellow]#(uptime | cut -d ',' -f 2-)"
#set -g status-right "#[fg=yellow]#(free -m | grep '+' | awk '{ print \"Ram Used: \"$3\" MB, Ram Free: \"$4\" MB\";}')#(free -m | grep 'Swap' | awk '{ print \",Swap Used: \"$3\" MB\";}') #[fg=cyan,bold]%Y-%m-%d #(uptime)"
# Compact status line for free version 3.3.10
# Right status bar
set -g status-right "#[fg=yellow]#(free -h | grep 'Mem' | awk '{ print \"RAM Used: \"$3\", Cached: \"$6\", \";}')#(free -m | grep 'Swap' | awk '{ print \"Swapped: \"$3;}')M #[fg=cyan,bold] #(uptime | cut -d ',' -f 4-)"

#set-option -g status-right-length 200
#set -g status-right '#[fg=green][#[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default] #($HOME/bin/battery)#[fg=green]]'

# Highlight active window
set-window-option -g window-status-current-bg red

Expand Down Expand Up @@ -93,8 +81,8 @@ set -g status-fg colour137
set -g status-attr dim
set -g status-left ''
set -g status-right "#[fg=yellow]#(free -h | grep 'Mem' | awk '{ print \"RAM Used: \"$3\", Cached: \"$6\", \";}')#(free -m | grep 'Swap' | awk '{ print \"Swapped: \"$3;}')M #[fg=cyan,bold] #(uptime | cut -d ',' -f 4-)"
set -g status-right-length 250
set -g status-left-length 20
set -g status-right-length 200
set -g status-left-length 10

setw -g window-status-current-fg colour1
setw -g window-status-current-bg colour19
Expand All @@ -114,3 +102,6 @@ setw -g window-status-bell-bg colour1
set -g message-attr bold
set -g message-fg colour232
set -g message-bg colour16

# Add powerline to tmux
source '/usr/share/powerline/bindings/tmux/powerline.conf'

0 comments on commit 9e3bbeb

Please sign in to comment.