Last active
September 28, 2018 10:30
-
-
Save fredleger/190933fb57e97d692d0993e369a3eac3 to your computer and use it in GitHub Desktop.
my-byobu
This file contains 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
#!/bin/sh | |
[ -d $HOME/.byobu ] || mkdir $HOME/.byobu | |
cat <<EOF > $HOME/.byobu/status | |
# Screen has two status lines, with 4 quadrants for status | |
screen_upper_left="color" | |
screen_upper_right="color whoami hostname ip_address menu" | |
screen_lower_left="color logo distro release #arch session" | |
screen_lower_right="color network #disk_io custom #entropy raid reboot_required updates_available #apport #services #mail users uptime #ec2_cost #rcs_cost #fan_speed #cpu_temp battery wifi_quality #processes load_average cpu_count cpu_freq memory #swap #disk #time_utc date time" | |
# Tmux has one status line, with 2 halves for status | |
tmux_left=" #logo #distro #release #arch session" | |
# You can have as many tmux right lines below here, and cycle through them using Shift-F5 | |
tmux_right=" #network #disk_io #custom #entropy #raid #reboot_required #updates_available #apport #services #mail #users #uptime #ec2_cost #rcs_cost #fan_speed #cpu_temp #battery #wifi_quality #processes load_average #cpu_count #cpu_freq #memory #swap #disk whoami hostname ip_address #time_utc #date time" | |
EOF | |
cat <<EOF > $HOME/.byobu/color | |
BACKGROUND=k | |
FOREGROUND=w | |
MONOCHROME=1 | |
EOF | |
cat <<EOF > $HOME/.byobu/keybindings.tmux | |
unbind-key -n C-a | |
set -g prefix ^A | |
set -g prefix2 ^A | |
bind a send-prefix | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment