aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbdus <mail@abdus.xyz>2020-09-10 01:13:06 +0530
committerAbdus <mail@abdus.xyz>2020-09-10 01:13:06 +0530
commit1e9120864e671da7cbb867f3fed4a4c4095fc7f9 (patch)
tree0e741510c828e8eb97199daf18c863d2384f7f04
parent0368fc24eb03232d0f9acebcdf92c7d9e7e29435 (diff)
downloaddotfiles-1e9120864e671da7cbb867f3fed4a4c4095fc7f9.tar.bz2
dotfiles-1e9120864e671da7cbb867f3fed4a4c4095fc7f9.zip
routine update
-rw-r--r--PKGBUILD3
-rw-r--r--alacritty/alacritty.yml30
-rw-r--r--git/.gitconfig5
-rw-r--r--mako/config2
-rw-r--r--sway/config16
-rw-r--r--vim/init.vim6
-rw-r--r--waybar/conf.d/config.material27
-rw-r--r--waybar/styles.d/style.material.css8
-rw-r--r--zsh/.zshrc5
9 files changed, 84 insertions, 18 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 37fcc6a..b60161e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -35,4 +35,7 @@ depends=(
'shfmt'
'prettier'
'mako'
+ 'ranger'
+ 'feh'
+ 'cronie'
)
diff --git a/alacritty/alacritty.yml b/alacritty/alacritty.yml
index 4271352..8f8c87d 100644
--- a/alacritty/alacritty.yml
+++ b/alacritty/alacritty.yml
@@ -181,9 +181,9 @@ font:
# If `true`, bold text is drawn using the bright color variants.
# draw_bold_text_with_bright_colors: true
-# Colors (Tomorrow Night Bright)
-
+# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# gruvbox - https://github.com/morhetz/gruvbox
+# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
colors:
# Default colors
primary:
@@ -214,6 +214,32 @@ colors:
cyan: '#8ec07c'
white: '#ebdbb2'
+# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+# adopted from https://github.com/bluz71/vim-nightfly-guicolors
+# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+#colors:
+ #primary:
+ #background: '#011627'
+ #foreground: '#C3CCDC'
+ #normal:
+ #black: '#011627'
+ #red: '#FC514E'
+ #green: '#A1CD5E'
+ #yellow: '#E3D18A'
+ #blue: '#82AAFF'
+ #magenta: '#ef1334'
+ #cyan: '#22f7f3'
+ #white: '#C3CCDC'
+ #bright:
+ #black: '#011627'
+ #red: '#FF5874'
+ #green: '#21C7A8'
+ #yellow: '#ECC48D'
+ #blue: '#AE81FF'
+ #magenta: '#d3869b'
+ #cyan: '#8ec07c'
+ #white: '#ebdbb2'
+
draw_bold_text_with_bright_colors: true
# Visual Bell
diff --git a/git/.gitconfig b/git/.gitconfig
index 2da502c..9181474 100644
--- a/git/.gitconfig
+++ b/git/.gitconfig
@@ -11,3 +11,8 @@
smtpserver = smtp.gmail.com
smtpuser = mail@abdus.xyz
smtpserverport = 587
+ annotate = yes
+[format]
+ signOff = yes
+[credential]
+ helper = cache --timeout 3600
diff --git a/mako/config b/mako/config
index 39bb0b0..9b191fb 100644
--- a/mako/config
+++ b/mako/config
@@ -10,7 +10,7 @@ border-size=4
border-radius=1
default-timeout=5000
icon-path=/usr/share/icons/Papirus/
-max-icon-size=32
+max-icon-size=40
anchor=top-right
progress-color=source #ff0000
format=<span color="#50fa7b">%s</span>\n%b
diff --git a/sway/config b/sway/config
index 08389a9..d705d65 100644
--- a/sway/config
+++ b/sway/config
@@ -14,11 +14,13 @@ set $down j
set $up k
set $right l
# Your preferred terminal emulator
-set $term alacritty
+set $term kitty
# 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 $menu rofi -show drun -theme material -icon-theme "Papirus"
+
+set $menu dmenu_run -l 15 -nb "#282a36" -nf "#fff" -sb "#50fa7b" -sf "#282a36" -fn "IBM Plex Mono" -p "exec:"
### Output configuration
#
@@ -145,7 +147,7 @@ input * {
# apps
# floating terminal
- for_window [app_id="float"] floating enable, border pixel 0, sticky enable
+ for_window [app_id="float"] floating enable, border pixel 3, sticky enable
bindsym $mod+Shift+Return exec $term --class launcher
# Open Browser
@@ -160,7 +162,7 @@ input * {
# Take screenshot
bindsym Print exec grim "$HOME/Pictures/screenshots/$(date +%F\ %T).png"
- # Take screenshot by selecting a region
+ # Take screenshot by selecting a region
bindsym Shift+Print exec grim -g "$(slurp)" "$HOME/Pictures/screenshots/$(date +%F\ %T).png"
# Open Discord
@@ -171,7 +173,7 @@ input * {
# exec python ~/Desktop/window-opacity-control.py
# sway-launcher
- for_window [app_id="launcher"] floating enable, border pixel 0, sticky enable
+ for_window [app_id="launcher"] floating enable, border pixel 3, sticky enable
# brightness ctl
bindsym XF86MonBrightnessUp exec brightnessctl s +10%
@@ -281,7 +283,7 @@ gaps inner 2
smart_gaps on
# hide_edge_borders smart_no_gaps
-default_border pixel 10 # hide window titlebar
+default_border pixel 3
# Window colors
# class border background text indicator child_border
@@ -289,7 +291,7 @@ client.focused #50fa7b #ffffff20 #ffffff #ffffff20 #50f
# client.focused_inactive #5c6370 #3b3228 #ffffff #5c6370 #5c6370
client.unfocused #ffffff #3b3228 #000000 #5c6370 #ffffff
# client.urgent #cb6077 #3b3228 #ffffff #cb6077 #cb6077
-# client.placeholder #000000 #3b3228 #ffffff #000000 #0c0c0c
+# client.placeholder #000000 #3b3228 #ffffff #000000 #0c0c0c
# client.background #fffffff #ffffff
include /etc/sway/config.d/*
diff --git a/vim/init.vim b/vim/init.vim
index c8cfdba..373c7a5 100644
--- a/vim/init.vim
+++ b/vim/init.vim
@@ -85,6 +85,7 @@ let g:gruvbox_invert_selection = 0
colorscheme gruvbox " color theme
let g:airline_theme = "gruvbox" " airline theme
+
let g:airline#extensions#tabline#enabled = 1 " enable upper tabline
let g:airline#extensions#tabline#fnamemod = ':t' " no idea what this does
let g:airline_powerline_fonts = 1 " use powerline fonts in airline
@@ -136,8 +137,8 @@ let g:ale_fixers['*'] = ['remove_trailing_lines', 'trim_whitespace']
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let wiki_default = {}
let wiki_default.path = "~/vimwiki/"
-let wiki_default.syntax = "default"
-let wiki_default.ext = ".vimwiki"
+let wiki_default.syntax = "markdown"
+let wiki_default.ext = ".md"
let wiki_default.path_html = "/tmp/vimwiki_html"
let g:vimwiki_list = [wiki_default]
@@ -196,6 +197,7 @@ endif
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
inoremap <C-CR> <CR><Esc>kA<CR>| " indented newline on Ctrl + Enter
inoremap ii <esc>| " use ii to exit modes
+inoremap <C-b> <esc>lce
nnoremap
\ <silent><expr> <Leader>H
diff --git a/waybar/conf.d/config.material b/waybar/conf.d/config.material
index 02c9d55..8268fcb 100644
--- a/waybar/conf.d/config.material
+++ b/waybar/conf.d/config.material
@@ -4,7 +4,18 @@
//"height": 90, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
// Choose the order of the modules
- "modules-left": ["custom/logo", "sway/mode", "pulseaudio#icon", "pulseaudio#sound", "backlight#icon", "backlight#value", "custom/emailicon", "custom/unreademail"],
+ "modules-left": [
+ "custom/logo",
+ "sway/mode",
+ "pulseaudio#icon",
+ "pulseaudio#sound",
+ "backlight#icon",
+ "backlight#value",
+ "custom/emailicon",
+ "custom/unreademail",
+ "custom/icon-cube",
+ "custom/pacman-package-count"
+ ],
"modules-center": ["sway/workspaces"],
"modules-right": ["network", "cpu", "battery", "battery#bat2", "clock", "tray"],
"sway/mode": {
@@ -132,8 +143,18 @@
"custom/unreademail": {
"format": "{}",
- "interval": 240, // in every 4 mins
"exec": "cat /tmp/unread-email-count.txt || echo ErrNF",
- "signal": 2
+ "signal": 2,
+ "interval": 10,
},
+
+ "custom/icon-cube": {
+ "format": ""
+ },
+
+ "custom/pacman-package-count": {
+ "format": "{}",
+ "exec": "echo `pacman -Qe | wc -l`",
+ "interval": 3600
+ }
}
diff --git a/waybar/styles.d/style.material.css b/waybar/styles.d/style.material.css
index 272c899..56479e8 100644
--- a/waybar/styles.d/style.material.css
+++ b/waybar/styles.d/style.material.css
@@ -64,7 +64,9 @@ window#waybar.hidden {
#mpd,
#custom-logo,
#custom-emailicon,
-#custom-unreademail {
+#custom-unreademail,
+#custom-pacman-package-count,
+#custom-icon-cube {
padding: 0.5rem 0.7rem;
color: #ffffff;
margin: 10px 0;
@@ -179,7 +181,8 @@ label:focus {
color: #282a36;
}
-#custom-emailicon {
+#custom-emailicon,
+#custom-icon-cube {
background: #50fa7b;
color: #282a36;
}
@@ -188,4 +191,3 @@ label:focus {
background: #282a36;
min-width: 15px;
}
-
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 0df87da..c21166c 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -10,6 +10,9 @@ source $ZSH/oh-my-zsh.sh
# User configuration
export EDITOR="nvim"
+# enable vi mode
+bindkey -v
+
# Run neofetch on start-up
clear && echo '' && echo '' && neofetch
@@ -47,6 +50,7 @@ export FZF_DEFAULT_OPTS="--layout=reverse --height=40%"
#==== ALIAS ==============================================================
alias vim="/usr/bin/nvim"
+alias mutt="neomutt"
alias cd="cd $1"
alias ..="cd ../"
@@ -70,6 +74,7 @@ alias waybarconf="/usr/bin/nvim ~/.config/waybar/config"
alias dotfiles="cd ~/Dev/dotfiles"
+
#==== FUNCTIONS ==========================================================
function cd() {
builtin cd "$@" && tree -L 2 --noreport;