Restructure files
This commit is contained in:
@@ -1,157 +0,0 @@
|
||||
# ___ _____
|
||||
# / (_)___ /
|
||||
# / /| | |_ \
|
||||
# _ / / | |___) |
|
||||
# (_)_/ |_|____/
|
||||
#
|
||||
# ~ M. Thomas
|
||||
|
||||
# ============================== General Setup
|
||||
|
||||
# Set Mod Keys
|
||||
set $mod Mod4
|
||||
floating_modifier $mod
|
||||
|
||||
# Font for Window Titles
|
||||
font pango:Product Sans 10
|
||||
|
||||
# Remove title
|
||||
new_window 1pixel
|
||||
|
||||
for_window [class="^.*"] border pixel 0
|
||||
|
||||
# Colors
|
||||
set $text "#ffffff"
|
||||
set $red "#e06c75"
|
||||
set $termbg "#282c34"
|
||||
set $border "#666666"
|
||||
set $acc "#98C379"
|
||||
|
||||
# Class Border Backgr. Text Indic. Child_border
|
||||
client.focused $acc $termbg $text $border $border
|
||||
client.focused_inactive $acc $termbg $text $termbg $termbg
|
||||
client.unfocused $termbg $termbg $text $termbg $termbg
|
||||
client.urgent $red $termbg $text $red $red
|
||||
client.background $border
|
||||
|
||||
# i3-gaps
|
||||
gaps inner 6
|
||||
smart_gaps on
|
||||
|
||||
# ============================== Keybinds
|
||||
#Terminal
|
||||
bindsym $mod+Return exec --no-startup-id alacritty
|
||||
bindsym $mod+Ctrl+Return exec --no-startup-id xterm
|
||||
|
||||
# Config refresh
|
||||
bindsym $mod+Shift+c reload
|
||||
bindsym $mod+Shift+r restart
|
||||
|
||||
# Windows
|
||||
bindsym $mod+h focus left
|
||||
bindsym $mod+j focus down
|
||||
bindsym $mod+k focus up
|
||||
bindsym $mod+l focus right
|
||||
|
||||
bindsym $mod+Shift+h move left
|
||||
bindsym $mod+Shift+j move down
|
||||
bindsym $mod+Shift+k move up
|
||||
bindsym $mod+Shift+l move right
|
||||
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
#bindsym $mod+f fullscreen toggle
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
||||
bindsym $mod+s split v
|
||||
bindsym $mod+v split h
|
||||
|
||||
bindsym $mod+f layout toggle stacking splith
|
||||
|
||||
bindsym $mod+comma workspace prev
|
||||
bindsym $mod+period workspace next
|
||||
|
||||
# dmenu
|
||||
bindsym $mod+d exec "dmenu_run"
|
||||
|
||||
# Screenhot
|
||||
bindsym $mod+Shift+s exec "flameshot gui"
|
||||
|
||||
# Screen brightness with light
|
||||
bindsym XF86MonBrightnessUp exec light -A 5 # increase
|
||||
bindsym XF86MonBrightnessDown exec light -U 5 # decrease
|
||||
|
||||
# Volume with pactl
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +2%
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -2%
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||
|
||||
# Music Control with playerctl
|
||||
bindsym XF86AudioPlay exec playerctl play
|
||||
bindsym XF86AudioPause exec playerctl pause
|
||||
bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
|
||||
# Monitor control
|
||||
bindsym $mod+Ctrl+Left move workspace to output left
|
||||
bindsym $mod+Ctrl+Right move workspace to output right
|
||||
|
||||
bindsym $mod+Ctrl+h move workspace to output left
|
||||
bindsym $mod+Ctrl+l move workspace to output right
|
||||
|
||||
# Launch Applications
|
||||
bindsym $mod+e exec alacritty -e ranger
|
||||
|
||||
bindsym $mod+Ctrl+c exec google-calendar-dark
|
||||
bindsym $mod+Ctrl+d exec discord
|
||||
bindsym $mod+Ctrl+Shift+d exec pkill Discord
|
||||
bindsym $mod+Ctrl+f exec firefox-nightly
|
||||
bindsym $mod+Ctrl+m exec thunderbird
|
||||
bindsym $mod+Ctrl+n exec notion-app
|
||||
bindsym $mod+Ctrl+p exec pavucontrol
|
||||
bindsym $mod+Ctrl+s exec spotify
|
||||
bindsym $mod+Ctrl+t exec telegram-desktop
|
||||
|
||||
# Shutdown
|
||||
bindsym $mod+BackSpace exec "~/scripts/lock.sh"
|
||||
bindsym $mod+Shift+BackSpace exec "i3-nagbar -t warning -m 'Logout?' -B 'Yes!' 'i3-msg exit'"
|
||||
|
||||
# ======================================== Workspaces
|
||||
set $ws1 "1"
|
||||
set $ws2 "2"
|
||||
set $ws3 "3"
|
||||
set $ws4 "4"
|
||||
set $ws5 "5"
|
||||
set $ws6 "6"
|
||||
set $ws7 "7"
|
||||
set $ws8 "8"
|
||||
set $ws9 "9"
|
||||
set $ws10 "10"
|
||||
|
||||
# Move to workspace
|
||||
bindsym $mod+1 workspace number $ws1
|
||||
bindsym $mod+2 workspace number $ws2
|
||||
bindsym $mod+3 workspace number $ws3
|
||||
bindsym $mod+4 workspace number $ws4
|
||||
bindsym $mod+5 workspace number $ws5
|
||||
bindsym $mod+6 workspace number $ws6
|
||||
bindsym $mod+7 workspace number $ws7
|
||||
bindsym $mod+8 workspace number $ws8
|
||||
bindsym $mod+9 workspace number $ws9
|
||||
bindsym $mod+0 workspace number $ws10
|
||||
|
||||
# Move window to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace number $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace number $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace number $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace number $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace number $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace number $ws6
|
||||
bindsym $mod+Shift+7 move container to workspace number $ws7
|
||||
bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||
|
||||
# ============================== Startup
|
||||
exec ~/scripts/polybar.sh
|
||||
@@ -1,246 +0,0 @@
|
||||
# _ _
|
||||
# | | | |
|
||||
# _ __ ___ | |_ _| |__ __ _ _ __
|
||||
# | '_ \ / _ \| | | | | '_ \ / _` | '__|
|
||||
# | |_) | (_) | | |_| | |_) | (_| | |
|
||||
# | .__/ \___/|_|\__, |_.__/ \__,_|_|
|
||||
# | | __/ |
|
||||
# |_| |___/
|
||||
#
|
||||
# ~ M. Thomas
|
||||
|
||||
# vim:ft=dosini
|
||||
|
||||
# ======================================== COLORS
|
||||
[colors]
|
||||
background = #1C1B1D
|
||||
foreground = #ffffff
|
||||
foreground-alt = #999999
|
||||
|
||||
black = "#24272a"
|
||||
red = "#E06C75"
|
||||
green ="#98C379"
|
||||
yellow = "#E5C07B"
|
||||
blue = "#61AFEF"
|
||||
magenta = "#C678DD"
|
||||
cyan = "#56B6C2"
|
||||
white = "#D8D8D8"
|
||||
|
||||
clear = "#00000000"
|
||||
|
||||
urgent = ${colors.red}
|
||||
accent = ${colors.green}
|
||||
|
||||
# ======================================== BARS
|
||||
[bar/main]
|
||||
monitor = ${env:MONITOR}
|
||||
|
||||
height = 30
|
||||
width = 100%
|
||||
|
||||
padding-left = 3
|
||||
padding-right = 3
|
||||
|
||||
|
||||
module-margin-left = 5
|
||||
module-margin-center = 5
|
||||
|
||||
foreground = ${colors.foreground}
|
||||
background = ${colors.background}
|
||||
|
||||
fixed-center = true
|
||||
|
||||
line-size = 0
|
||||
|
||||
tray-position = right
|
||||
|
||||
font-0 = "Product Sans:pixelsize=10:weight=regular;2"
|
||||
font-1 = "Stick:pixelsize=13;2"
|
||||
font-2 = "Material Design Icons:size=10;3"
|
||||
|
||||
wm-restack = i3
|
||||
|
||||
modules-left = i3 spotify
|
||||
modules-center = date
|
||||
modules-right = volume sep
|
||||
|
||||
[bar/laptop]
|
||||
inherit = bar/main
|
||||
|
||||
modules-right = volume battery sep
|
||||
|
||||
# ======================================== MODULES
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
pin-workspaces = true
|
||||
wrapping-scroll = false
|
||||
format = <label-state> <label-mode>
|
||||
|
||||
ws-icon-0 = 1;一
|
||||
ws-icon-1 = 2;二
|
||||
ws-icon-2 = 3;三
|
||||
ws-icon-3 = 4;四
|
||||
ws-icon-4 = 5;五
|
||||
ws-icon-5 = 6;六
|
||||
ws-icon-6 = 7;七
|
||||
ws-icon-7 = 8;八
|
||||
ws-icon-8 = 9;九
|
||||
ws-icon-9 = 10;十
|
||||
|
||||
label-focused = "%icon%"
|
||||
label-focused-foreground = ${colors.foreground}
|
||||
label-focused-background = ${colors.background}
|
||||
label-focused-padding = 2
|
||||
|
||||
label-unfocused = "%icon%"
|
||||
label-unfocused-foreground = ${colors.foreground-alt}
|
||||
label-unfocused-background = ${colors.background}
|
||||
label-unfocused-padding = 2
|
||||
|
||||
label-visible = "%icon%"
|
||||
label-visible-padding = 2
|
||||
|
||||
label-urgent = "%icon%"
|
||||
label-urgent-foreground = ${colors.urgent}
|
||||
label-urgent-background = ${colors.background}
|
||||
label-urgent-padding = 2
|
||||
|
||||
label-mode = "%mode%"
|
||||
label-mode-padding = 2
|
||||
label-mode-foreground = ${colors.urgent}
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
label = %title%
|
||||
label-maxlen = 100
|
||||
label-underline = ${colors.accent}
|
||||
|
||||
[module/clock]
|
||||
type = internal/date
|
||||
label = %time%
|
||||
|
||||
time = %H:%M
|
||||
|
||||
format-prefix = " "
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
label = %date%
|
||||
|
||||
date = %A, %d %b %Y, %H:%M
|
||||
|
||||
#format-prefix = " "
|
||||
|
||||
[module/backlight]
|
||||
type = internal/backlight
|
||||
# ls -1 /sys/class/backlight
|
||||
card = amdgpu_bl0
|
||||
label = %percentage%%
|
||||
|
||||
format-prefix = " "
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
apdapter = ADP1
|
||||
|
||||
bar-capacity-width = 10
|
||||
bar-capacity-indicator =
|
||||
bar-capacity-fill = ━
|
||||
bar-capacity-empty = ━
|
||||
|
||||
bar-capacity-fill-foreground = ${colors.green}
|
||||
|
||||
format-discharging = <bar-capacity>
|
||||
label-discharging = %percentage%%
|
||||
|
||||
format-charging = <animation-charging> <bar-capacity>
|
||||
label-charging = %percentage%%
|
||||
|
||||
format-full = <bar-capacity>
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-framerate = 1000
|
||||
|
||||
[module/volume]
|
||||
type = internal/pulseaudio
|
||||
format-volume = <label-volume>
|
||||
#<bar-volume>
|
||||
|
||||
interval = 2
|
||||
|
||||
label-volume = %percentage%%
|
||||
format-volume-prefix = " "
|
||||
|
||||
bar-volume-width = 5
|
||||
bar-volume-gradient = false
|
||||
|
||||
bar-volume-indicator =
|
||||
|
||||
bar-volume-fill = ━
|
||||
bar-volume-fill-foreground = ${colors.blue}
|
||||
|
||||
bar-volume-empty = ━
|
||||
|
||||
click-right = pavucontrol
|
||||
|
||||
label-muted = Muted
|
||||
format-muted-prefix = " "
|
||||
format-muted-foreground = ${colors.urgent}
|
||||
|
||||
[module/spotify]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/scripts/song.sh 2>/dev/null || echo "Not running"
|
||||
interval = 1
|
||||
tail = true
|
||||
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.green}
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
|
||||
interval = 3
|
||||
format = <bar-load>
|
||||
|
||||
bar-load-indicator =
|
||||
bar-load-fill = ━
|
||||
bar-load-empty = ━
|
||||
|
||||
bar-load-fill-foreground = ${colors.cyan}
|
||||
|
||||
bar-load-width = 7
|
||||
|
||||
format-prefix = " "
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
|
||||
interval = 3
|
||||
format = <bar-used>
|
||||
|
||||
bar-used-indicator =
|
||||
bar-used-fill = ━
|
||||
bar-used-empty = ━
|
||||
|
||||
bar-used-fill-foreground = ${colors.magenta}
|
||||
|
||||
bar-used-width = 7
|
||||
|
||||
format-prefix = " "
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = wlo1
|
||||
interval = 3.0
|
||||
|
||||
format-connected = <label-connected>
|
||||
format-connected-prefix = " "
|
||||
label-connected = %essid%
|
||||
|
||||
format-disconnected = " No Connection"
|
||||
|
||||
[module/sep]
|
||||
type = custom/text
|
||||
content = |
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
case "$1" in
|
||||
--popup)
|
||||
notify-send "CPU time (%)" "$(ps axch -o cmd:10,pcpu k -pcpu | head | awk '$0=$0"%"' )"
|
||||
;;
|
||||
*)
|
||||
echo "$(grep 'cpu ' /proc/stat | awk '{cpu_usage=($2+$4)*100/($2+$4+$5)} END {printf "%0.2f%", cpu_usage}')"
|
||||
;;
|
||||
esac
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
case "$1" in
|
||||
--popup)
|
||||
notify-send "Memory (%)" "$(ps axch -o cmd:10,pmem k -pmem | head | awk '$0=$0"%"' )"
|
||||
;;
|
||||
*)
|
||||
echo "$(free -h --si | awk '/^Mem:/ {print $3 "/" $2}')"
|
||||
;;
|
||||
esac
|
||||
@@ -1,37 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
function scroll () {
|
||||
prefix="$1"
|
||||
scrolling="$2"
|
||||
temp="$(echo "$scrolling"| sed "s/^\(.\{20\}\)\(.*\)$/\1[\2]/"| sed "s/\[ *\]$//"| sed "s/\[.*\]$//")"
|
||||
suffix="$3"
|
||||
if [ "$(echo -n $scrolling |wc -c)" -gt 20 ]; then
|
||||
echo "$prefix%{T7}$temp%{T-}$suffix"
|
||||
sleep 0.5
|
||||
|
||||
zscroll -l 20 \
|
||||
--delay 0.2 \
|
||||
--before-text "$prefix%{T7}" \
|
||||
--after-text "%{T-}$suffix" \
|
||||
--scroll-padding " " \
|
||||
--update-check true "echo '$(get_title)'" &
|
||||
|
||||
wait
|
||||
else
|
||||
echo "$prefix%{T8} $temp %{T-}$suffix"
|
||||
fi
|
||||
} #
|
||||
|
||||
function get_artist () {
|
||||
echo "$(playerctl -p spotify metadata --format "{{ artist }}"| sed -e "s/[[(]....*[])]*//g" | sed "s/ *$//"| sed "s/^\(.\{20\}[^ ]*\)\(.*\)$/\1[\2]/"| sed "s/\[ *\]$//"| sed "s/\[.*\]$/.../")"
|
||||
} #
|
||||
|
||||
function get_title () {
|
||||
echo "$(playerctl -p spotify metadata --format "{{title}}" | sed 's/'\''/\\'\''/g')"
|
||||
} #
|
||||
|
||||
[ ! -z "$(playerctl -p spotify status 2>/dev/null)" ] \
|
||||
&& artist=$(get_artist) \
|
||||
&& title=$(get_title) \
|
||||
&& ([ -z "$artist$title" ] && scroll "" "Spotify is not connected on this pc" "" || scroll "$artist - " "$title" "%{F-}" ) \
|
||||
|| exit 1
|
||||
@@ -1,141 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
import dbus
|
||||
import argparse
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument(
|
||||
'-t',
|
||||
'--trunclen',
|
||||
type=int,
|
||||
metavar='trunclen'
|
||||
)
|
||||
parser.add_argument(
|
||||
'-f',
|
||||
'--format',
|
||||
type=str,
|
||||
metavar='custom format',
|
||||
dest='custom_format'
|
||||
)
|
||||
parser.add_argument(
|
||||
'-p',
|
||||
'--playpause',
|
||||
type=str,
|
||||
metavar='play-pause indicator',
|
||||
dest='play_pause'
|
||||
)
|
||||
parser.add_argument(
|
||||
'--font',
|
||||
type=str,
|
||||
metavar='the index of the font to use for the main label',
|
||||
dest='font'
|
||||
)
|
||||
parser.add_argument(
|
||||
'--playpause-font',
|
||||
type=str,
|
||||
metavar='the index of the font to use to display the playpause indicator',
|
||||
dest='play_pause_font'
|
||||
)
|
||||
parser.add_argument(
|
||||
'-q',
|
||||
'--quiet',
|
||||
action='store_true',
|
||||
help="if set, don't show any output when the current song is paused",
|
||||
dest='quiet',
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
def fix_string(string):
|
||||
# corrects encoding for the python version used
|
||||
if sys.version_info.major == 3:
|
||||
return string
|
||||
else:
|
||||
return string.encode('utf-8')
|
||||
|
||||
|
||||
def truncate(name, trunclen):
|
||||
if len(name) > trunclen:
|
||||
name = name[:trunclen]
|
||||
name += '...'
|
||||
if ('(' in name) and (')' not in name):
|
||||
name += ')'
|
||||
return name
|
||||
|
||||
|
||||
|
||||
# Default parameters
|
||||
output = fix_string(u'{play_pause} {artist}: {song}')
|
||||
trunclen = 60
|
||||
play_pause = fix_string(u'\u25B6,\u23F8') # first character is play, second is paused
|
||||
|
||||
label_with_font = '%{{T{font}}}{label}%{{T-}}'
|
||||
font = args.font
|
||||
play_pause_font = args.play_pause_font
|
||||
|
||||
quiet = args.quiet
|
||||
|
||||
# parameters can be overwritten by args
|
||||
if args.trunclen is not None:
|
||||
trunclen = args.trunclen
|
||||
if args.custom_format is not None:
|
||||
output = args.custom_format
|
||||
if args.play_pause is not None:
|
||||
play_pause = args.play_pause
|
||||
|
||||
try:
|
||||
session_bus = dbus.SessionBus()
|
||||
spotify_bus = session_bus.get_object(
|
||||
'org.mpris.MediaPlayer2.spotify',
|
||||
'/org/mpris/MediaPlayer2'
|
||||
)
|
||||
|
||||
spotify_properties = dbus.Interface(
|
||||
spotify_bus,
|
||||
'org.freedesktop.DBus.Properties'
|
||||
)
|
||||
|
||||
metadata = spotify_properties.Get('org.mpris.MediaPlayer2.Player', 'Metadata')
|
||||
status = spotify_properties.Get('org.mpris.MediaPlayer2.Player', 'PlaybackStatus')
|
||||
|
||||
# Handle play/pause label
|
||||
|
||||
play_pause = play_pause.split(',')
|
||||
|
||||
if status == 'Playing':
|
||||
play_pause = play_pause[0]
|
||||
elif status == 'Paused':
|
||||
play_pause = play_pause[1]
|
||||
else:
|
||||
play_pause = str()
|
||||
|
||||
if play_pause_font:
|
||||
play_pause = label_with_font.format(font=play_pause_font, label=play_pause)
|
||||
|
||||
# Handle main label
|
||||
|
||||
artist = fix_string(metadata['xesam:artist'][0]) if metadata['xesam:artist'] else ''
|
||||
song = fix_string(metadata['xesam:title']) if metadata['xesam:title'] else ''
|
||||
album = fix_string(metadata['xesam:album']) if metadata['xesam:album'] else ''
|
||||
|
||||
if (quiet and status == 'Paused') or (not artist and not song and not album):
|
||||
print('')
|
||||
else:
|
||||
if font:
|
||||
artist = label_with_font.format(font=font, label=artist)
|
||||
song = label_with_font.format(font=font, label=song)
|
||||
album = label_with_font.format(font=font, label=album)
|
||||
|
||||
# Add 4 to trunclen to account for status symbol, spaces, and other padding characters
|
||||
print(truncate(output.format(artist=artist,
|
||||
song=song,
|
||||
play_pause=play_pause,
|
||||
album=album), trunclen + 4))
|
||||
|
||||
except Exception as e:
|
||||
if isinstance(e, dbus.exceptions.DBusException):
|
||||
print('')
|
||||
else:
|
||||
print(e)
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "$(sensors | grep Tctl | head -1 | awk '{print $2}')"
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
if ! updates=$(yay -Qu 2> /dev/null | wc -l); then
|
||||
updates=0
|
||||
fi
|
||||
|
||||
if [ "$updates" -gt 0 ]; then
|
||||
echo "$updates"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
25
files/.tmux/nord-tmux/.editorconfig
Normal file
25
files/.tmux/nord-tmux/.editorconfig
Normal file
@@ -0,0 +1,25 @@
|
||||
# Copyright (C) 2017-present Arctic Ice Studio <development@arcticicestudio.com>
|
||||
# Copyright (C) 2017-present Sven Greb <development@svengreb.de>
|
||||
|
||||
# Project: Nord tmux
|
||||
# Repository: https://github.com/arcticicestudio/nord-tmux
|
||||
# License: MIT
|
||||
|
||||
# ++++++++++++++++++++++
|
||||
# + Base Configuration +
|
||||
# ++++++++++++++++++++++
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
max_line_length = 120
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
# +++++++++++++
|
||||
# + Languages +
|
||||
# +++++++++++++
|
||||
# +++ Markdown +++
|
||||
[*.{md,gfm}]
|
||||
trim_trailing_whitespace = false
|
||||
140
files/.tmux/nord-tmux/CHANGELOG.md
Normal file
140
files/.tmux/nord-tmux/CHANGELOG.md
Normal file
@@ -0,0 +1,140 @@
|
||||
<p align="center"><a href="https://www.nordtheme.com/ports/tmux" target="_blank"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-docs/develop/assets/images/ports/tmux/repository-hero.svg?sanitize=true"/></a></p>
|
||||
|
||||
<p align="center"><a href="https://github.com/arcticicestudio/nord-tmux/releases/latest"><img src="https://img.shields.io/github/release/arcticicestudio/nord-tmux.svg?style=flat-square&label=Release&logo=github&logoColor=eceff4&colorA=4c566a&colorB=88c0d0"/></a> <a href="https://www.nordtheme.com/docs/ports/tmux"><img src="https://img.shields.io/github/release/arcticicestudio/nord-tmux.svg?style=flat-square&label=Docs&colorA=4c566a&colorB=88c0d0&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI%2BCiAgICA8cGF0aCBmaWxsPSIjZDhkZWU5IiBkPSJNMTMuNzQ2IDIuODEzYS42Ny42NyAwIDAgMC0uNTU5LS4xMzNMOCAzLjg0OGwtNS4xODgtMS4xOGEuNjY5LjY2OSAwIDAgMC0uNTcuMTMzLjY3Ny42NzcgMCAwIDAtLjI0Mi41MzF2OC4xMzNjLS4wMDguMzIuMjEuNTk4LjUyLjY2OGw1LjMzMiAxLjE5OWguMjk2bDUuMzMyLTEuMmEuNjY4LjY2OCAwIDAgMCAuNTItLjY2N1YzLjMzMmEuNjU5LjY1OSAwIDAgMC0uMjU0LS41MnpNMy4zMzIgNC4xNjhsNCAuODk4djYuNzY2bC00LS44OTh6bTkuMzM2IDYuNzY2bC00IC44OThWNS4wNjZsNC0uODk4em0wIDAiLz4KPC9zdmc%2BCg%3D%3D"/></a></p>
|
||||
|
||||
<p align="center">Changelog for <a href="https://www.nordtheme.com/ports/tmux">Nord tmux</a> — An arctic, north-bluish clean and elegant <a href="https://tmux.github.io" target="_blank">tmux</a> color theme.</p>
|
||||
|
||||
<!--lint disable no-duplicate-headings-->
|
||||
|
||||
# 0.3.0
|
||||
|
||||
 [](https://github.com/arcticicestudio/nord-vim/projects/5) [](https://github.com/arcticicestudio/nord-vim/milestone/4)
|
||||
|
||||
## Features
|
||||
|
||||
**Nord Docs Transition** — #36 ⇄ #37 (⊶ 6101cf85)
|
||||
↠ Transferred all documentations, assets and from „Nord tmux“ to [Nord Docs][nord]
|
||||
Please see the [corresponding issue in the Nord Docs repository][nord-docs#153] to get an overview of what has changed for Nord tmux and what has been done to migrate to Nord Docs.
|
||||
|
||||
###### Landing Page
|
||||
|
||||
<p align="center"><a href="https://www.nordtheme.com/ports/tmux" target="_blank"><img src="https://user-images.githubusercontent.com/7836623/58762743-23bed700-8553-11e9-8094-dc82e8eea6bd.png" alt="Preview: Nord tmux Port Project Landing Page"/></a></p>
|
||||
|
||||
###### Landing Page Docs
|
||||
|
||||
<p align="center"><a href="https://www.nordtheme.com/docs/ports/tmux" target="_blank"><img src="https://user-images.githubusercontent.com/7836623/58762745-29b4b800-8553-11e9-9b2c-076577593a9c.png" alt="Preview: Nord tmux Docs Landing Page"/></a></p>
|
||||
|
||||
###### Installation & Activation Docs
|
||||
|
||||
<p align="center"><a href="https://www.nordtheme.com/docs/ports/tmux/installation" target="_blank"><img src="https://user-images.githubusercontent.com/7836623/58762754-3f29e200-8553-11e9-88ae-336f7a1ed999.png" alt="Preview: Nord tmux Installation & Activation Docs Page"/></a></p>
|
||||
|
||||
###### Configuration Docs
|
||||
|
||||
<p align="center"><a href="https://www.nordtheme.com/docs/ports/tmux/configuration" target="_blank"><img src="https://user-images.githubusercontent.com/7836623/58762760-451fc300-8553-11e9-861c-1a0925d20d66.png" alt="Preview: Nord tmux Configuration Docs Page"/></a></p>
|
||||
|
||||
###### Plugin Support Docs
|
||||
|
||||
<p align="center"><a href="https://www.nordtheme.com/docs/ports/tmux/customization" target="_blank"><img src="https://user-images.githubusercontent.com/7836623/58762761-4ea92b00-8553-11e9-929a-14dfd6690b36.png" alt="Preview: Nord tmux Plugin Support Docs Page"/></a></p>
|
||||
|
||||
**Patched Font Characters** — #5 ⇄ #11 (⊶ 0809657f) by [@petrhosek][gh-user-petrhosek]
|
||||
↠ Added a new theme configuration to [disable patched fonts for the default status content][nord-docs-config-font-no-patched] by setting the `@nord_tmux_no_patched_font` variable to `1`.
|
||||
It can be used facing rendering problems with incompatible terminals or fonts.
|
||||
|
||||
```sh
|
||||
set -g @nord_tmux_no_patched_font "1"
|
||||
```
|
||||
|
||||
<p align="center"><a href="https://www.nordtheme.com/docs/ports/tmux/configuration#patched-font-characters" target="_blank"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-docs/develop/src/assets/images/ports/tmux/config-no-patched-font.png"/></a></p>
|
||||
|
||||
**Optional Status Bar Content** — #7, #10 ⇄ #8, #12 (⊶ 27754979) by [@tsroten][gh-user-tsroten] and [@rgcr][gh-user-rgcr]
|
||||
↠ Added a new theme configuration to [disable the default predefined status bar content][nord-docs-config-default-content], allowing to customize the status content, e.g. adding other plugins or adjust the layout, by setting the `@nord_tmux_show_status_content` variable to `0`:
|
||||
|
||||
```sh
|
||||
set -g @nord_tmux_show_status_content "0"
|
||||
```
|
||||
|
||||
<p align="center"><a href="https://www.nordtheme.com/docs/ports/tmux/configuration#default-status-bar-content" target="_blank"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-docs/develop/src/assets/images/ports/tmux/config-no-status-bar-content.png"/></a></p>
|
||||
|
||||
## Improvements
|
||||
|
||||
**Respect User's Status Bar Positioning** — #13 ⇄ #14 (⊶ ee5542c5) by [@drzel][gh-user-drzel]
|
||||
↠ Removed the `status-position` property in order to respect the user's preferred status bar positioning configuration instead of overriding it.
|
||||
|
||||
**More Spacing** — #16 (⊶ 2da9466c) by [@dylnmc][gh-user-dylnmc]
|
||||
↠ Added a space character to the first and last status bar element in order to improve the visual appearance to make it look not so squeezed together.
|
||||
|
||||
<p align="center"><p>Before</p>
|
||||
|
||||
<p align="center"><img src="https://user-images.githubusercontent.com/7635158/32998484-6a5ccc88-cd69-11e7-87bd-7b947c977fd1.png"/></p>
|
||||
|
||||
<p align="center"><p>After</p>
|
||||
|
||||
<p align="center"><img src="https://user-images.githubusercontent.com/7635158/32998486-6e7240a0-cd69-11e7-8ef1-b3b2d69fea2c.png"/></p>
|
||||
|
||||
## Bug Fixes
|
||||
|
||||
### Documentation
|
||||
|
||||
**Typo In `source-file` Command** — #32 (⊶ 72b0b3fb) by [@rememberYou][gh-user-rememberyou]
|
||||
↠ Fixed a typo in the README for the `source-file` command.
|
||||
|
||||
## Tasks
|
||||
|
||||
### Documentation
|
||||
|
||||
**More Spacing** — #16 (⊶ 2da9466c) by [@dylnmc][gh-user-dylnmc]
|
||||
↠ Added a space character to the first and last status bar element in order to improve the visual appearance to make it look not so squeezed together.
|
||||
|
||||
**MIT License** — #19 ⇄ #20 (⊶ 4d39639a)
|
||||
↠ Adapted to the MIT license migration of the Nord project. Detailed information can be found in the main task ticket [arcticicestudio/nord#55][].
|
||||
|
||||
# 0.2.0
|
||||
|
||||
_2017-04-22_
|
||||
|
||||
## Features
|
||||
|
||||
### Plugin Support
|
||||
|
||||
❯ Implemented support for the [tmux-prefix-highlight](https://github.com/tmux-plugins/tmux-prefix-highlight) _prefix_- and `copy-mode` status indicator. (@kepbod, #3, 166c8956)
|
||||
|
||||
<p align="center"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-tmux/develop/src/assets/scrot-plugin-support-tmux-prefix-highlight.png"/><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-tmux/develop/src/assets/scrot-plugin-support-tmux-prefix-highlight-copy-mode.png"/></p>
|
||||
|
||||
# 0.1.1
|
||||
|
||||
_2017-04-21_
|
||||
|
||||
## Bug Fixes
|
||||
|
||||
❯ Fixed the plugin to be not loadable due to the missing `#!/usr/bin/env bash` hashbang and `+x` permission flag for the plugin loader [`nord.tmux`](https://github.com/arcticicestudio/nord-tmux/blob/develop/nord.tmux) which caused `tpm` to exit with code `126`. (@arcticicestudio, #4, c049da5e)
|
||||
|
||||
# 0.1.0
|
||||
|
||||
_2017-04-20_
|
||||
|
||||
## Features
|
||||
|
||||
Detailed information about features and install instructions can be found in the [README](https://github.com/arcticicestudio/nord-tmux/blob/develop/README.md#installation) and in the [project wiki](https://github.com/arcticicestudio/nord-tmux/wiki).
|
||||
|
||||
❯ Implemented the main color theme file [`nord.conf`](https://github.com/arcticicestudio/nord-tmux/blob/develop/src/nord.conf). (@arcticicestudio, #1, e759aedc)
|
||||
|
||||
<p align="center"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-tmux/develop/src/assets/scrot-top.png"/></p>
|
||||
|
||||
❯ Implemented the [`tpm`](https://github.com/tmux-plugins/tpm) plugin loader [`nord.tmux`](https://github.com/arcticicestudio/nord-tmux/blob/develop/nord.tmux). (@arcticicestudio, #2, e58b52e9)
|
||||
|
||||
# 0.0.0
|
||||
|
||||
_2016-04-20_
|
||||
❯ **Project Initialization**
|
||||
|
||||
[arcticicestudio/nord#55]: https://github.com/arcticicestudio/nord/issues/55
|
||||
[gh-user-drzel]: https://github.com/drzel
|
||||
[gh-user-dylnmc]: https://github.com/dylnmc
|
||||
[gh-user-petrhosek]: https://github.com/petrhosek
|
||||
[gh-user-rememberyou]: https://github.com/rememberYou
|
||||
[gh-user-rgcr]: https://github.com/rgcr
|
||||
[gh-user-tsroten]: https://github.com/tsroten
|
||||
[nord-docs-config-default-content]: https://www.nordtheme.com/docs/ports/tmux/configuration#default-status-bar-content
|
||||
[nord-docs-config-font-no-patched]: https://www.nordtheme.com/docs/ports/tmux/configuration#patched-font-characters
|
||||
[nord-docs#153]: https://github.com/arcticicestudio/nord-docs/pull/153
|
||||
[nord]: https://www.nordtheme.com
|
||||
22
files/.tmux/nord-tmux/LICENSE.md
Normal file
22
files/.tmux/nord-tmux/LICENSE.md
Normal file
@@ -0,0 +1,22 @@
|
||||
MIT License (MIT)
|
||||
|
||||
Copyright (C) 2017-present Arctic Ice Studio <development@arcticicestudio.com> (https://www.arcticicestudio.com)
|
||||
Copyright (C) 2017-present Sven Greb <development@svengreb.de> (https://www.svengreb.de)
|
||||
|
||||
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.
|
||||
91
files/.tmux/nord-tmux/README.md
Normal file
91
files/.tmux/nord-tmux/README.md
Normal file
@@ -0,0 +1,91 @@
|
||||
<p align="center"><a href="https://www.nordtheme.com/ports/tmux" target="_blank"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-docs/develop/assets/images/ports/tmux/repository-hero.svg?sanitize=true"/></a></p>
|
||||
|
||||
<p align="center"><a href="https://github.com/arcticicestudio/nord-tmux/releases/latest" target="_blank"><img src="https://img.shields.io/github/release/arcticicestudio/nord-tmux.svg?style=flat-square&label=Release&logo=github&logoColor=eceff4&colorA=4c566a&colorB=88c0d0"/></a> <a href="https://www.nordtheme.com/docs/ports/tmux"><img src="https://img.shields.io/github/release/arcticicestudio/nord-tmux.svg?style=flat-square&label=Docs&colorA=4c566a&colorB=88c0d0&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI%2BCiAgICA8cGF0aCBmaWxsPSIjZDhkZWU5IiBkPSJNMTMuNzQ2IDIuODEzYS42Ny42NyAwIDAgMC0uNTU5LS4xMzNMOCAzLjg0OGwtNS4xODgtMS4xOGEuNjY5LjY2OSAwIDAgMC0uNTcuMTMzLjY3Ny42NzcgMCAwIDAtLjI0Mi41MzF2OC4xMzNjLS4wMDguMzIuMjEuNTk4LjUyLjY2OGw1LjMzMiAxLjE5OWguMjk2bDUuMzMyLTEuMmEuNjY4LjY2OCAwIDAgMCAuNTItLjY2N1YzLjMzMmEuNjU5LjY1OSAwIDAgMC0uMjU0LS41MnpNMy4zMzIgNC4xNjhsNCAuODk4djYuNzY2bC00LS44OTh6bTkuMzM2IDYuNzY2bC00IC44OThWNS4wNjZsNC0uODk4em0wIDAiLz4KPC9zdmc%2BCg%3D%3D"/></a> <a href="https://github.com/arcticicestudio/nord-tmux/blob/develop/CHANGELOG.md" target="_blank"><img src="https://img.shields.io/github/release/arcticicestudio/nord-tmux.svg?style=flat-square&label=Changelog&logo=github&logoColor=eceff4&colorA=4c566a&colorB=88c0d0"/></a></p>
|
||||
|
||||
<p align="center"><a href="https://github.com/arcticicestudio/styleguide-markdown/releases/latest" target="_blank"><img src="https://img.shields.io/github/release/arcticicestudio/styleguide-markdown.svg?style=flat-square&label=Markdown%20Style%20Guide&colorA=4c566a&colorB=88c0d0&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzOSIgaGVpZ2h0PSIzOSIgdmlld0JveD0iMCAwIDM5IDM5Ij48cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiNEOERFRTkiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMS41IDEuNWgzNnYzNmgtMzZ6Ii8%2BPHBhdGggZmlsbD0iI0Q4REVFOSIgZD0iTTIwLjY4MyAyNS42NTVsNS44NzItMTMuNDhoLjU2Nmw1Ljg3MyAxMy40OGgtMS45OTZsLTQuMTU5LTEwLjA1Ni00LjE2MSAxMC4wNTZoLTEuOTk1em0tMi42OTYgMGwtMTMuNDgtNS44NzJ2LS41NjZsMTMuNDgtNS44NzJ2MS45OTVMNy45MzEgMTkuNWwxMC4wNTYgNC4xNnoiLz48L3N2Zz4%3D"/></a> <a href="https://github.com/arcticicestudio/styleguide-git/releases/latest" target="_blank"><img src="https://img.shields.io/github/release/arcticicestudio/styleguide-git.svg?style=flat-square&label=Git%20Style%20Guide&logoColor=eceff4&colorA=4c566a&colorB=88c0d0&logo=git"/></a></p>
|
||||
|
||||
<p align="center">An arctic, north-bluish clean and elegant <a href="https://tmux.github.io" target="_blank">tmux</a> color theme.</p>
|
||||
|
||||
<p align="center">Designed for a fluent and clear workflow based on the <a href="https://www.nordtheme.com" target="_blank">Nord</a> color palette.</p>
|
||||
|
||||
<p align="center"><a href="https://www.nordtheme.com/ports/tmux" target="_blank"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-docs/develop/assets/images/ports/tmux/overview.png"/></a></p>
|
||||
|
||||
## Getting Started
|
||||
|
||||
Visit the [official website][nord-home] to learn all about the [fluidly merging appearance][nord-home#intro] features, details and elements of [UI elements][nord-home#ui-elements], the [various theme configurations][nord-home#configurations] and the [support for plugins][nord-home#plugin-support].
|
||||
|
||||
Learn about the [installation and activation][nord-docs-home-install], how to [configure][nord-docs-home-config] the theme and [supported plugins][nord-docs-home-plugins] from the [official documentations][nord-docs-home].
|
||||
|
||||
### Quick Start
|
||||
|
||||
Thanks to existing plugin managers for tmux, Nord tmux can be installed for all platforms in a uniform way within a few lines of codes. The recommended manager is [tpm][gh-tmux-plugins/tpm], but any other manager like [tundle][gh-javier-lopez/tundle] can also be used.
|
||||
|
||||
To automatically download and activate Nord tmux, follow the install instructions for [tpm][gh-tmux-plugins/tpm] and
|
||||
|
||||
1. add `set -g @plugin "arcticicestudio/nord-tmux"` to your [`tmux.conf`][tmux-man-tmux.conf], by default `.tmux.conf` located in your [home directory][wiki-home_dir]
|
||||
2. press the default key binding `prefix` + <kbd>I</kbd> to fetch- and install the plugin
|
||||
|
||||
<p align="center"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-docs/develop/assets/images/ports/tmux/installation-tpm.png"/></p>
|
||||
|
||||
See the Nord tmux's documentation for [more installation options][nord-docs-home-install] and how to [set it up manually][nord-docs-home-install#manual].
|
||||
Also see [_tpm's_ install instructions][gh-tpm-docs-install-plugins] for more details.
|
||||
|
||||
## Features
|
||||
|
||||
<div align="center"><p><strong>Your terminal. Your style.</strong></p><p>The unified UI element design provides a clutter-free and fluidly merging appearance.</p></div>
|
||||
|
||||
<p align="center"><a href="https://www.nordtheme.com/ports/tmux#intro" target="_blank"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-docs/develop/assets/images/ports/tmux/ui-fluid-appearance-vim.png"/></a></p>
|
||||
|
||||
<p align="center"><a href="https://www.nordtheme.com/ports/tmux#introduction" target="_blank"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-docs/develop/assets/images/ports/tmux/ui-fluid-appearance-gotop.png"/></a></p>
|
||||
|
||||
<div align="center"><p><strong>Uniform design with beautiful UI elements.</strong></p><p>The themed UI elements provide a fluid and unobtrusive transition from the terminal to the tmux status bar.</p></div>
|
||||
|
||||
<p align="center"><a href="https://www.nordtheme.com/ports/tmux#ui-elements" target="_blank"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-docs/develop/assets/images/ports/tmux/ui-clock.png"/></a></p>
|
||||
|
||||
<div align="center"><p><strong>Take your favorite plugins with you.</strong></p><p>The theme supports popular plugins for a fluid and unobtrusive user interface transition.</p></div>
|
||||
|
||||
<p align="center"><a href="https://www.nordtheme.com/ports/tmux#plugin-support" target="_blank"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-docs/develop/assets/images/ports/tmux/plugins-tmux-prefix-highlight.png"/></a></p>
|
||||
|
||||
## Contributing
|
||||
|
||||
Nord is an open source project and we love to receive contributions from the [community][nord-comm]!
|
||||
|
||||
There are many ways to contribute, from [writing- and improving documentation and tutorials][nord-contrib-guide-docs], [reporting bugs][nord-contrib-guide-bugs], [submitting enhancement suggestions][nord-contrib-guide-enhance] that can be added to Nord by [submitting pull requests][nord-contrib-guide-pr].
|
||||
|
||||
Please take a moment to read Nord's full [contributing guide][nord-contrib-guide] to learn about the development process, the project's used [styleguides][nord-contrib-guide-styles], [branch organization][nord-contrib-guide-branching] and [versioning][nord-contrib-guide-versioning] model.
|
||||
|
||||
The guide also includes information about [minimal, complete, and verifiable examples][nord-contrib-guide-mcve] and other ways to contribute to the project like [improving existing issues][nord-contrib-guide-impr-issues] and [giving feedback on issues and pull requests][nord-contrib-guide-feedback].
|
||||
|
||||
<p align="center"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-docs/develop/assets/images/nord/repository-footer-separator.svg?sanitize=true" /></p>
|
||||
|
||||
<p align="center">Copyright © 2017-present <a href="https://www.arcticicestudio.com" target="_blank">Arctic Ice Studio</a> and <a href="https://www.svengreb.de" target="_blank">Sven Greb</a></p>
|
||||
|
||||
<p align="center"><a href="https://github.com/arcticicestudio/nord-tmux/blob/develop/LICENSE.md"><img src="https://img.shields.io/static/v1.svg?style=flat-square&label=License&message=MIT&logoColor=eceff4&logo=github&colorA=4c566a&colorB=88c0d0"/></a></p>
|
||||
|
||||
[gh-javier-lopez/tundle]: https://github.com/javier-lopez/tundle
|
||||
[gh-tmux-plugins/tpm]: https://github.com/tmux-plugins/tpm
|
||||
[gh-tpm-docs-install-plugins]: https://github.com/tmux-plugins/tpm#installing-plugins
|
||||
[nord-comm]: https://www.nordtheme.com/community
|
||||
[nord-contrib-guide-branching]: https://github.com/arcticicestudio/nord/blob/develop/CONTRIBUTING.md#branch-organization
|
||||
[nord-contrib-guide-bugs]: https://github.com/arcticicestudio/nord/blob/develop/CONTRIBUTING.md#bug-reports
|
||||
[nord-contrib-guide-docs]: https://github.com/arcticicestudio/nord/blob/develop/CONTRIBUTING.md#documentations
|
||||
[nord-contrib-guide-enhance]: https://github.com/arcticicestudio/nord/blob/develop/CONTRIBUTING.md#enhancement-suggestions
|
||||
[nord-contrib-guide-feedback]: https://github.com/arcticicestudio/nord/blob/develop/CONTRIBUTING.md#give-feedback-on-issues-and-pull-requests
|
||||
[nord-contrib-guide-impr-issues]: https://github.com/arcticicestudio/nord/blob/develop/CONTRIBUTING.md#improve-issues
|
||||
[nord-contrib-guide-mcve]: https://github.com/arcticicestudio/nord/blob/develop/CONTRIBUTING.md#mcve
|
||||
[nord-contrib-guide-pr]: https://github.com/arcticicestudio/nord/blob/develop/CONTRIBUTING.md#pull-requests
|
||||
[nord-contrib-guide-styles]: https://github.com/arcticicestudio/nord/blob/develop/CONTRIBUTING.md#styleguides
|
||||
[nord-contrib-guide-versioning]: https://github.com/arcticicestudio/nord/blob/develop/CONTRIBUTING.md#versioning
|
||||
[nord-contrib-guide]: https://github.com/arcticicestudio/nord/blob/develop/CONTRIBUTING.md
|
||||
[nord-docs-home-config]: https://www.nordtheme.com/docs/ports/tmux/configuration
|
||||
[nord-docs-home-install]: https://www.nordtheme.com/docs/ports/tmux/installation
|
||||
[nord-docs-home-install#manual]: https://www.nordtheme.com/docs/ports/tmux/installation#manual
|
||||
[nord-docs-home-plugins]: https://www.nordtheme.com/docs/ports/tmux/plugin-support
|
||||
[nord-docs-home]: https://www.nordtheme.com/docs/ports/tmux
|
||||
[nord-home]: https://www.nordtheme.com/ports/tmux
|
||||
[nord-home#configurations]: https://www.nordtheme.com/ports/tmux#configurations
|
||||
[nord-home#intro]: https://www.nordtheme.com/ports/tmux#intro
|
||||
[nord-home#plugin-support]: https://www.nordtheme.com/ports/tmux#plugin-support
|
||||
[nord-home#ui-elements]: https://www.nordtheme.com/ports/tmux#ui-elements
|
||||
[tmux-man-tmux.conf]: http://man.openbsd.org/OpenBSD-current/man1/tmux.1#FILES
|
||||
[wiki-home_dir]: https://en.wikipedia.org/wiki/Home_directory
|
||||
50
files/.tmux/nord-tmux/nord.tmux
Executable file
50
files/.tmux/nord-tmux/nord.tmux
Executable file
@@ -0,0 +1,50 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (C) 2017-present Arctic Ice Studio <development@arcticicestudio.com>
|
||||
# Copyright (C) 2017-present Sven Greb <development@svengreb.de>
|
||||
|
||||
# Project: Nord tmux
|
||||
# Repository: https://github.com/arcticicestudio/nord-tmux
|
||||
# License: MIT
|
||||
# References:
|
||||
# https://tmux.github.io
|
||||
|
||||
NORD_TMUX_COLOR_THEME_FILE=src/nord.conf
|
||||
NORD_TMUX_VERSION=0.3.0
|
||||
NORD_TMUX_STATUS_CONTENT_FILE="src/nord-status-content.conf"
|
||||
NORD_TMUX_STATUS_CONTENT_NO_PATCHED_FONT_FILE="src/nord-status-content-no-patched-font.conf"
|
||||
NORD_TMUX_STATUS_CONTENT_OPTION="@nord_tmux_show_status_content"
|
||||
NORD_TMUX_NO_PATCHED_FONT_OPTION="@nord_tmux_no_patched_font"
|
||||
_current_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
__cleanup() {
|
||||
unset -v NORD_TMUX_COLOR_THEME_FILE NORD_TMUX_VERSION
|
||||
unset -v NORD_TMUX_STATUS_CONTENT_FILE NORD_TMUX_STATUS_CONTENT_NO_PATCHED_FONT_FILE
|
||||
unset -v NORD_TMUX_STATUS_CONTENT_OPTION NORD_TMUX_NO_PATCHED_FONT_OPTION
|
||||
unset -v _current_dir
|
||||
unset -f __load __cleanup
|
||||
tmux set-environment -gu NORD_TMUX_STATUS_TIME_FORMAT
|
||||
}
|
||||
|
||||
__load() {
|
||||
tmux source-file "$_current_dir/$NORD_TMUX_COLOR_THEME_FILE"
|
||||
|
||||
local status_content=$(tmux show-option -gqv "$NORD_TMUX_STATUS_CONTENT_OPTION")
|
||||
local no_patched_font=$(tmux show-option -gqv "$NORD_TMUX_NO_PATCHED_FONT_OPTION")
|
||||
|
||||
if [ "$(tmux show-option -gqv "clock-mode-style")" == '12' ]; then
|
||||
tmux set-environment -g NORD_TMUX_STATUS_TIME_FORMAT "%I:%M %p"
|
||||
else
|
||||
tmux set-environment -g NORD_TMUX_STATUS_TIME_FORMAT "%H:%M"
|
||||
fi
|
||||
|
||||
if [ "$status_content" != "0" ]; then
|
||||
if [ "$no_patched_font" != "1" ]; then
|
||||
tmux source-file "$_current_dir/$NORD_TMUX_STATUS_CONTENT_FILE"
|
||||
else
|
||||
tmux source-file "$_current_dir/$NORD_TMUX_STATUS_CONTENT_NO_PATCHED_FONT_FILE"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
__load
|
||||
__cleanup
|
||||
@@ -0,0 +1,24 @@
|
||||
# Copyright (C) 2017-present Arctic Ice Studio <development@arcticicestudio.com>
|
||||
# Copyright (C) 2017-present Sven Greb <development@svengreb.de>
|
||||
|
||||
# Project: Nord tmux
|
||||
# Repository: https://github.com/arcticicestudio/nord-tmux
|
||||
# License: MIT
|
||||
|
||||
#+----------------+
|
||||
#+ Plugin Support +
|
||||
#+----------------+
|
||||
#+--- tmux-prefix-highlight ---+
|
||||
set -g @prefix_highlight_copy_mode_attr "fg=black,bg=brightcyan"
|
||||
|
||||
#+--------+
|
||||
#+ Status +
|
||||
#+--------+
|
||||
#+--- Bars ---+
|
||||
set -g status-left "#[fg=black,bg=blue,bold] #S "
|
||||
set -g status-right "#{prefix_highlight}#[fg=white,bg=brightblack] %Y-%m-%d #[fg=white,bg=brightblack,nobold,noitalics,nounderscore]|#[fg=white,bg=brightblack] ${NORD_TMUX_STATUS_TIME_FORMAT} #[fg=cyan,bg=brightblack,nobold,noitalics,nounderscore] #[fg=black,bg=cyan,bold] #H "
|
||||
|
||||
#+--- Windows ---+
|
||||
set -g window-status-format " #[fg=white,bg=brightblack]#I #[fg=white,bg=brightblack]#W #F"
|
||||
set -g window-status-current-format " #[fg=black,bg=cyan]#I#[fg=black,bg=cyan,nobold,noitalics,nounderscore] #[fg=black,bg=cyan]#W #F"
|
||||
set -g window-status-separator ""
|
||||
27
files/.tmux/nord-tmux/src/nord-status-content.conf
Normal file
27
files/.tmux/nord-tmux/src/nord-status-content.conf
Normal file
@@ -0,0 +1,27 @@
|
||||
# Copyright (C) 2017-present Arctic Ice Studio <development@arcticicestudio.com>
|
||||
# Copyright (C) 2017-present Sven Greb <development@svengreb.de>
|
||||
|
||||
# Project: Nord tmux
|
||||
# Repository: https://github.com/arcticicestudio/nord-tmux
|
||||
# License: MIT
|
||||
|
||||
#+----------------+
|
||||
#+ Plugin Support +
|
||||
#+----------------+
|
||||
#+--- tmux-prefix-highlight ---+
|
||||
set -g @prefix_highlight_output_prefix "#[fg=brightcyan]#[bg=black]#[nobold]#[noitalics]#[nounderscore]#[bg=brightcyan]#[fg=black]"
|
||||
set -g @prefix_highlight_output_suffix ""
|
||||
set -g @prefix_highlight_copy_mode_attr "fg=brightcyan,bg=black,bold"
|
||||
|
||||
#+--------+
|
||||
#+ Status +
|
||||
#+--------+
|
||||
#+--- Bars ---+
|
||||
#set -g status-left "#[fg=black,bg=blue,bold] #S#[fg=blue,bg=black,nobold,noitalics,nounderscore]"
|
||||
set -g status-left "#[fg=black,bg=blue,bold] #S #[fg=blue,bg=black,nobold,noitalics,nounderscore]"
|
||||
set -g status-right "#{prefix_highlight}#[fg=brightblack,bg=black,nobold,noitalics,nounderscore]#[fg=white,bg=brightblack] %Y-%m-%d #[fg=white,bg=brightblack,nobold,noitalics,nounderscore]#[fg=white,bg=brightblack] ${NORD_TMUX_STATUS_TIME_FORMAT} #[fg=cyan,bg=brightblack,nobold,noitalics,nounderscore]#[fg=black,bg=cyan,bold] #H "
|
||||
|
||||
#+--- Windows ---+
|
||||
set -g window-status-format "#[fg=black,bg=brightblack,nobold,noitalics,nounderscore] #[fg=white,bg=brightblack]#I #[fg=white,bg=brightblack,nobold,noitalics,nounderscore] #[fg=white,bg=brightblack]#W #F #[fg=brightblack,bg=black,nobold,noitalics,nounderscore]"
|
||||
set -g window-status-current-format "#[fg=black,bg=cyan,nobold,noitalics,nounderscore] #[fg=black,bg=cyan]#I #[fg=black,bg=cyan,nobold,noitalics,nounderscore] #[fg=black,bg=cyan]#W #F #[fg=cyan,bg=black,nobold,noitalics,nounderscore]"
|
||||
set -g window-status-separator ""
|
||||
53
files/.tmux/nord-tmux/src/nord.conf
Normal file
53
files/.tmux/nord-tmux/src/nord.conf
Normal file
@@ -0,0 +1,53 @@
|
||||
# Copyright (C) 2017-present Arctic Ice Studio <development@arcticicestudio.com>
|
||||
# Copyright (C) 2017-present Sven Greb <development@svengreb.de>
|
||||
|
||||
# Project: Nord tmux
|
||||
# Repository: https://github.com/arcticicestudio/nord-tmux
|
||||
# License: MIT
|
||||
|
||||
#+----------------+
|
||||
#+ Plugin Support +
|
||||
#+----------------+
|
||||
#+--- tmux-prefix-highlight ---+
|
||||
set -g @prefix_highlight_fg black
|
||||
set -g @prefix_highlight_bg brightcyan
|
||||
|
||||
#+---------+
|
||||
#+ Options +
|
||||
#+---------+
|
||||
set -g status-interval 1
|
||||
set -g status on
|
||||
|
||||
#+--------+
|
||||
#+ Status +
|
||||
#+--------+
|
||||
#+--- Layout ---+
|
||||
set -g status-justify left
|
||||
|
||||
#+--- Colors ---+
|
||||
set -g status-bg black
|
||||
set -g status-fg white
|
||||
set -g status-attr none
|
||||
|
||||
#+-------+
|
||||
#+ Panes +
|
||||
#+-------+
|
||||
set -g pane-border-bg black
|
||||
set -g pane-border-fg black
|
||||
set -g pane-active-border-bg black
|
||||
set -g pane-active-border-fg brightblack
|
||||
set -g display-panes-colour black
|
||||
set -g display-panes-active-colour brightblack
|
||||
|
||||
#+------------+
|
||||
#+ Clock Mode +
|
||||
#+------------+
|
||||
setw -g clock-mode-colour cyan
|
||||
|
||||
#+----------+
|
||||
#+ Messages +
|
||||
#+---------+
|
||||
set -g message-fg cyan
|
||||
set -g message-bg brightblack
|
||||
set -g message-command-fg cyan
|
||||
set -g message-command-bg brightblack
|
||||
@@ -1,11 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
VERBOSE=$1
|
||||
|
||||
# Make sure the paths are correct
|
||||
path=$(pwd)
|
||||
|
||||
# Scripts
|
||||
# --- home --- #
|
||||
home_files=".bashrc .zshrc .gitconfig .tmux .tmux.conf .vimrc .Xresources .xinitrc"
|
||||
for file in $home_files
|
||||
do
|
||||
rm -rf $HOME/$file
|
||||
ln -sf $path/$file $HOME/$file
|
||||
done
|
||||
|
||||
# scripts
|
||||
rm -rf $HOME/scripts
|
||||
ln -sf $path/scripts $HOME/scripts
|
||||
|
||||
@@ -13,27 +19,14 @@ ln -sf $path/scripts $HOME/scripts
|
||||
mkdir -p $HOME/.emacs.d
|
||||
ln -sf $path/init.el $HOME/.emacs.d/init.el
|
||||
|
||||
# Home directory
|
||||
home_files=".bashrc .zshrc .gitconfig .tmux.conf .vimrc .Xresources .xinitrc"
|
||||
for file in $home_files
|
||||
do
|
||||
ln -sf $path/$file $HOME/$file
|
||||
if [ "$VERBOSE" = "-v" ]; then
|
||||
echo "Linked from $path/$file to $HOME/$file"
|
||||
fi
|
||||
done
|
||||
|
||||
# properly add startx files
|
||||
# startx
|
||||
chmod +x $HOME/.xinitrc
|
||||
ln -s $HOME/.xinitrc $HOME/.xsession
|
||||
ln -sf $HOME/.xinitrc $HOME/.xsession
|
||||
|
||||
# .config directory
|
||||
conf_files="alacritty dunst i3 nvim picom.conf polybar ranger zathura"
|
||||
# --- .config --- #
|
||||
conf_files="alacritty dunst nvim picom.conf ranger zathura"
|
||||
for file in $conf_files
|
||||
do
|
||||
rm -rf $HOME/.config/$file
|
||||
ln -sf $path/.config/$file $HOME/.config/$file
|
||||
if [ "$VERBOSE" = "-v" ]; then
|
||||
echo "Linked from $path/.config/$file to $HOME/.config/$file"
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user