Initial commit
This commit is contained in:
commit
366a2bcdbc
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 Cory Alexander Balaton
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
26
colors
Executable file
26
colors
Executable file
@ -0,0 +1,26 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
bg_color="#292424"
|
||||
selection_background="#3c3737"
|
||||
selection_foreground="#e6e1e1"
|
||||
|
||||
black="#292424"
|
||||
red="#f95353"
|
||||
green="#3eb82e"
|
||||
yellow="#ffdf80"
|
||||
blue="#6599cd"
|
||||
purple="#b390d5"
|
||||
cyan="#51e1bd"
|
||||
white="#e6e1e1"
|
||||
|
||||
bright_black="#504545"
|
||||
bright_red="#d04949"
|
||||
bright_green="#258e25"
|
||||
bright_yellow="#e6ac00"
|
||||
bright_blue="#628cb7"
|
||||
bright_purple="#ba7ece"
|
||||
bright_cyan="#1eae8a"
|
||||
bright_white="#dbd7d7"
|
||||
|
||||
light_grey="#666161"
|
||||
dark_grey="#363030"
|
||||
88
epsilon.tmux
Executable file
88
epsilon.tmux
Executable file
@ -0,0 +1,88 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
. $(dirname "$0")/colors
|
||||
|
||||
|
||||
get_tmux_option() {
|
||||
local option=$1
|
||||
local default_value=$2
|
||||
local option_value="$(tmux show-option -gqv "$option")"
|
||||
if [ -n "$option_value" ]; then
|
||||
echo "$option_value"
|
||||
else
|
||||
echo "$default_value"
|
||||
fi
|
||||
}
|
||||
|
||||
set() {
|
||||
local option=$1
|
||||
local value=$2
|
||||
tmux set-option -gq "$option" "$value"
|
||||
}
|
||||
|
||||
setw() {
|
||||
local option=$1
|
||||
local value=$2
|
||||
tmux set-window-option -gq "$option" "$value"
|
||||
}
|
||||
|
||||
main() {
|
||||
#local theme
|
||||
#theme="$(get_tmux_option "@epsilon_variant" "main")"
|
||||
|
||||
background=$blue
|
||||
status_color=$dark_grey
|
||||
|
||||
window_status_color=$dark_grey
|
||||
window_status_active_color=$white
|
||||
|
||||
message_background_color=$purple
|
||||
message_color=$black
|
||||
|
||||
pane_color=$blue
|
||||
pane_active_color=$bright_white
|
||||
|
||||
active_tab_foreground=$bright_white
|
||||
active_tab_background=$black
|
||||
inactive_tab_foreground=$bright_black
|
||||
inactive_tab_background=$black
|
||||
|
||||
# Status
|
||||
set "status" "on"
|
||||
set "monitor-activity" "on"
|
||||
set "status-justify" "left"
|
||||
set "status-position" "top"
|
||||
set "status-left-length" "100"
|
||||
set "status-right-length" "100"
|
||||
set "status-style" "fg=$status_color,bg=$background,bold"
|
||||
|
||||
epsilon_time_format=$(get_tmux_option "@time_format" "%R")
|
||||
epsilon_date_format=$(get_tmux_option "@date_format" "%d/%m/%Y")
|
||||
|
||||
datetime_block="${epsilon_time_format} ${epsilon_date_format}"
|
||||
host_block="#h "
|
||||
set "status-right" "${datetime_block} ${host_block}"
|
||||
set "status-left" "#[fg=$status_color,bg=$background] [#S] "
|
||||
|
||||
# Windows
|
||||
set "window-status-format" "#I: #W "
|
||||
set "window-status-current-format" "#I: #W "
|
||||
|
||||
setw "window-status-separator" "|"
|
||||
setw "window-status-style" "fg=$window_status_color,bg=$background"
|
||||
setw "window-status-current-style" "fg=$window_status_active_color,bg=$background"
|
||||
setw "window-status-activity-style" "fg=$background,bg=$window_status_color"
|
||||
|
||||
# Pane
|
||||
set "pane-border-style" "fg=$inactive_tab_foreground,bg=$inactive_tab_background"
|
||||
set "pane-active-border-style" "fg=$active_tab_foreground,bg=$active_tab_background"
|
||||
set "display-panes-colour" "$pane_color"
|
||||
set "display-panes-active-colour" "$pane_active_color"
|
||||
|
||||
# Message
|
||||
set "message-style" "fg=$message_color,bg=$message_background_color"
|
||||
set "message-command-style" "fg=$message_color,bg=$message_background_color" # vi command mode
|
||||
set "mode-style" "fg=$message_color,bg=$message_background_color"
|
||||
}
|
||||
|
||||
main
|
||||
Loading…
Reference in New Issue
Block a user