Fixed newsboat to solarized

Changed vim powerline to airline
This commit is contained in:
jfm 2018-06-08 13:30:38 +02:00
parent 33fa881a62
commit 4de54679ea
4 changed files with 33 additions and 13 deletions

View File

@ -11,10 +11,12 @@ I have implemented a custom couple of scripts to handle screen setup for work, h
* [URxvt](https://github.com/exg/rxvt-unicode) * [URxvt](https://github.com/exg/rxvt-unicode)
## Applications ## Applications
* [ncmpcpp](https://github.com/arybczak/ncmpcpp)
* [NewsBoat](https://github.com/newsboat/newsboat) * [NewsBoat](https://github.com/newsboat/newsboat)
* [Sublime Text 3](https://www.sublimetext.com/) * [Sublime Text 3](https://www.sublimetext.com/)
# Powerline
On Arch/Manjaro we need to install the Powerline fonts from the git repository for it to work properly. We might also need to use the urxvt patched package of urxvt.
# Stow Commands # Stow Commands
I use Gnu Stow to manage my dotfiles. Dotfiles from this repository can be used by issuing: I use Gnu Stow to manage my dotfiles. Dotfiles from this repository can be used by issuing:
~~~ ~~~

View File

@ -1,6 +1,5 @@
#!/bin/bash #!/bin/bash
. ~/.i3/env . ~/.i3/env
i3-msg "workspace 8:Media; append_layout ~/.i3/layouts/workspace8-media.json" i3-msg "workspace 8:Media; append_layout ~/.i3/layouts/workspace8-media.json"
i3-msg "workspace 8:Media; exec urxvt -fn xft:Terminus:pixelsize=22 -name newsboat -e newsboat" i3-msg "workspace 8:Media; exec urxvt -fn xft:DejaVu\ Sans\ Mono\ for\ Powerline:pixelsize=22 -name newsboat -e newsboat"
#i3-msg "workspace 8:Media; exec urxvt -fn xft:Terminus:pixelsize=20 -name ncmpcpp -e ncmpcpp" #i3-msg "workspace 8:Media; move workspace to output $LAPTOP"
i3-msg "workspace 8:Media; move workspace to output $LAPTOP"

View File

@ -1,4 +1,17 @@
auto-reload yes auto-reload yes
reload-time 60 reload-time 60
browser "w3m %u" browser "w3m %u"
articlelist-format "%4i %f %D %t" articlelist-format "%4i %f %D %t"
color background default default
color listnormal default default
color listnormal_unread default default
color listfocus black yellow
color listfocus_unread black yellow
color info default black
color article default default
# highlights
highlight article "^(Title):.*$" blue default
highlight article "https?://[^ ]+" red default
highlight article "\\[image\\ [0-9]+\\]" green default

View File

@ -1,5 +1,7 @@
syntax on syntax on
filetype indent on
set encoding=utf-8
set clipboard=unnamed set clipboard=unnamed
set smartindent set smartindent
set shiftwidth=2 set shiftwidth=2
@ -8,21 +10,25 @@ set expandtab
set number set number
set autoread set autoread
let g:powerline_pycmd="py3" "NERDTree
let NERDTreeShowHidden=1 let NERDTreeShowHidden=1
let g:NERDTreeDirArrowExpandable = '▸' let g:NERDTreeDirArrowExpandable = '▸'
let g:NERDTreeDirArrowCollapsible = '▾' let g:NERDTreeDirArrowCollapsible = '▾'
filetype indent on "Airline
let g:airline#extensions#tabline#enabled = 1
let g:Powerline_symbols='unicode'
let g:airline_powerline_fonts = 1
let g:airline_theme='solarized'
let g:airline_solarized_bg='dark'
"Mappings
:nmap <c-s> :w<CR> :nmap <c-s> :w<CR>
:imap <c-s> <Esc>:w<CR>a :imap <c-s> <Esc>:w<CR>a
nnoremap <F7> :tabp<CR> nnoremap <F7> :bp<CR>
nnoremap <F8> :tabn<CR> nnoremap <F8> :bn<CR>
nnoremap <F9> :bp<CR>
nnoremap <F10> :bn<CR>
map <C-n> :NERDTreeToggle<CR> map <C-n> :NERDTreeToggle<CR>
"AutoCommands
au BufWinEnter * set number au BufWinEnter * set number
autocmd StdinReadPre * let s:std_in=1 au FileType xml setlocal equalprg=xmllint\ --format\ --recover\ -\ 2>/dev/null
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif