Skip to content

Commit

Permalink
Spacebar
Browse files Browse the repository at this point in the history
  • Loading branch information
camspiers committed Oct 29, 2020
1 parent 4a2d849 commit 56fa4c1
Show file tree
Hide file tree
Showing 8 changed files with 476 additions and 24 deletions.
1 change: 1 addition & 0 deletions extra/homebrew/Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ brew "vifm"
brew "vim"
brew "wget"
brew "yabai"
brew "cmacrae/formulae/spacebar"
brew "yarn"

# App essentials
Expand Down
4 changes: 4 additions & 0 deletions files/.bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,7 @@ eval "$(rbenv init -)"
# Fast Node Manager
eval "$(fnm env --multi)"

# Load nvm
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
2 changes: 1 addition & 1 deletion files/.config/kitty/kitty.conf
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ tab_separator " "

#: The foreground and background colors

background_opacity 0.97
background_opacity 1

#: The opacity of the background. A number between 0 and 1, where 1 is
#: opaque and 0 is fully transparent. This will only work if
Expand Down
18 changes: 9 additions & 9 deletions files/.config/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ if empty(glob('~/.config/nvim/autoload/plug.vim'))
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif

" Before plugin load configs {{{
let g:polyglot_disabled = ['latex']
" }}}

" Custom Vim Plug {{{
" Options for each plugin, helps improve readability of plugin registration
let g:vim_plug_opts = {
\ 'mbbill/undotree': {'on': 'UndotreeToggle' },
\ 'neoclide/coc.nvim': {'do': { -> coc#util#install()} },
\ 'vim-vdebug/vdebug': {'on': []},
\ 'iamcco/markdown-preview.nvim': {'do': 'cd app && yarn install' }
\ }

" Register plugin with options
Expand Down Expand Up @@ -44,7 +49,6 @@ Plug 'junegunn/fzf.vim' | " Fuzzy finding plugin
" }}}

" Navigation {{{
Plug 'lambdalisue/fern.vim' | " Replacement for netrw
Plug 'tpope/vim-projectionist' | " Navigation of related files
Plug 'tpope/vim-vinegar'
" }}}
Expand All @@ -56,7 +60,6 @@ Plug 'camspiers/animate.vim' | " Animation plugin
Plug 'camspiers/lens.vim' | " Window resizing plugin
Plug 'junegunn/goyo.vim' | " Distraction free writing mode
Plug 'junegunn/limelight.vim' | " Only highlight current paragraph
Plug 'lambdalisue/fern-renderer-devicons.vim' | " Dev icons for fern
Plug 'lifepillar/vim-gruvbox8' | " Faster version of gruvbox
Plug 'nathanaelkane/vim-indent-guides' | " Provides indentation guides
Plug 'ryanoasis/vim-devicons' | " Dev icons
Expand Down Expand Up @@ -99,6 +102,8 @@ Plug 'tpope/vim-obsession' | " Save sessions automatically
Plug 'tpope/vim-speeddating' | " Tools for working with dates
Plug 'tpope/vim-unimpaired' | " Common mappings for many needs
Plug 'vim-vdebug/vdebug' | " Debugging, loaded manually
Plug 'cedarbaum/fugitive-azure-devops.vim'
Plug 'iamcco/markdown-preview.nvim'
" }}}

" Syntax {{{
Expand Down Expand Up @@ -307,8 +312,6 @@ nnoremap <silent> <Leader>v :call ToggleVirtualEdit()<CR>
nnoremap <silent> <Leader>' :call openterm#horizontal('lazygit', 0.8)<CR>
" Open lazydocker
nnoremap <silent> <Leader>; :call openterm#horizontal('lazydocker', 0.8)<CR>
" Open harvest
nnoremap <silent> <Leader>h :call openterm#horizontal('hstarti', 0.1)<CR>
" Open scratch pad
nnoremap <silent> <Leader>sc :call openterm#horizontal('bash', 0.2)<CR>
" Open calendar + todo
Expand Down Expand Up @@ -417,10 +420,6 @@ let g:pencil#textwidth = 80
let g:pencil#conceallevel = 0
" }}}

" Polyglot {{{
let g:polyglot_disabled = ['latex']
" }}}

" Table Mode {{{
let g:table_mode_corner = '|'
" }}}
Expand All @@ -438,7 +437,7 @@ let g:coc_global_extensions = [
\ 'coc-css', 'coc-eslint', 'coc-html', 'coc-json', 'coc-snippets', 'coc-yaml',
\ 'coc-lists', 'coc-pairs', 'coc-phpls', 'coc-prettier', 'coc-python',
\ 'coc-reason', 'coc-sh', 'coc-stylelint', 'coc-tslint', 'coc-tsserver',
\ 'coc-vimlsp', 'coc-vimtex',
\ 'coc-vimlsp', 'coc-vimtex', 'coc-git'
\ ]
" }}}

Expand Down Expand Up @@ -526,6 +525,7 @@ let g:airline#extensions#tabline#enabled = 1
" }}}

" Vimtex {{{
let g:tex_flavor = 'latex'
let g:vimtex_view_method = 'skim'
" let g:vimtex_view_general_callback = 'VimtexCallback'
" let g:vimtex_view_automatic = 0
Expand Down
20 changes: 20 additions & 0 deletions files/.config/spacebar/spacebarrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env sh

spacebar -m config position top
spacebar -m config height 26
spacebar -m config background_color 0xff202020
spacebar -m config foreground_color 0xffa8a8a8
spacebar -m config space_icon_color 0xff458588
spacebar -m config power_icon_color 0xffcd950c
spacebar -m config battery_icon_color 0xffd75f5f
spacebar -m config dnd_icon_color 0xffa8a8a8
spacebar -m config clock_icon_color 0xffa8a8a8
spacebar -m config power_icon_strip " "
spacebar -m config space_icon ""
spacebar -m config clock_icon " "
spacebar -m config dnd_icon 
spacebar -m config text_font "Hasklug Nerd Font:Bold:12.0"
spacebar -m config icon_font "Hasklug Nerd Font:Bold:12.0"
spacebar -m config background_color 0xff202020
spacebar -m config foreground_color 0xffa8a8a8
spacebar -m config space_icon_strip 1 2 3 4 5 6
9 changes: 1 addition & 8 deletions files/.config/yabai/yabairc
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
#!/usr/bin/env sh

yabai -m config status_bar on
yabai -m config status_bar_text_font "Hasklug Nerd Font:Bold:12.0"
yabai -m config status_bar_icon_font "Hasklug Nerd Font:Bold:12.0"
yabai -m config status_bar_background_color 0xff202020
yabai -m config status_bar_foreground_color 0xffa8a8a8
yabai -m config status_bar_space_icon_strip 1 2 3 4 5 6
yabai -m config status_bar_space_icon x
yabai -m config status_bar_clock_icon " "
yabai -m config external_bar all:26:0

# global settings
yabai -m config mouse_follows_focus off
Expand Down
3 changes: 2 additions & 1 deletion files/.config/yarn/global/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"@prettier/plugin-php": "^0.12.0",
"create-react-app": "^3.3.0",
"neovim": "^4.9.0",
"prettier": "^1.19.1"
"prettier": "^1.19.1",
"serve": "^11.3.2"
}
}
Loading

0 comments on commit 56fa4c1

Please sign in to comment.