From 25aecdc139099c904d60b9c02b4adace7ea1acd8 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 13 Dec 2019 11:32:15 -0600 Subject: [PATCH] Goodies? --- apps/de/gtk/2rc | 2 +- apps/de/gtk/3settings.ini | 2 +- apps/de/x/resources | 13 +++------- apps/shell/tmux/tmux.conf | 3 ++- bin/lib/ansi_graphics_codes.tsv | 45 +++++++++++++++++++++++++++++++++ bin/terminal-rendering-test | 21 +++++++++++++++ setup | 11 +++++++- 7 files changed, 84 insertions(+), 13 deletions(-) create mode 100644 bin/lib/ansi_graphics_codes.tsv create mode 100755 bin/terminal-rendering-test diff --git a/apps/de/gtk/2rc b/apps/de/gtk/2rc index 0edf52b..64b31df 100644 --- a/apps/de/gtk/2rc +++ b/apps/de/gtk/2rc @@ -1,3 +1,3 @@ gtk-icon-theme-name = "elementary" gtk-theme-name = "Arc-Dark" -gtk-font-name = "Iosevka 9" +gtk-font-name = "Iosevka Type 10" diff --git a/apps/de/gtk/3settings.ini b/apps/de/gtk/3settings.ini index 010c652..ac5a291 100644 --- a/apps/de/gtk/3settings.ini +++ b/apps/de/gtk/3settings.ini @@ -1,5 +1,5 @@ [Settings] gtk-icon-theme-name = elementary gtk-theme-name = Arc-Dark -gtk-font-name = Iosevka 9 +gtk-font-name = Iosevka Type 10 gtk-application-prefer-dark-theme = true diff --git a/apps/de/x/resources b/apps/de/x/resources index 7ac0b56..47dd74f 100755 --- a/apps/de/x/resources +++ b/apps/de/x/resources @@ -1,27 +1,22 @@ ## Some of my favorite font setups... ## *font: xft:Monaco for Powerline-9 -## *faceName: xft:Monaco for Powerline-9 ## *boldFont: xft:Monaco for Powerline-9 ## *letterSpace: -1 ## *font: xft:artwiz lemon-8 -## *faceName: xft:artwiz lemon-8 ## *boldFont: xft:artwiz lemon-8 ## *letterSpace: 0 ## *font: xft:xos4 Terminuss Powerline-8 -## *faceName: xft:xos4 Terminuss Powerline-8 ## *boldFont: xft:xos4 Terminuss Powerline-8 ## *letterSpace: 0 -## Set fonts in "$HOME/.Xresources.env" -URxvt.font: xft:Iosevka Term:pixelsize=14,xft:Noto Emoji,xft:Font Awesome 5 Free:pixelsize=14,xft:FreeSans:pixelsize=14 -URxvt.faceName: xft:Iosevka Term:pixelsize=14,xft:Font Awesome 5 Free:pixelsize=14,xft:FreeSans:pixelsize=14 -Emacs.font: Iosevka Term -Emacs.faceName: Iosevka Term +*.font: xft:Iosevka Term:pixelsize=14,xft:Noto Emoji,xft:Font Awesome 5 Free:pixelsize=14,xft:FreeSans:pixelsize=14 +*.boldFont: xft:Iosevka Term Bold:pixelsize=14,xft:Noto Emoji,xft:Font Awesome 5 Free:pixelsize=14,xft:FreeSans:pixelsize=14 + +*.letterSpace: 0 # URxvt.transparent: true # URxvt.shading: 70 -URxvt.letterSpace: 0 ## rxvt-unicode configuration URxvt.termName: rxvt-unicode diff --git a/apps/shell/tmux/tmux.conf b/apps/shell/tmux/tmux.conf index 36a39ca..e555288 100644 --- a/apps/shell/tmux/tmux.conf +++ b/apps/shell/tmux/tmux.conf @@ -8,6 +8,8 @@ bind-key T source-file ~/.tmux.conf \; display-message "source-file done" unbind r bind r source-file ~/.tmux.conf +set -as terminal-overrides ',xterm*:smxx=\E[9m' + # sane defaults set -g default-terminal "tmux-256color" set-option -g mouse on @@ -150,4 +152,3 @@ bind -T off F12 \ refresh-client -S unbind-key C-p - diff --git a/bin/lib/ansi_graphics_codes.tsv b/bin/lib/ansi_graphics_codes.tsv new file mode 100644 index 0000000..27cd380 --- /dev/null +++ b/bin/lib/ansi_graphics_codes.tsv @@ -0,0 +1,45 @@ +Code Description Category +Notes For use with the ANSI `\e[TS;FG;BGm` escape sequence N/A +0 Reset all (default) Text Style (TS) +1 Bold Text Style (TS) +2 Dim Text Style (TS) +3 Italic Text Style (TS) +4 Underlined Text Style (TS) +5 Blinking Text Style (TS) +6 ??? UNKNOWN Text Style (TS) +7 Inverted colors Text Style (TS) +8 Hidden (passwords) Text Style (TS) +39 Default (reset) Foreground Colors (FG) +30 Black Foreground Colors (FG) +31 Red Foreground Colors (FG) +32 Green Foreground Colors (FG) +33 Yellow Foreground Colors (FG) +34 Blue Foreground Colors (FG) +35 Magenta Foreground Colors (FG) +36 Cyan Foreground Colors (FG) +37 Light Gray Foreground Colors (FG) +90 Dark Gray Foreground Colors (FG) +91 Light Red Foreground Colors (FG) +92 Light Green Foreground Colors (FG) +93 Light Yellow Foreground Colors (FG) +94 Light Blue Foreground Colors (FG) +95 Light Magenta Foreground Colors (FG) +96 Light Cyan Foreground Colors (FG) +97 White Foreground Colors (FG) +49 Default (reset) Background Colors (BG) +40 Black Background Colors (BG) +41 Red Background Colors (BG) +42 Green Background Colors (BG) +43 Yellow Background Colors (BG) +44 Blue Background Colors (BG) +45 Magenta Background Colors (BG) +46 Cyan Background Colors (BG) +47 Light Gray Background Colors (BG) +100 Dark Gray Background Colors (BG) +101 Light Red Background Colors (BG) +102 Light Green Background Colors (BG) +103 Light Yellow Background Colors (BG) +104 Light Blue Background Colors (BG) +105 Light Magenta Background Colors (BG) +106 Light Cyan Background Colors (BG) +107 White Background Colors (BG) diff --git a/bin/terminal-rendering-test b/bin/terminal-rendering-test new file mode 100755 index 0000000..bf5c542 --- /dev/null +++ b/bin/terminal-rendering-test @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +# sources: +# https://askubuntu.com/questions/528928/how-to-do-underline-bold-italic-strikethrough-color-background-and-size-i +# https://askubuntu.com/questions/27314/script-to-display-all-terminal-colors + +indent=" " +padding=" " +reset="\e[0;39;49m" + +for s in {0..8}; do # text styles + for t in {30..37}; do # text color + for b in {40..47}; do # background + echo -ne "${indent}\e[$s;$t;${b}m${padding}\\\e[$s;$t;${b}m${padding}${reset}" + done + echo + done + echo +done +echo -e "Emoji: 😱😍😬🎉" +echo diff --git a/setup b/setup index 5224abc..3343006 100755 --- a/setup +++ b/setup @@ -1,6 +1,15 @@ #!/usr/bin/env bash -# TODO: ascii art header since I'm a leet haxx0r +# # +# _ _ _ # +# | |_ _| |_,___ __| | _____ __ # +# | | | | | __/ _ \/ ,` |/ _ \ \ / / # +# | | |_| | || __/ (_| | __/\ V / # +# |_|\__, |\__\___|\__,_|\___| \_/ # +# \__/ # +# # +# D O T F I L E S # +# # dfp=$(cd "$(dirname "${BASH_SOURCE[0]}" )/" && pwd) source "${dfp}/bin/lib/setup_helpers.bash"