Skip to content

Commit

Permalink
feat: Improve tmux theme and include other dotfiles
Browse files Browse the repository at this point in the history
Signed-off-by: Arturo Volpe <[email protected]>
  • Loading branch information
aVolpe committed Aug 29, 2023
1 parent 35414e6 commit c3bf59c
Show file tree
Hide file tree
Showing 5 changed files with 382 additions and 72 deletions.
16 changes: 10 additions & 6 deletions .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ set -g @tpm_plugins ' \



SPACEROOT="df -h / | tail -n 1 | awk '{ print $4 }'"

set -g prefix C-s

Expand Down Expand Up @@ -91,6 +90,9 @@ setw -g mode-style fg=default,bg=colour238
# }
# The panes {

SPACEROOT="df -h / | tail -n 1 | awk '{ print \"\" $4 }'"
WIFI="networksetup -getairportnetwork en0 | awk '{print \"\" $4}'"

BG=default
SBG=colour240
# Variables
Expand All @@ -109,9 +111,9 @@ RIGTH=""
#RIGTH="$RIGTH#[fg=colour237,bg=colour239,bold]$SEP"
#RIGTH="$RIGTH#[fg=colour239,bg=colour237,bold]$SEP"
RIGTH="$RIGTH#[fg=colour243,bg=$BG,bold]$SEP"
RIGTH="$RIGTH#[fg=colour234,bg=colour243,bold] %d/%m "
RIGTH="$RIGTH#[fg=colour234,bg=colour243,bold]"
RIGTH="$RIGTH#[fg=colour245,bg=colour243,bold]$SEP"
RIGTH="$RIGTH#[fg=colour234,bg=colour245,bold] %H:%M:%S "
RIGTH="$RIGTH#[fg=colour234,bg=colour245,bold] %d/%m %H:%M:%S "

UP_ARROW=""
DOWN_ARROW=""
Expand All @@ -122,9 +124,11 @@ LEFT=""
#LEFT="$LEFT#[fg=colour234,bg=colour245,bold] $UP_ARROW #{upload_speed} $DOWN_ARROW #{download_speed}."
#LEFT="$LEFT#[fg=colour265,bg=colour243,bold]$SEPL"
LEFT="$LEFT#[fg=colour236,bg=colour243,bold] #($SPACEROOT) "
LEFT="$LEFT#[fg=colour243,bg=$BG]$SEPL"
#LEFT="$LEFT#[fg=colour245,bg=colour237,bold] #($SPACEROOT) "
#LEFT="$LEFT#[fg=colour237,bg=colour239,bold]$SEPL"
LEFT="$LEFT#[fg=colour243,bg=colour240]$SEPL"
LEFT="$LEFT#[fg=colour245,bg=colour240,bold] #($WIFI) "
LEFT="$LEFT#[fg=colour240,bg=colour239,bold]$SEPL "
LEFT="$LEFT#[fg=colour239,bg=$BG,bold]$SEPL"
#LEFT="$LEFT#[fg=colour239,bg=$BG,bold]$SEPL"

set -g status-position bottom
set -g status-style fg=$BG,bg=$BG
Expand Down
33 changes: 33 additions & 0 deletions global_gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This is Git's per-user configuration file.
[user]
name = Arturo Volpe
email = [email protected]
[alias]
wdiff = diff
git = !exec git
quick-stats = ! /usr/local/bin/git-quick-stats
root = rev-parse --show-toplevel
[diff]
renameLimit = 19493
[core]
autocrlf = false
excludesfile = /Users/arturovolpe/.gitignore_global
editor = nvim
[commit]
gpgsign = true
[tag]
forceSignAnnotated = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[protocol]
version = 2
[pull]
rebase = false
[gpg]
program = gpg
[url "[email protected]:"]
insteadOf = http://github.com/
insteadOf = https://github.com/
61 changes: 0 additions & 61 deletions matterhon_notification.sh

This file was deleted.

256 changes: 256 additions & 0 deletions matterhorn_config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,256 @@
# This is a sample configuration file for Matterhorn. This file shows
# all available configuration options and their defaults. For any
# options that have filesystem path values (e.g. urlOpenCommand), home
# directory expansion will be done if "~" is found in the path.

