From aa90f402204c6225977f90787dadd6c497169b1e Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Fri, 24 Aug 2018 13:06:07 -0400 Subject: [PATCH] add byobu and welcome mail --- .byobu/.metadata_available | 0 .byobu/.screenrc | 0 .byobu/.tmux.conf | 5 ++ .byobu/backend | 1 + .byobu/color | 3 + .byobu/color.tmux | 4 + .byobu/datetime.tmux | 2 + .byobu/keybindings | 1 + .byobu/keybindings.tmux | 4 + .byobu/profile | 1 + .byobu/profile.tmux | 1 + .byobu/prompt | 3 + .byobu/status | 37 +++++++++ .byobu/statusrc | 78 +++++++++++++++++++ .byobu/windows | 0 .byobu/windows.tmux | 1 + .profile | 3 + .../1535005048.V902Ia2375bM697525.tilde:2, | 51 ++++++++++++ 18 files changed, 195 insertions(+) create mode 100644 .byobu/.metadata_available create mode 100644 .byobu/.screenrc create mode 100644 .byobu/.tmux.conf create mode 100644 .byobu/backend create mode 100644 .byobu/color create mode 100644 .byobu/color.tmux create mode 100644 .byobu/datetime.tmux create mode 100644 .byobu/keybindings create mode 100644 .byobu/keybindings.tmux create mode 100644 .byobu/profile create mode 100644 .byobu/profile.tmux create mode 100644 .byobu/prompt create mode 100644 .byobu/status create mode 100644 .byobu/statusrc create mode 100644 .byobu/windows create mode 100644 .byobu/windows.tmux create mode 100644 Maildir/new/1535005048.V902Ia2375bM697525.tilde:2, diff --git a/.byobu/.metadata_available b/.byobu/.metadata_available new file mode 100644 index 0000000..e69de29 diff --git a/.byobu/.screenrc b/.byobu/.screenrc new file mode 100644 index 0000000..e69de29 diff --git a/.byobu/.tmux.conf b/.byobu/.tmux.conf new file mode 100644 index 0000000..34c9829 --- /dev/null +++ b/.byobu/.tmux.conf @@ -0,0 +1,5 @@ +new -s tilde -n chat 'firejail weechat-curses'; +neww -n mail 'firejail mutt'; +neww -n shell; +send-keys -t ":2" byobu-info Enter; + diff --git a/.byobu/backend b/.byobu/backend new file mode 100644 index 0000000..ac0eb76 --- /dev/null +++ b/.byobu/backend @@ -0,0 +1 @@ +BYOBU_BACKEND=tmux diff --git a/.byobu/color b/.byobu/color new file mode 100644 index 0000000..1ee73ad --- /dev/null +++ b/.byobu/color @@ -0,0 +1,3 @@ +BACKGROUND=k +FOREGROUND=w +MONOCHROME=0 \ No newline at end of file diff --git a/.byobu/color.tmux b/.byobu/color.tmux new file mode 100644 index 0000000..4f55dc7 --- /dev/null +++ b/.byobu/color.tmux @@ -0,0 +1,4 @@ +BYOBU_DARK="\#333333" +BYOBU_LIGHT="\#EEEEEE" +BYOBU_ACCENT="\#75507B" +BYOBU_HIGHLIGHT="\#DD4814" diff --git a/.byobu/datetime.tmux b/.byobu/datetime.tmux new file mode 100644 index 0000000..7b888a7 --- /dev/null +++ b/.byobu/datetime.tmux @@ -0,0 +1,2 @@ +BYOBU_DATE="%Y-%m-%d " +BYOBU_TIME="%H:%M:%S" diff --git a/.byobu/keybindings b/.byobu/keybindings new file mode 100644 index 0000000..9d9bbdb --- /dev/null +++ b/.byobu/keybindings @@ -0,0 +1 @@ +source $BYOBU_PREFIX/share/byobu/keybindings/common diff --git a/.byobu/keybindings.tmux b/.byobu/keybindings.tmux new file mode 100644 index 0000000..eb3d92e --- /dev/null +++ b/.byobu/keybindings.tmux @@ -0,0 +1,4 @@ +unbind-key -n C-a +set -g prefix ^A +set -g prefix2 F12 +bind a send-prefix diff --git a/.byobu/profile b/.byobu/profile new file mode 100644 index 0000000..230ac0e --- /dev/null +++ b/.byobu/profile @@ -0,0 +1 @@ +source $BYOBU_PREFIX/share/byobu/profiles/common diff --git a/.byobu/profile.tmux b/.byobu/profile.tmux new file mode 100644 index 0000000..9ccca51 --- /dev/null +++ b/.byobu/profile.tmux @@ -0,0 +1 @@ +source $BYOBU_PREFIX/share/byobu/profiles/tmux diff --git a/.byobu/prompt b/.byobu/prompt new file mode 100644 index 0000000..c4a81b9 --- /dev/null +++ b/.byobu/prompt @@ -0,0 +1,3 @@ +[ -r /usr/share/byobu/profiles/bashrc ] && . /usr/share/byobu/profiles/bashrc #byobu-prompt# +byobu-info + diff --git a/.byobu/status b/.byobu/status new file mode 100644 index 0000000..ac9bd5d --- /dev/null +++ b/.byobu/status @@ -0,0 +1,37 @@ +# status - Byobu's default status enabled/disabled settings +# +# Override these in $BYOBU_CONFIG_DIR/status +# where BYOBU_CONFIG_DIR is XDG_CONFIG_HOME if defined, +# and $HOME/.byobu otherwise. +# +# Copyright (C) 2009-2011 Canonical Ltd. +# +# Authors: Dustin Kirkland +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Status beginning with '#' are disabled. + +# 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" +#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" +#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" +#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 whoami hostname ip_address #time_utc disk date time" diff --git a/.byobu/statusrc b/.byobu/statusrc new file mode 100644 index 0000000..472e45c --- /dev/null +++ b/.byobu/statusrc @@ -0,0 +1,78 @@ +# statusrc - Byobu's default status configurations +# +# Override these in $BYOBU_CONFIG_DIR/statusrc +# where BYOBU_CONFIG_DIR is XDG_CONFIG_HOME if defined, +# and $HOME/.byobu otherwise. +# +# Copyright (C) 2009-2011 Canonical Ltd. +# +# Authors: Dustin Kirkland +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Configurations that you can override; if you leave these commented out, +# Byobu will try to auto-detect them. + +# This should be auto-detected for most distro, but setting it here will save +# some call to lsb_release and the like. +#BYOBU_DISTRO=Ubuntu + +# Default: depends on the distro (which is either auto-detected, either set +# via $DISTRO) +#LOGO="\o/" + +# Abbreviate the release to N characters +# By default, this is disabled. But if you set RELEASE_ABBREVIATED=1 +# and your lsb_release is "precise", only "p" will be displayed +#RELEASE_ABBREVIATED=1 + +# Default: / +#MONITORED_DISK=/ + +# Minimum disk throughput that triggers the notification (in kB/s) +# Default: 50 +#DISK_IO_THRESHOLD=50 + +# Default: eth0 +#MONITORED_NETWORK=eth0 + +# Unit used for network throughput (either bits per second or bytes per second) +# Default: bits +#NETWORK_UNITS=bytes + +# Minimum network throughput that triggers the notification (in kbit/s) +# Default: 20 +#NETWORK_THRESHOLD=20 + +# You can add an additional source of temperature here +#MONITORED_TEMP=/proc/acpi/thermal_zone/THM0/temperature + +# Default: C +#TEMP=F + +#SERVICES="eucalyptus-nc|NC eucalyptus-cloud|CLC eucalyptus-walrus eucalyptus-cc|CC eucalyptus-sc|SC" + +#FAN=$(find /sys -type f -name fan1_input | head -n1) + +# You can set this to 1 to report your external/public ip address +# Default: 0 +#IP_EXTERNAL=0 + +# The users notification normally counts ssh sessions; set this configuration to '1' +# to instead count number of distinct users logged onto the system +# Default: 0 +#USERS_DISTINCT=0 + +# Set this to zero to hide seconds int the time display +# Default 1 +#TIME_SECONDS=0 diff --git a/.byobu/windows b/.byobu/windows new file mode 100644 index 0000000..e69de29 diff --git a/.byobu/windows.tmux b/.byobu/windows.tmux new file mode 100644 index 0000000..0e6d287 --- /dev/null +++ b/.byobu/windows.tmux @@ -0,0 +1 @@ +attach; diff --git a/.profile b/.profile index d89ea5a..7c6aab9 100644 --- a/.profile +++ b/.profile @@ -25,3 +25,6 @@ fi if [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH" fi + +_byobu_sourced=1 . /usr/bin/byobu-launch 2>/dev/null || true + diff --git a/Maildir/new/1535005048.V902Ia2375bM697525.tilde:2, b/Maildir/new/1535005048.V902Ia2375bM697525.tilde:2, new file mode 100644 index 0000000..0cb8252 --- /dev/null +++ b/Maildir/new/1535005048.V902Ia2375bM697525.tilde:2, @@ -0,0 +1,51 @@ +Received: by mail.tilde.team (Postfix, from userid 1000) + id 9AD9FBA022F; Thu, 23 Aug 2018 02:17:28 -0400 (EDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tilde.team; s=mail; + t=1535005048; bh=S5WXK9T/CeFCjB8PRLvtD1LL6FLg0nwAvQ026cayZiQ=; + h=Date:From:To:Subject:From; + b=AVR2lN3zEj1xn/545p1gCvwEa8cz5UALEn/ColnXLmP12a8zXPDP3VH3GMMkCf5zW + ybOhycyw1OwDwvH5u5lMDZfnyk+Yrk0dF9vAUYAfCkuL8L7DKKHfP+nAtAnV04LiJh + BzFTiGLyXZaPMLRWs/2rgpI1ItuKO4AUjaFcbkn4= +Date: Thu, 23 Aug 2018 02:17:28 -0400 +From: root@tilde.team +To: newuser +Subject: welcome! press enter to read me! +Message-ID: <20180823061728.GA11176@tilde.team> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +Content-Disposition: inline +User-Agent: Mutt/1.9.4 (2018-02-28) + +hey!, + +welcome to tilde.team! + +you made it! we've set you up with a 'byobu' session with the +following default tabs: + + - weechat for irc + - mutt for email + - a shell + +if you're reading this, you're in the mutt pane. have a look +at the status bar at the bottom. the current windows are shown +in the bottom left, with several system status symbols on the right. + +some of the most important keybinds are: + + - f2: open a new window/tab + - f3/f4: prev/next windows + - f6: disconnect from you byobu session + +press shift-f1 to see a more complete list of keybinds, +but these will get you wherever you need to go. + +if you need help, switch to the first window and ask in irc. + +also, if you know what you're doing and would rather use a different +terminal multiplexer, run byobu-disable to prevent it from launching on login. + +we look forward to seeing you around! welcome to the ~team! + +~tilde.team admins +