From 94da98550bb98adc93cfc970ec19323b57d79367 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Fri, 3 Nov 2017 00:00:02 +0000 Subject: [PATCH] Adding new stuff --- .bash_aliases | 1 + .tmux.conf.local | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index a497513..5b966b9 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -157,3 +157,4 @@ alias omg2="killall plasmashell; plasmashell > /dev/null 2>&1 & disown" alias aliases="vim /home/viktor/.bash_aliases && source /home/viktor/.bash_aliases" # alias ghcirun="ghci --make $1; ./$1" +alias lip="ifconfig $(route -n | head -n 3 | tail -n 1 | awk '{print $8}') | grep inet | awk '{print \$2}'" diff --git a/.tmux.conf.local b/.tmux.conf.local index cbd5240..2ce93f3 100644 --- a/.tmux.conf.local +++ b/.tmux.conf.local @@ -98,7 +98,7 @@ tmux_conf_theme_window_status_bg='#080808' # dark gray tmux_conf_theme_window_status_attr='none' tmux_conf_theme_window_status_format='#I #W' #tmux_conf_theme_window_status_format='#{circled_window_index} #W' -#tmux_conf_theme_window_status_format='#I #W#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}' +# tmux_conf_theme_window_status_format='#I #W#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}' # window current status style # - built-in variables are: @@ -158,7 +158,9 @@ tmux_conf_theme_right_separator_sub='' # PowerlineSymbols.otf font # - #{username} # - #{username_ssh} tmux_conf_theme_status_left=' ❐ #S | ↑#{?uptime_d, #{uptime_d}d,}#{?uptime_h, #{uptime_h}h,}#{?uptime_m, #{uptime_m}m,} ' -tmux_conf_theme_status_right='#(curl ifconfig.co) #{prefix}#{pairing} #{?battery_status, #{battery_status},}#{?battery_bar, #{battery_bar},}#{?battery_percentage, #{battery_percentage},} , %R , %d %b | #{username}#{root} | #{hostname} ' +tmux_conf_theme_status_right="IP:#(ifconfig $(route -n | sed -n '3p' | awk '{print $8}') | grep 'inet ' | cut -d ' ' -f 10) , \ +DNS:#(echo $(cat /etc/resolv.conf | grep 'nameserver [0-9]' | awk '{print $2}')) , \ +Gateway:#(echo $(route -n | sed -n '3p' | awk '{print $2}')) #{prefix}#{pairing} #{?battery_status, #{battery_status},}#{?battery_bar, #{battery_bar},}#{?battery_percentage, #{battery_percentage},} , %R , %d %b | #{username}#{root} | #{hostname}" # status left style tmux_conf_theme_status_left_fg='#000000,#e4e4e4,#e4e4e4' # black, white , white @@ -167,7 +169,7 @@ tmux_conf_theme_status_left_attr='bold,none,none' # status right style tmux_conf_theme_status_right_fg='#8a8a8a,#e4e4e4,#000000' # light gray, white, black -tmux_conf_theme_status_right_bg='#080808,#d70000,#e4e4e4' # dark gray, red, white +tmux_conf_theme_status_right_bg='#080808,#d70000,#e4e4e4' # white, dark gray, red, white tmux_conf_theme_status_right_attr='none,none,bold' # pairing indicator