[mattermost]
# Username. Optional. If missing, you'll be asked to provide one on
# startup.
user: avolpe

# Hostname: Optional. If missing, you'll be asked to provide one on
# startup.
#host:

# If the team setting is set, it must be the name of a team of which
# the user is a member. This is the team you'll automatically use when
# connecting and you'll bypass the team selection. If the setting is
# absent or isn't one of your teams, you'll be prompted for a choice of
# your teams.
#
# team: <team name>

# Server port. Optional; defaults to 443.
#
# port: 443

# Password command. Optional. If this and the password option are both
# missing or give the wrong password, you'll be prompted on startup.
#
# You can also just use
# pass: password
# but this is much less secure than supplying a command or being
# prompted interactively.
#
# For OS X, the built-in security command can be used to get a password
# from the OS X keychain. To make this work you'll need to put your
# Mattermost password into your keychain as follows:
#
# * Open the Keychain application (Applications -> Utilities -> Keychain
# Access)
# * Click the "login" keychain.
# * If necessary, click the unlock icon at the top-left corner of the
# window to unlock keychain access.
# * Click the "+" button at the bottom of the window.
# * Enter a keychain item name (e.g. "mattermost"), your Mattermost
# username, and your password.
# * Click "Add".
#
# Now the keychain item name can be used with the "security" command
# here:
#
# passcmd: security find-generic-password -s <password name> -w
#
# On Linux, there are a number of options. secret-tool is part of
# libsecret (in libsecret-tools on Ubuntu) and acts as a uniform
# interface to all password managers implementing the LibSecret D-Bus
# API (including kwallet and gnome-keyring). Assuming that you have
# stored a password using
#
# $ secret-tool store --label='matterhorn' matterhorn password`
#
# You can then set:
#
# passcmd: secret-tool lookup matterhorn password

# This optional setting controls how the client displays times. If it's
# absent, you get the default behavior ("%R"). If it's present but
# empty, that turns timestamps off. Otherwise its value is used as the
# time format string.
#
# The format string is that accepted by 'formatTime':
# https://hackage.haskell.org/package/time-1.6.0.1/docs/Data-Time-Format.html#v:formatTime
#
# timeFormat: %R

# This optional setting controls how the client displays dates. If it's
# absent, you get the default behavior ("%Y-%m-%d"). Otherwise its
# value is used as the time format string.
#
# The format string is that accepted by 'formatTime':
# https://hackage.haskell.org/package/time-1.6.0.1/docs/Data-Time-Format.html#v:formatTime
#
# dateFormat: %Y-%m-%d

# Theme name
# For now, the choices are
#
# builtin:dark (default)
# builtin:light
#
# theme: builtin:dark

# Theme customization file
# This setting is optional. If present, it must either be:
# * A relative path to a theme customization file. In this case
# the relative path is treated as relative to the location of the
# configuration file. For example, if the Matterhorn configuration
# file is at $HOME/.config/matterhorn/config.ini and this setting has
# the value "theme.ini", then Matterhorn will look for this file at
# $HOME/.config/matterhorn/theme.ini.
# * An absolute path to a theme customization file.
#
# themeCustomizationFile: /path/to/file

# Smart character pair insertion for "``", "**", and "__".
# Allowed values are True and False (case sensitive)
# Invalid values are ignored.
# Default is True
#
# smartbacktick = True

# Terminal bell control: ring the terminal bell whenever a new message
# arrives (for use with e.g. terminal multiplexers)
#
# Allowed values are True and False (case sensitive)
# Default is False
# activityBell = False

# Notification script control: run a notification script whenever a new
# message arrives. See the "notify" script in notification-scripts/ for
# an example Linux notification script.
#
activityNotifyCommand = $HOME/.scripts/matterhorn_notification.sh

