aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbdus <mail@abdus.xyz>2020-10-02 00:20:01 +0530
committerAbdus <mail@abdus.xyz>2020-10-02 00:20:01 +0530
commit2cea3c2dcec7d9a62203033523fab4eb72429a12 (patch)
tree2daa047d32434df904d9b53c7326bc34d17796cd
parentf00fb9c2b9568252c3ae0ae5ae6bf936397eba5a (diff)
downloaddotfiles-2cea3c2dcec7d9a62203033523fab4eb72429a12.tar.bz2
dotfiles-2cea3c2dcec7d9a62203033523fab4eb72429a12.zip
:zap: automated updates
-rw-r--r--alacritty/alacritty.yml75
-rw-r--r--kitty/kitty.conf3
-rw-r--r--rofi/material.rasi14
-rw-r--r--sway/config13
-rw-r--r--vim/init.vim46
-rw-r--r--zsh/.zshrc3
6 files changed, 119 insertions, 35 deletions
diff --git a/alacritty/alacritty.yml b/alacritty/alacritty.yml
index 8f8c87d..a64ffd2 100644
--- a/alacritty/alacritty.yml
+++ b/alacritty/alacritty.yml
@@ -182,37 +182,68 @@ font:
# draw_bold_text_with_bright_colors: true
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-# gruvbox - https://github.com/morhetz/gruvbox
+# ayu dark
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
colors:
# Default colors
primary:
- # hard contrast: background = '#1d2021'
- background: '#282828'
- # soft contrast: background = '#32302f'
- foreground: '#ebdbb2'
+ background: '#1F2430'
+ foreground: '#CBCCC6'
# Normal colors
normal:
- black: '#282828'
- red: '#cc241d'
- green: '#98971a'
- yellow: '#d79921'
- blue: '#458588'
- magenta: '#b16286'
- cyan: '#689d6a'
- white: '#a89984'
+ black: '#1F2430'
+ red: '#FF3333'
+ green: '#BAE67E'
+ yellow: '#FFA759'
+ blue: '#73D0FF'
+ magenta: '#F28779'
+ cyan: '#39BAE6'
+ white: '#FFFFFF'
# Bright colors
bright:
- black: '#928374'
- red: '#fb4934'
- green: '#b8bb26'
- yellow: '#fabd2f'
- blue: '#83a598'
- magenta: '#d3869b'
- cyan: '#8ec07c'
- white: '#ebdbb2'
+ black: '0x686868'
+ red: '#F51818'
+ green: '#A6CC70'
+ yellow: '0xFFB454'
+ blue: '0x59C2FF'
+ magenta: '0xFFEE99'
+ cyan: '0x95E6CB'
+ white: '0xFFFFFF'
+
+# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+# gruvbox - https://github.com/morhetz/gruvbox
+# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+#colors:
+ ## Default colors
+ #primary:
+ ## hard contrast: background = '#1d2021'
+ #background: '#282828'
+ ## soft contrast: background = '#32302f'
+ #foreground: '#ebdbb2'
+
+ ## Normal colors
+ #normal:
+ #black: '#282828'
+ #red: '#cc241d'
+ #green: '#98971a'
+ #yellow: '#d79921'
+ #blue: '#458588'
+ #magenta: '#b16286'
+ #cyan: '#689d6a'
+ #white: '#a89984'
+
+ ## Bright colors
+ #bright:
+ #black: '#928374'
+ #red: '#fb4934'
+ #green: '#b8bb26'
+ #yellow: '#fabd2f'
+ #blue: '#83a598'
+ #magenta: '#d3869b'
+ #cyan: '#8ec07c'
+ #white: '#ebdbb2'
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# adopted from https://github.com/bluz71/vim-nightfly-guicolors
@@ -272,7 +303,7 @@ draw_bold_text_with_bright_colors: true
#
# Window opacity as a floating point number from `0.0` to `1.0`.
# The value `0.0` is completely transparent and `1.0` is opaque.
-background_opacity: 0.95
+background_opacity: 1
#selection:
#semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
diff --git a/kitty/kitty.conf b/kitty/kitty.conf
index 2097783..053cd06 100644
--- a/kitty/kitty.conf
+++ b/kitty/kitty.conf
@@ -8,9 +8,10 @@ adjust_column_width 0
cursor #ff0000
cursor_shape beam
-background_opacity 0.9
+background_opacity 1.0
scrollback_lines 200000
+open_url_modifiers none
enable_audio_bell no
visual_bell_duration 0.0
diff --git a/rofi/material.rasi b/rofi/material.rasi
index ab4b019..b0f7ca8 100644
--- a/rofi/material.rasi
+++ b/rofi/material.rasi
@@ -3,10 +3,12 @@
*/
configuration {
- display-drun: "Activate";
- display-run: "Execute";
+ display-drun: "Open";
+ display-run: "Exec";
show-icons: true;
- sidebar-mode: true;
+ sidebar-mode: false;
+ sort: true;
+ fullscreen: true;
}
* {
@@ -38,7 +40,7 @@ configuration {
hide-scrollbar: "true";
margin: 0px;
padding: 0px;
- font: "Roboto medium 10";
+ font: "Roboto medium 10";
}
window {
@@ -57,7 +59,7 @@ mainbox {
spacing: 0em;
padding: 0px;
width: 100%;
- children: [ inputbar, listview ];
+ children: [ listview, inputbar ];
expand: true;
}
@@ -70,6 +72,8 @@ button selected {
inputbar {
children: [ entry ];
+ border: 1px 0 0 0 dash;
+ border-color: rgb(80, 250, 123);
}
textbox-prompt-colon {
diff --git a/sway/config b/sway/config
index 811f612..c7b4b58 100644
--- a/sway/config
+++ b/sway/config
@@ -7,20 +7,21 @@
### Variables
#
# Logo key. Use Mod1 for Alt.
-set $mod Mod1
+set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
-set $term kitty
+set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
-#set $menu rofi -show drun -theme material -icon-theme "Papirus"
+set $rofi rofi -combi-modi window,drun,ssh,run -theme material -icon-theme "Papirus" -show combi
+set $dmenu dmenu_run -l 15 -nb "#282a36" -nf "#fff" -sb "#50fa7b" -sf "#282a36" -fn "IBM Plex Mono" -p "exec:"
-set $menu dmenu_run -l 15 -nb "#282a36" -nf "#fff" -sb "#50fa7b" -sf "#282a36" -fn "IBM Plex Mono" -p "exec:"
+set $menu $dmenu
### Output configuration
#
@@ -75,6 +76,7 @@ input * {
# Start your launcher
bindsym $mod+d exec $menu
+ bindsym $mod+Shift+d exec $rofi
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
@@ -180,6 +182,9 @@ input * {
bindsym XF86MonBrightnessDown exec brightnessctl s 10%-
bindsym XF86ScreenSaver exec brightnessctl s 0%
+ # lock screen
+ bindsym $mod+x exec lock-screen.sh
+
#
# Layout stuff:
#
diff --git a/vim/init.vim b/vim/init.vim
index 34ea7cb..3e98e3a 100644
--- a/vim/init.vim
+++ b/vim/init.vim
@@ -22,15 +22,18 @@ set lbr wrap nolist " breaks line whenever needed/on resize
set cursorline " highlight cursorline
set splitbelow splitright " new windows below and right of the current one
+au BufRead,BufNewFile *.md set textwidth=80 " wrap lines exceeding 80 chars
+
let g:mapleader = ',' " keybinding leader
call plug#begin('~/.config/nvim/plug')
-Plug 'abdus/palenight.vim' " color theme
+"Plug 'abdus/palenight.vim' " color theme
Plug 'vim-airline/vim-airline' " airline (bottom bar)
-Plug 'morhetz/gruvbox'
+"Plug 'morhetz/gruvbox'
Plug 'ayu-theme/ayu-vim'
+Plug 'chrisbra/Colorizer' " highlight colorcodes and names
Plug 'preservim/nerdtree' " file manager plugin
Plug 'preservim/nerdcommenter' " comments
@@ -90,7 +93,7 @@ let ayucolor="mirage"
colorscheme ayu
let g:airline_theme = "ayu"
-" indent line
+" indent line
let g:indentLine_char = ''
let g:indentLine_first_char = ''
let g:indentLine_showFirstIndentLevel = 1
@@ -189,6 +192,43 @@ if has('persistent_undo')
endif
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" >- Autosave Sessions
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" create a session based on currently opened directory and save it on vim exit
+fu! SessionSave()
+ if filewritable(expand('~/.vim/sessions/' . split(getcwd(), '/')[-1] . '.vim'))
+ execute 'mksession! ~/.vim/sessions/' . split(getcwd(), '/')[-1] . '.vim'
+ endif
+endfunction
+
+fu! SessionCreate()
+ if !isdirectory(expand("~/.vim/sessions"))
+ execute "call mkdir(expand('~/.vim/sessions', 'p'))"
+ endif
+ execute 'mksession ~/.vim/sessions/' . split(getcwd(), '/')[-1] . '.vim'
+endfunction
+
+fu! SessionRestore()
+ let l:session_file = '~/.vim/sessions/' . split(getcwd(), '/')[-1] . '.vim'
+ if filereadable(expand(session_file))
+ echo session_file
+ execute 'source ~/.vim/sessions/' . split(getcwd(), '/')[-1] . '.vim'
+
+ if bufexists(1)
+ for l in range(1, bufnr('$'))
+ if bufwinnr(l) == -1
+ exec 'sbuffer ' . l
+ endif
+ endfor
+ endif
+ endif
+endfunction
+
+autocmd VimLeave * call SessionSave()
+autocmd VimEnter * nested call SessionRestore()
+command SessCreate call SessionCreate()
+set sessionoptions-=options " dont save options
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 0d2ca22..faf9d93 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -71,10 +71,13 @@ alias roficonf="/usr/bin/nvim ~/.config/rofi/material.rasi"
alias waybarconf="/usr/bin/nvim ~/.config/waybar/config"
alias dotfiles="cd ~/Dev/dotfiles"
+alias startjsinfo="cd /home/crow/Dev/personal/javascript.info/server && sudo PORT=80 ./edit en"
alias icat="kitty +kitten icat"
alias feh="feh -S filename --borderless"
alias wfrecord="/usr/bin/wf-recorder"
+alias swaylock="swaylock --screenshots --clock --indicator --indicator-radius 100 --indicator-thickness 20 --effect-blur 10x5 --effect-vignette 0.5:0.5 --ring-color 50fa7b --key-hl-color 880033 --line-color 00000000 --inside-color 50fa7b88 --separator-color ff000000 --grace 2 --fade-in 0.5"
+alias killwaybar="kill -9 `pidof waybar`"
#==== FUNCTIONS ==========================================================