xresources, st, nvim and more

This commit is contained in:
vibikim 2020-08-22 19:04:56 +03:00
parent 46f5dcc0b3
commit dc022c5837
15 changed files with 145 additions and 237 deletions

38
.Xresources Normal file
View file

@ -0,0 +1,38 @@
! special
*.foreground: #cee3eb
*.background: #010202
*.cursorColor: #cee3eb
*.font: TerminessTTF Nerd Font Mono:size=12
! black
*.color0: #020405
*.color8: #51a285
! red
*.color1: #0e1416
*.color9: #E36441
! green
*.color2: #1d272a
*.color10: #93a350
! yellow
*.color3: #314045
*.color11: #e38c41
! blue
*.color4: #4c6067
*.color12: #5ac9e6
! magenta
*.color5: #6c8791
*.color13: #f947b5
! cyan
*.color6: #91b5c2
*.color14: #52d4a9
! white
*.color7: #d3e6ed
*.color15: #9fb52e

View file

@ -145,6 +145,7 @@ export YAOURT_COLORS="nb=1:pkg=1:ver=1;32:lver=1;45:installed=1;42:grp=1;34:od=1
# User added aliases
alias yeet='yay'
alias vim='nvim'
alias gcloud-ssh-bot='gcloud beta compute --project "vibot-discord" ssh --zone "europe-west3-c" "redbot"'
alias gcloud-ssh-multipurpose='gcloud beta compute --project "multipurpose-vps-264707" ssh --zone "us-west2-c" "vibikim@halo" --ssh-flag="-p 22"'

View file

@ -1,8 +1,8 @@
# This runs at login. Normally environmental variables are set here.
# Default programs:
export EDITOR="vim"
export TERMINAL="kitty"
export EDITOR="nvim"
export TERMINAL="st"
export BROWSER="firefox"
export READER="zathura"
export FILEMANAGER="pcmanfm"

View file

@ -1,18 +1,19 @@
# My dotfiles~
### My dotfiles are a hot mess right now
### My dotfiles are a hot mess right now (but more and more manageable with every commit)
I made this repo mostly to keep my dotfiles in sync across computers, so yeah...
It's mostly defaults or other's configs slightly modified to my taste.
What I use right now (stuff I have to install on a fresh linux install):
------------------------------------------------------------------------
* bspwm
* sxhkd
* polybar
* dunst
* kitty (will do st in the future)
* pcmanfm and lf
* st -- my build is [right here ](https://github.com/vibikim/st)
* nemo and lf
* rofi AND dmenu (weird i know)
* vim
* neovim
* copyq
* flameshot
* nitrogen
@ -20,6 +21,7 @@ What I use right now (stuff I have to install on a fresh linux install):
* xfce4-power-manager
* nm-applet
* lxqt-policykit
* pavucontrol
* firefox
* rhythmbox -- TODO migrate to a MPD based music player
* lxapperance (optional)

View file

@ -50,10 +50,28 @@ bspc config borderless_monocle true
bspc config gapless_monocle true
#TODO adauga culori din Xresources
###
# COLORS
###
# Read colors from Xresources and use them upfront
# I am sorry for how cursed this is
clist=`xrdb -query`
echo "$clist" | while read line
do
name=$(echo $line | cut -d: -f1)
color=$(echo $line | cut -d: -f2)
case "$name" in
"*.color6") bspc config active_border_color $color \
&& bspc config presel_feedback_color $color ;;
"*.background") bspc config normal_border_color $color ;;
"*.foreground") bspc config focused_border_color $color ;;
esac
done
#bspc config normal_border_color
#bspc config active_border_color
#bspc config focused_border_color

View file