# Background activity display: Matterhorn communicates with the
# Mattermost server using asynchronous background thread processing.
# This parameter can be used to enable a visual display of when and
# how much background activity is occurring. The 'ActiveCount' value
# displays the number of queued work requests to the background thread;
# there may be multiple server messages performed for each work request,
# so this value is just a relative indicator of the amount of work
# pending for processing by this thread.
#
# Allowed values are: Disabled, Active, ActiveCount
# Default is Disabled
# showBackgroundActivity = Disabled

# The command to use to open URLs found in chat messages.
# OS X:
urlOpenCommand = open
# Linux:
# urlOpenCommand = xdg-open

# This setting indicates whether the URL-opening command is interactive
# in the terminal. Set this to True if your urlOpenCommand is a terminal
# web browser. Set this to False otherwise.
# Default: False
# urlOpenCommandIsInteractive = False

# Whether to show a message rendering preview
# Default: False
# showMessagePreview = False

# Whether to show the channel list
# Default: True
# showChannelList = False

# How many days to keep a direct channel in the channel list after the
# last message.
# Default: 7
# directChannelExpirationDays = 14

# Whether to enable the spell checker if "aspell" is present on the
# system.
# Default: False
# enableAspell = False

# Name a specific Aspell dictionary to use. See "aspell dicts" for a
# list of available dictionaries on your system.
# Default: fall back to environment / locale
# aspellDictionary = "..."

# Force Matterhorn to use HTTP instead of HTTPS. This is mostly included
# for testing purposes; you really should not use this unless you're
# absolutely sure it's what you want, i.e., you run an HTTP server and
# you are aware that doing so means you have no transport security.
#
# unsafeUseUnauthenticatedConnection = False

# The width of the channel list (in columns).
#
# channelListWidth = 20

# The maximum size of the internal log buffer, in log entries. This
# buffer is initially flushed to the log file when logging starts.
# Matterhorn keeps these log entries around, discarding old entries to
# keep the buffer from exceeding this size.
#
# logMaxBufferSize = 200

# Whether to show indicators on edited messages that have not been
# edited recently.
# Default: True
#
# showOlderEdits = True

# Whether to show the indicator for users typing and to send the typing
# notifications to the server.
# Default: False
#
# showTypingIndicator = False

# Whether to hyperlink URLs in the terminal. When enabled, this means
# Matterhorn will emit special escape sequences to make URLs clickable.
# Some terminal emulators do not support this feature, and in some of
# those cases the program's output can be garbled so this setting is
# provided for that case.
# Default: True
#
# hyperlinkURLs = True

# The list of directories from which to load Kate XML syntax definitions
# for code block syntax highlighting. The syntax is a colon-separated
# list of paths, with the highest-precedence path appearing first.
#
# Optional. If omitted, this defaults to:
#
# USER_SYNTAX:BUNDLED_SYNTAX
#
# where USER_SYNTAX is a special path alias for
# ~/.config/matterhorn/syntax/ and BUNDLED_SYNTAX is a special path
# alias that refers to the path to XML files in the Matterhorn
# distribution relative to the 'matterhorn' binary.
#
# syntaxDirectories = /path1:/path2:/path3:...

# The CPU usage policy for Matterhorn.
#
# Valid values are "single" and "multiple". The default is "multiple".
# If set to "single", the application will be constrained to a single
# CPU. This mode can sometimes result in interface input latency. If set
# to "multiple", the application will use more than one CPU up to an
# application-defined reasonable maximum, or the number of CPUs on the
# host, whichever is smaller.
#
# cpuUsagePolicy = multiple

# The default attachment browser path. Optional.
#
# If this is specified and the directory at this path exists, the
# path will be used as the starting path of the attachment browser.
# If not specified or if the path does not exist, the current working
# directory of matterhorn process will be used as the starting path of
# the attachment browser.
#
# defaultAttachmentPath = /path/to/folder

[KEYBINDINGS]
#scroll-up = C-k
#scroll-down = C-j
invoke-editor = C-k, M-k
toggle-multiline = C-e, M-e
page-up = PgUp, C-u
page-down = PgDown, C-d
#-down = PgDown, C-d
focus-next-unread= C-a
Loading

0 comments on commit c3bf59c

Please sign in to comment.