Switch to Alacritty for terminal emulator, fsharp vim plugin, fix

bar/fontawesome issues, add goodies for irc
This commit is contained in:
Daniel Flanagan 2018-07-05 09:47:46 -05:00
parent bca718ae31
commit f37af9701f
11 changed files with 43 additions and 31 deletions

View file

@ -26,8 +26,8 @@ dpi:
y: 180.0 y: 180.0
padding: padding:
x: 30.0 x: 24.0
y: 30.0 y: 24.0
# Display tabs using this many cells (changes require restart) # Display tabs using this many cells (changes require restart)
tabspaces: 2 tabspaces: 2
@ -56,12 +56,12 @@ font:
# style: Italic # style: Italic
# Point size of the font # Point size of the font
size: 12.0 size: 10.0
# Offset is the extra space around each character. offset.y can be thought of # Offset is the extra space around each character. offset.y can be thought of
# as modifying the linespacing, and offset.x as modifying the letter spacing. # as modifying the linespacing, and offset.x as modifying the letter spacing.
offset: offset:
x: -5.0 x: -5.0
y: -6.0 y: 0.0
# OS X only: use thin stroke font rendering. Thin strokes are suitable # OS X only: use thin stroke font rendering. Thin strokes are suitable
# for retina displays, but for non-retina you probably want this set to # for retina displays, but for non-retina you probably want this set to
@ -79,7 +79,7 @@ custom_cursor_colors: false
colors: colors:
# Default colors # Default colors
primary: primary:
background: '0x000000' background: '0x111111'
foreground: '0xeaeaea' foreground: '0xeaeaea'
# Colors the cursor will use if `custom_cursor_colors` is true # Colors the cursor will use if `custom_cursor_colors` is true

View file

@ -208,3 +208,5 @@ cnoremap <c-p> <up>
xnoremap < <gv xnoremap < <gv
xnoremap > >gv xnoremap > >gv
nmap ga <Plug><EasyAlign>
xmap ga <Plug><EasyAlign>

View file