@ -14,6 +14,7 @@ goconfig() {
gohome .bashrc
gohome .profile
gohome .vimrc
gohome .Xresources
goconfig bspwm
goconfig dunst
@ -21,3 +22,4 @@ goconfig polybar
goconfig kitty
goconfig sxhkd
goconfig picom.conf
goconfig nvim

View file

@ -1,29 +0,0 @@
font_family GohuFont Nerd Font Mono
bold_font mononoki Nerd Font Mono
italic_font mononoki Nerd Font Mono
bold_italic_font mononoki Nerd Font Mono
font_size 10
window_padding_width 3
adjust_line_height 0
adjust_column_width 0
remember_window_size no
initial_window_width 80c
initial_window_height 25c
window_resize_step_cells 1
window_resize_step_lines 1
cursor_blink_interval 0.8
cursor_stop_blinking_after 15.0
cursor_shape block
background_opacity 0.90
dim_opacity 1
map alt+c copy_to_clipboard
map alt+v paste_from_clipboard
include sunset.conf

View file

@ -1,29 +0,0 @@
foreground #DCDCDC
background #1D1F28
selection_foreground #1D1F28
selection_background #DCDCDC
color0 #282A36
color8 #282A36
color1 #F37F97
color9 #F37F97
color2 #5ADECD
color10 #5ADECD
color3 #F2A272
color11 #F2A272
color4 #8897F4
color12 #8897F4
color5 #C574DD
color13 #C574DD
color6 #79E6F3
color14 #79E6F3
color7 #DCDCDC
color15 #DCDCDC

View file

@ -1,25 +0,0 @@
background #1A2026
#background #261A20
foreground #DCDCDC
selection_background #DCDCDC
selection_foreground #1A2026
cursor #DCDCDC
color0 #3F3F4F
color1 #CF9086
color2 #60b48a
color3 #dfaf8f
color4 #9ab8d7
color5 #dc8cc3
color6 #8cd0d3
color7 #DCDCDC
color8 #4F4F5F
color9 #DCA3A3
color10 #72D5A3
color11 #F0DFAF
color12 #94BFF3
color13 #EC93D3
color14 #93E0E3
color15 #FFFFFF

View file

@ -1,24 +0,0 @@
background #191919
foreground #fafafa
selected_background #fafafa
selected_foreground #191919
color0 #191919
color1 #FF4E50
color2 #FC913A
color3 #F9D423
color4 #EDE574
color5 #E1F5C4
color6 #a0a0a0
color7 #fafafa
color8 #4f4f4f
color9 #FF4E50
color10 #FC913A
color11 #F9D423
color12 #EDE574
color13 #E1F5C4
color14 #a0a0a0
color15 #fafafa

11
nvim/.netrwhist Normal file
View file

@ -0,0 +1,11 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhistcnt =9
let g:netrw_dirhist_9='/home/vibikim/repos/st'
let g:netrw_dirhist_8='/home/vibikim/repos'
let g:netrw_dirhist_7='/home/vibikim/repos/st'
let g:netrw_dirhist_6='/home/vibikim/repos'
let g:netrw_dirhist_5='/home/vibikim/repos/dotfiles/polybar'
let g:netrw_dirhist_4='/home/vibikim'
let g:netrw_dirhist_3='/home/vibikim/.config/awesome'
let g:netrw_dirhist_2='/home/vibikim/.config'
let g:netrw_dirhist_1='/home/vibikim'

42
nvim/init.vim Normal file
View file

@ -0,0 +1,42 @@
let mapleader=" "
" Basic stuff
set mouse=a
set nocompatible
set nohlsearch
filetype plugin on
syntax on
set encoding=utf-8
set number
set termguicolors
" Enable spell checking, s for spell check
map <leader>se :setlocal spell! spelllang=en<CR>
map <leader>sr :setlocal spell! spelllang=ro<CR>
" Easier Write and Quit aliases
nnoremap <leader>q :q<CR>
nnoremap <leader>Q :wq<CR>
nnoremap <leader>w :w<CR>
" ###
" # Plugins
" ###
call plug#begin('~/.local/share/nvim/plugged')
Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' }
call plug#end()
" hexokinase
let g:Hexokinase_refreshEvents = ['InsertLeave']
let g:Hexokinase_highlighters = ['backgroundfull']
autocmd VimEnter * HexokinaseTurnOn
" ###
" # Key Remapping
" ###
map <C-s> :source ~/.config/nvim/init.vim<CR>

View file

@ -165,19 +165,31 @@ pseudo-transparency = false
[color]
bg = #141C21
; bg = #141C21
; fg = #D9DBDF this is something white
fg = #AFB42B
fg-alt = #141C21
; fg = #AFB42B
; fg-alt = #141C21
; alpha = #00000000
; shade1 = #AFB42B
; shade2 = #C0CA33
; shade3 = #CDDC39
; shade4 = #D4E157
; shade5 = #DCE775
; shade6 = #E6EE9C
bg = ${xrdb:background}
fg = ${xrdb:foreground}
fg-alt = ${xrdb:color0}
alpha = #00000000
shade1 = #AFB42B
shade2 = #C0CA33
shade3 = #CDDC39
shade4 = #D4E157
shade5 = #DCE775
shade6 = #E6EE9C
shade1 = ${xrdb:color2}
shade2 = ${xrdb:color3}
shade3 = ${xrdb:color4}
shade4 = ${xrdb:color5}
shade5 = ${xrdb:color6}
shade6 = ${xrdb:color7}
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
;;
@ -207,7 +219,7 @@ label-volume = %{A3:pavucontrol &:}%percentage%%%{A}
format-muted-background = ${color.shade4}
format-muted-foreground = ${color.fg-alt}
format-muted-padding = 2
label-muted = %{A3:pavucntrol &:}""%{A}
label-muted = %{A3:pavucntrol &:}%{A}
ramp-volume-0 =

View file

@ -15,6 +15,8 @@ super + shift + v
pavucontrol
super + shift + f
$FILEMANAGER
super + shift + n
thunderbird
super + shift + Return
$FILEMANAGER

View file

@ -1,113 +0,0 @@
[options]
#allow_bold = true
#audible_bell = false
#bold_is_bright = true
#cell_height_scale = 1.0
#cell_width_scale = 1.0
#clickable_url = true
#dynamic_title = true
#font = Mononoki Nerd Font Mono 12
font = Mononoki Nerd Font Mono 10
#fullscreen = true
#icon_name = terminal
#mouse_autohide = false
#scroll_on_output = false
#scroll_on_keystroke = true
# Length of the scrollback buffer, 0 disabled the scrollback buffer
# and setting it to a negative value means "infinite scrollback"
scrollback_lines = 10000
#search_wrap = true
#urgent_on_bell = true
#hyperlinks = false
[colors]
# Base16 Harmonic16 Dark
# Author: Jannik Siebert (https://github.com/janniks)
foreground_bold = #e5ebf1
#cursor = #e5ebf1
cursor = #DCDCDC
cursor_foreground = #0b1c2c
#background = #1D1F28
# 16 color space
# theme: NIGHT
#foreground = #DCDCDC
#background = rgba(30, 32, 41, 0.98)
#color0 = #282A36
#color1 = #F37F97
#color2 = #5ADECD
#color3 = #F2A272
#color4 = #8897F4
#color5 = #C574DD
#color6 = #79E6F3
#color7 = #DCDCDC
#color8 = #282A36
#color9 = #F37F97
#color10 = #5ADECD
#color11 = #F2A272
#color12 = #8897F4
#color13 = #C574DD
#color14 = #79E6F3
#color15 = #DCDCDC
# theme: SUNSET
background = #191919
foreground = #fafafa
color0 = #191919
color1 = #FF4E50
color2 = #FC913A
color3 = #F9D423
color4 = #EDE574
color5 = #E1F5C4
color6 = #a0a0a0
color7 = #fafafa
color8 = #4f4f4f
color9 = #FF4E50
color10 = #FC913A
color11 = #F9D423
color12 = #EDE574
color13 = #E1F5C4
color14 = #a0a0a0
color15 = #fafafa
# Black, Gray, Silver, White
#color0 = #0b1c2c
#color8 = #627e99
#color7 = #cbd6e2
#color15 = #f7f9fb
# Red
#color1 = #bf8b56
#color9 = #bf8b56
# Green
#color2 = #56bf8b
#color10 = #56bf8b
# Yellow
#color3 = #8bbf56
#color11 = #8bbf56
# Blue
#color4 = #8b56bf
#color12 = #8b56bf
# Purple
#color5 = #bf568b
#color13 = #bf568b
# Teal
#color6 = #568bbf
#color14 = #568bbf
# Extra colors
color16 = #bfbf56
color17 = #bf5656
color18 = #223b54
color19 = #405c79
color20 = #aabcce
color21 = #e5ebf1