Skip to content

Instantly share code, notes, and snippets.

View ctaylo21's full-sized avatar

Caleb Taylor ctaylo21

  • Whatnot
  • San Diego, CA
View GitHub Profile
@ctaylo21
ctaylo21 / init.vim
Last active May 5, 2022 10:02
Neovim example of using winhighlight to dim inactive windows
" Background colors for active vs inactive windows
hi ActiveWindow guibg=#17252c
hi InactiveWindow guibg=#0D1B22
" Call method on window enter
augroup WindowManagement
autocmd!
autocmd WinEnter * call Handle_Win_Enter()
augroup END
@ctaylo21
ctaylo21 / init.vim
Created July 1, 2018 15:45
Example of dimming inactive windows in Neovim
" Background colors for active vs inactive windows
hi ActiveWindow guibg=#17252c
hi InactiveWindow guibg=#0D1B22
hi ActiveTerminal guibg=#333333
" Call method on window enter
augroup WindowManagement
autocmd!
autocmd WinEnter * call Handle_Win_Enter()
augroup END
@ctaylo21
ctaylo21 / info.sh
Created May 29, 2018 15:35
Outputs a colorized apple with system info for OSX
#!/bin/bash
# ==USER==
user=$(whoami)
# ==HOSTNAME==
hostname=$(HOSTNAME | sed 's/.local//g')
# if hostname is >35 characters, truncates to make it fit on std. 80 window
if [ ${#HOSTNAME} -gt 35 ]
then