@ -171,6 +171,7 @@ Plug 'hail2u/vim-css3-syntax', {'for': ['styl', 'stylus', 'sass', 'scss', 'css',
Plug 'kchmck/vim-coffee-script', {'for': ['coffee', 'coffeescript', 'vue']} Plug 'kchmck/vim-coffee-script', {'for': ['coffee', 'coffeescript', 'vue']}
Plug 'posva/vim-vue', {'for': ['vue']} Plug 'posva/vim-vue', {'for': ['vue']}
Plug 'elixir-lang/vim-elixir', {'for': ['elixir', 'ex', 'exs']} Plug 'elixir-lang/vim-elixir', {'for': ['elixir', 'ex', 'exs']}
Plug 'fsharp/vim-fsharp', {'for': ['fs', 'fsharp']}
Plug 'OrangeT/vim-csharp', {'for': ['cshtml', 'cshtml.html', 'cs', 'razor']} Plug 'OrangeT/vim-csharp', {'for': ['cshtml', 'cshtml.html', 'cs', 'razor']}
Plug 'vim-erlang/vim-erlang-runtime', {'for': ['erlang', 'erl']} Plug 'vim-erlang/vim-erlang-runtime', {'for': ['erlang', 'erl']}
" Plug 'slashmili/alchemist.vim', {'for': ['elixir', 'ex', 'exs']} " Plug 'slashmili/alchemist.vim', {'for': ['elixir', 'ex', 'exs']}

View file

@ -7,8 +7,9 @@ export BAR_SIDE_MARGIN=200
MONITOR_WIDTH=$(xrandr | grep "$BAR_MONITOR" | grep -Po ' \d+' | head -n 1) MONITOR_WIDTH=$(xrandr | grep "$BAR_MONITOR" | grep -Po ' \d+' | head -n 1)
export BAR_FONT=$(xrdb -query | sed -ne 's/.*font:\s*xft:\([^:]*\)\:.*$/\1/p' | head -n 1) export BAR_FONT=$(xrdb -query | sed -ne 's/.*font:\s*xft:\([^:]*\)\:.*$/\1/p' | head -n 1)
export BAR_ICON_FONT="Font Awesome 5 Free" # export BAR_ICON_FONT="Font Awesome 5 Free"
export BAR_ICON_FONT_2="Font Awesome 5 Brands" # export BAR_ICON_FONT_2="Font Awesome 5 Brands"
export BAR_ICON_FONT="FontAwesome"
export BAR_FONT_SIZE=$(xrdb -query | sed -ne 's/.*font:\s*xft:[^-]*\=\([0-9]*\).*$/\1/p' | head -n 1) export BAR_FONT_SIZE=$(xrdb -query | sed -ne 's/.*font:\s*xft:[^-]*\=\([0-9]*\).*$/\1/p' | head -n 1)
export BAR_ICON_FONT_SIZE=$((BAR_FONT_SIZE)) export BAR_ICON_FONT_SIZE=$((BAR_FONT_SIZE))

View file

@ -188,6 +188,7 @@ label-foreground = ${xrdb:color6}
[module/memory] [module/memory]
type = internal/memory type = internal/memory
interval = 2 interval = 2
; format-prefix = " "
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt} format-prefix-foreground = ${colors.foreground-alt}
; format-underline = #4bffdc ; format-underline = #4bffdc
@ -256,7 +257,7 @@ format-volume = <label-volume> <bar-volume>
label-volume =  label-volume = 
label-volume-foreground = ${colors.foreground-alt} label-volume-foreground = ${colors.foreground-alt}
format-muted-prefix = format-muted-prefix = " "
format-muted-foreground = ${colors.foreground-alt} format-muted-foreground = ${colors.foreground-alt}
label-muted = muted label-muted = muted
@ -297,7 +298,7 @@ format-discharging = <ramp-capacity> <label-discharging>
format-charging-prefix = format-charging-prefix =
format-charging-prefix-foreground = ${colors.foreground-alt} format-charging-prefix-foreground = ${colors.foreground-alt}
format-full-prefix = format-full-prefix = " "
format-full-prefix-foreground = ${colors.foreground-alt} format-full-prefix-foreground = ${colors.foreground-alt}
; empty battery  ; empty battery 

View file

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source "$HOME/.bashrc"
# NO_COMPTON=1 # NO_COMPTON=1
BORDER_WIDTH=5 # change in bspwm_config, here for launcher BORDER_WIDTH=5 # change in bspwm_config, here for launcher
START_BAR=1 START_BAR=1
@ -21,6 +23,7 @@ fi
source "$DOTFILES_PATH/de/bspwm_config" source "$DOTFILES_PATH/de/bspwm_config"
# TODO: switch to alacritty
if command -v urxvtd >/dev/null 2>&1; then if command -v urxvtd >/dev/null 2>&1; then
urxvtd & urxvtd &
fi fi

View file

@ -140,7 +140,7 @@ super + alt + minus
# spawn a transparent node # spawn a transparent node
super + alt + t super + alt + t
urxvtc && compton-trans -c -o 0 alacritty && compton-trans -c -o 0
# rotate the current node # rotate the current node
super + r super + r
@ -164,11 +164,11 @@ super + shift + t
# spawn a terminal # spawn a terminal
super + Return super + Return
urxvtc alacritty
# spawn a floating terminal # spawn a floating terminal
super + shift + Return super + shift + Return
bspc rule -a '*' -o state=floating && urxvtc -geometry 80x24 bspc rule -a '*' -o state=floating && alacritty --dimensions 80x24
# spawn the app launcher # spawn the app launcher
super + space super + space

View file

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# TODO: install alacritty
pacaur -S \ pacaur -S \
tree `# Handy Filesystem Viewing Utility` \ tree `# Handy Filesystem Viewing Utility` \
rofi `# Application Launcher` \ rofi `# Application Launcher` \
@ -35,7 +37,7 @@ pacaur -S \
bspwm-git sxhkd-git xdo-git `# Window Manager and Tools for its use` \ bspwm-git sxhkd-git xdo-git `# Window Manager and Tools for its use` \
terminus-font ttf-monaco `# Primary Fonts` \ terminus-font ttf-monaco `# Primary Fonts` \
ttf-freefont `# Font` \ ttf-freefont `# Font` \
ttf-font-awesome `# Icon Font` \ ttf-font-awesome-4 ttf-font-awesome `# Icon Font` \
autocutsel `# Clipboard Helper` \ autocutsel `# Clipboard Helper` \
curl `# HTTP Utility` \ curl `# HTTP Utility` \
w3m `# Viewing Images in Terminals` \ w3m `# Viewing Images in Terminals` \

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# TODO: migrate to alacritty
font="xft:Monaco:pixelsize=16" font="xft:Monaco:pixelsize=16"
urxvtc -fb "$font" -fi "$font" -fn "$font" -letsp "-1" urxvtc -fb "$font" -fi "$font" -fn "$font" -letsp "-1"

View file

@ -47,6 +47,7 @@ alias tmatt="tmux attach -t"
alias tu="tmux attach -t utils || tmux new -s utils" alias tu="tmux attach -t utils || tmux new -s utils"
alias tdf="tmux attach -t dotfiles || tmux new -s dotfiles -c \"\$DOTFILES_PATH\"" alias tdf="tmux attach -t dotfiles || tmux new -s dotfiles -c \"\$DOTFILES_PATH\""
alias tmon="tmux attach -t monitoring || tmux new -s monitoring" alias tmon="tmux attach -t monitoring || tmux new -s monitoring"
alias tcom="tmux attach -t comms || tmux new -s comms"
# git aliases # git aliases
# TODO: make these git aliases in the gitconfig? # TODO: make these git aliases in the gitconfig?

View file

@ -13,6 +13,24 @@ export NICE_HOME="$HOME"
# TODO: nice home on a per-device basis # TODO: nice home on a per-device basis
# set our PATH
source "$DOTFILES_PATH/shell/paths"
# import our aliases
source "$DOTFILES_PATH/shell/aliases"
# import our global shell functions
source "$DOTFILES_PATH/shell/shell_funcs"
# import our autocompletions
source "$DOTFILES_PATH/shell/autocompletions"
# load our key binds
bind -f "$DOTFILES_PATH/shell/inputrc"
# less tab size of 2 spaces
LESS="-x2"
# stop parsing on a non-interactive shell # stop parsing on a non-interactive shell
[ -z "$PS1" ] && return [ -z "$PS1" ] && return
@ -27,27 +45,9 @@ BASE16_SHELL="$DOTFILES_PATH/scripts/colors/shell"
# allow ** recursive wildcard globbing # allow ** recursive wildcard globbing
shopt -s globstar shopt -s globstar
# set our PATH
source "$DOTFILES_PATH/shell/paths"
# import our aliases
source "$DOTFILES_PATH/shell/aliases"
# import our global shell functions
source "$DOTFILES_PATH/shell/shell_funcs"
# import our prompt # import our prompt
source "$DOTFILES_PATH/shell/prompt" source "$DOTFILES_PATH/shell/prompt"
# import our autocompletions
source "$DOTFILES_PATH/shell/autocompletions"
# load our key binds
bind -f "$DOTFILES_PATH/shell/inputrc"
# less tab size of 2 spaces
LESS="-x2"
# prevents binds or commands pulling from history from insta-sending, and # prevents binds or commands pulling from history from insta-sending, and
# instead places them in the readline for editing # instead places them in the readline for editing
shopt -s histverify shopt -s histverify