Browse Source

nvim add shortcut for light/dark theme, add brightness scripts, add netplan-config

master
arnaucube 3 years ago
parent
commit
1dd38f1c40
4 changed files with 12 additions and 2 deletions
  1. +7
    -2
      init.vim
  2. +2
    -0
      launch-scripts/brightnesshigh.sh
  3. +2
    -0
      launch-scripts/brightnesslow.sh
  4. +1
    -0
      raspberry/netplan-config.yaml

+ 7
- 2
init.vim

@ -70,8 +70,6 @@ Plug 'tomasr/molokai'
Plug 'srcery-colors/srcery-vim'
Plug 'rakr/vim-one'
Plug 'morhetz/gruvbox'
Plug 'toupeira/vim-desertink'
Plug 'maksimr/Lucius2'
let g:srcery_italic = 1
" errors
@ -81,6 +79,9 @@ Plug 'autozimu/LanguageClient-neovim', {
\ 'do': 'bash install.sh',
\ }
" focus mode
Plug 'junegunn/goyo.vim'
call plug#end()
" visual
@ -219,4 +220,8 @@ au BufRead,BufNewFile *.circuit set filetype=go-snark-circuit
" for file watching
set backupcopy=yes
" shortcut for theme change
nnoremap <F9> :colorscheme molokai \| set background=dark<CR>
nnoremap <F10> :colorscheme one \| set background=light<CR>
colorscheme molokai

+ 2
- 0
launch-scripts/brightnesshigh.sh

@ -0,0 +1,2 @@
#!/bin/sh
echo "6800" > /sys/class/backlight/intel_backlight/brightness

+ 2
- 0
launch-scripts/brightnesslow.sh

@ -0,0 +1,2 @@
#!/bin/sh
echo "2000" > /sys/class/backlight/intel_backlight/brightness

+ 1
- 0
raspberry/netplan-config.yaml

@ -1,4 +1,5 @@
# static ip configuration
# /etc/netplan/50-cloud-init.yaml
network:
ethernets:

Loading…
Cancel
Save