aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbdus <mail@abdus.xyz>2020-09-01 12:09:42 +0530
committerAbdus <mail@abdus.xyz>2020-09-01 12:09:42 +0530
commit0368fc24eb03232d0f9acebcdf92c7d9e7e29435 (patch)
treec760709dc968f6d0395f5c3b798a21f11fb8b1a5
parent958ae635510eb8a385ca33cc43f81f40be8eab48 (diff)
downloaddotfiles-0368fc24eb03232d0f9acebcdf92c7d9e7e29435.tar.bz2
dotfiles-0368fc24eb03232d0f9acebcdf92c7d9e7e29435.zip
:tada: add mako config
-rw-r--r--PKGBUILD4
-rwxr-xr-xaggregate.sh30
-rw-r--r--alacritty/alacritty.yml53
-rw-r--r--git/.gitconfig5
-rw-r--r--mako/config16
-rw-r--r--sway/config4
-rw-r--r--vim/init.vim4
-rw-r--r--waybar/conf.d/config.material25
-rw-r--r--waybar/styles.d/style.material.css18
-rw-r--r--zsh/.zshrc95
10 files changed, 111 insertions, 143 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b2117f7..37fcc6a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,4 +31,8 @@ depends=(
'nodejs'
'grim'
'make'
+ 'brightnessctl'
+ 'shfmt'
+ 'prettier'
+ 'mako'
)
diff --git a/aggregate.sh b/aggregate.sh
index 5ac70b3..ac4119c 100755
--- a/aggregate.sh
+++ b/aggregate.sh
@@ -7,7 +7,7 @@
COMMAND=$1
-function update_eerything () {
+function update_eerything() {
# alacritty
rsync --out-format="%n" -La ~/.config/alacritty/* ./alacritty/
@@ -40,13 +40,17 @@ function update_eerything () {
# rofi
rsync --out-format="%n" -La ~/.config/rofi/* ./rofi/
+
+ # rofi
+ rsync --out-format="%n" -La ~/.config/mako/* ./mako/
+
}
if [[ $COMMAND == "clean" ]]; then
echo "Cleaing Workspace"
find . -type d -not -path "./.git/*" -not -name ".git" -exec rm -vrf {} +
elif [[ $COMMAND == "update" ]]; then
- update_eerything;
+ update_eerything
if [[ ! -d ".git" ]]; then
git init
@@ -62,19 +66,19 @@ fi
BADGES=""
# $1 program name $2 version number
-function gen_badges () {
+function gen_badges() {
BADGES="${BADGES}<img src='https://img.shields.io/badge/$1-$2-blueviolet' alt='$1' />\n"
}
gen_badges alacritty "v$(alacritty --version | grep -oe '[0-9].[0-9]*');" # alacritty
-gen_badges fzf "v$(fzf --version | grep -oe '[0-9].*\S')"; # fzf
-gen_badges git "v$(git --version | grep -ow '[0-9].*[0-9]')" # git
-gen_badges neofetch "v$(neofetch --version | grep -oe '[0-9].*[0-9]')"; # neofetch
-gen_badges vim "v8.2" # vim
-gen_badges neovim $(nvim --version | grep -ow 'v[0-9]*.*[0-9]') # nvim
-gen_badges waybar $(waybar --version | grep -ow 'v[0-9]*.*[0-9]') # waybar
-gen_badges zsh "v$(zsh --version | grep -oe '[0-9]\.[0-9]')" # zsh
-gen_badges sway "$(sway --version | grep -oe 'v[0-9].*')" # sway
-
-echo -e $BADGES | wl-copy;
+gen_badges fzf "v$(fzf --version | grep -oe '[0-9].*\S')" # fzf
+gen_badges git "v$(git --version | grep -ow '[0-9].*[0-9]')" # git
+gen_badges neofetch "v$(neofetch --version | grep -oe '[0-9].*[0-9]')" # neofetch
+gen_badges vim "v8.2" # vim
+gen_badges neovim $(nvim --version | grep -ow 'v[0-9]*.*[0-9]') # nvim
+gen_badges waybar $(waybar --version | grep -ow 'v[0-9]*.*[0-9]') # waybar
+gen_badges zsh "v$(zsh --version | grep -oe '[0-9]\.[0-9]')" # zsh
+gen_badges sway "$(sway --version | grep -oe 'v[0-9].*')" # sway
+
+echo -e $BADGES | wl-copy
echo "Badges Copied!"
diff --git a/alacritty/alacritty.yml b/alacritty/alacritty.yml
index 8b1bdcb..4271352 100644
--- a/alacritty/alacritty.yml
+++ b/alacritty/alacritty.yml
@@ -120,7 +120,7 @@ font:
#
# If the bold family is not specified, it will fall back to the
# value specified for the normal font.
- # family: monospace
+ #family: Inconsolata
# The `style` can be specified to pick a specific face.
style: Bold
@@ -183,42 +183,39 @@ font:
# Colors (Tomorrow Night Bright)
-# Base16 Material Palenight - alacritty color config
-# Nate Peterson
+# gruvbox - https://github.com/morhetz/gruvbox
colors:
# Default colors
primary:
- background: '0x292d3e'
- foreground: '0x959dcb'
-
- # Colors the cursor will use if `custom_cursor_colors` is true
- cursor:
- text: '0x292d3e'
- cursor: '0x959dcb'
+ # hard contrast: background = '#1d2021'
+ background: '#282828'
+ # soft contrast: background = '#32302f'
+ foreground: '#ebdbb2'
# Normal colors
normal:
- black: '0x292d3e'
- red: '0xf07178'
- green: '0xc3e88d'
- yellow: '0xffcb6b'
- blue: '0x82aaff'
- magenta: '0xc792ea'
- cyan: '0x89ddff'
- white: '0x959dcb'
+ black: '#282828'
+ red: '#cc241d'
+ green: '#98971a'
+ yellow: '#d79921'
+ blue: '#458588'
+ magenta: '#b16286'
+ cyan: '#689d6a'
+ white: '#a89984'
# Bright colors
bright:
- black: '0x676e95'
- red: '0xf78c6c'
- green: '0x444267'
- yellow: '0x32374d'
- blue: '0x8796b0'
- magenta: '0x959dcb'
- cyan: '0xff5370'
- white: '0xffffff'
-
-draw_bold_text_with_bright_colors: false
+ black: '#928374'
+ red: '#fb4934'
+ green: '#b8bb26'
+ yellow: '#fabd2f'
+ blue: '#83a598'
+ magenta: '#d3869b'
+ cyan: '#8ec07c'
+ white: '#ebdbb2'
+
+
+draw_bold_text_with_bright_colors: true
# Visual Bell
#
# Any time the BEL code is received, Alacritty "rings" the visual bell. Once
diff --git a/git/.gitconfig b/git/.gitconfig
index 3b45c10..2da502c 100644
--- a/git/.gitconfig
+++ b/git/.gitconfig
@@ -6,3 +6,8 @@
gpgsign = true
[core]
editor = nvim
+[sendemail]
+ smtpencryption = tls
+ smtpserver = smtp.gmail.com
+ smtpuser = mail@abdus.xyz
+ smtpserverport = 587
diff --git a/mako/config b/mako/config
new file mode 100644
index 0000000..39bb0b0
--- /dev/null
+++ b/mako/config
@@ -0,0 +1,16 @@
+max-visible=5
+layer=overlay
+font=IBM Plex Sans 12
+height=500
+text-color=#ffffff
+background-color=#282a36
+border-color=#50fa7b40
+padding=8,8,8,8
+border-size=4
+border-radius=1
+default-timeout=5000
+icon-path=/usr/share/icons/Papirus/
+max-icon-size=32
+anchor=top-right
+progress-color=source #ff0000
+format=<span color="#50fa7b">%s</span>\n%b
diff --git a/sway/config b/sway/config
index 4219392..08389a9 100644
--- a/sway/config
+++ b/sway/config
@@ -285,9 +285,9 @@ default_border pixel 10 # hide window titlebar
# Window colors
# class border background text indicator child_border
-client.focused #ff0000 #ffffff20 #ffffff #ffffff20 #ff0000
+client.focused #50fa7b #ffffff20 #ffffff #ffffff20 #50fa7b
# client.focused_inactive #5c6370 #3b3228 #ffffff #5c6370 #5c6370
-client.unfocused #5c6370 #3b3228 #000000 #5c6370 #5c6370
+client.unfocused #ffffff #3b3228 #000000 #5c6370 #ffffff
# client.urgent #cb6077 #3b3228 #ffffff #cb6077 #cb6077
# client.placeholder #000000 #3b3228 #ffffff #000000 #0c0c0c
# client.background #fffffff #ffffff
diff --git a/vim/init.vim b/vim/init.vim
index 878938a..c8cfdba 100644
--- a/vim/init.vim
+++ b/vim/init.vim
@@ -126,6 +126,7 @@ let g:ale_fixers.markdown = ['prettier']
let g:ale_fixers.javascript = ['prettier', 'eslint']
let g:ale_fixers.javascriptreact = ['prettier']
let g:ale_fixers.rust = ['rustfmt']
+let g:ale_fixers.sh = ['shfmt']
let g:ale_fixers['*'] = ['remove_trailing_lines', 'trim_whitespace']
@@ -269,8 +270,9 @@ map <C-n> :NERDTreeToggle<CR>| " Opens up NerdTree
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-nnoremap <space><space> :FZF<CR>| " open fuzzy search
+nnoremap <space>F :FZF<CR>| " open fuzzy search
nnoremap <space>f :Filetypes<CR>| " open filetype window
+nnoremap <space><space> :Buffers<CR>| " open fuzzy search
diff --git a/waybar/conf.d/config.material b/waybar/conf.d/config.material
index d76bbcc..02c9d55 100644
--- a/waybar/conf.d/config.material
+++ b/waybar/conf.d/config.material
@@ -4,7 +4,7 @@
//"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"],
+ "modules-left": ["custom/logo", "sway/mode", "pulseaudio#icon", "pulseaudio#sound", "backlight#icon", "backlight#value", "custom/emailicon", "custom/unreademail"],
"modules-center": ["sway/workspaces"],
"modules-right": ["network", "cpu", "battery", "battery#bat2", "clock", "tray"],
"sway/mode": {
@@ -44,11 +44,13 @@
"backlight#icon": {
// "device": "acpi_video1",
"format": "{icon}",
- "format-icons": ["", ""]
+ "format-icons": ["", ""],
+ "on-click": "ctl-backlight.waybar.sh down"
},
"backlight#value": {
// "device": "acpi_video1",
"format": "{percent}",
+ "on-click": "ctl-backlight.waybar.sh up"
},
"battery": {
"states": {
@@ -73,7 +75,9 @@
"format-ethernet": "",
"format-linked": "(No IP) ",
"format-disconnected": "",
- "format-alt": "{ifname}: {ipaddr}/{cidr}"
+ "format-alt": "{ifname}: {ipaddr}/{cidr}",
+ "interval": 20,
+ "signal": 1
},
"pulseaudio#sound": {
"format": "{volume}",
@@ -94,6 +98,7 @@
"format-bluetooth-muted": " {icon}",
"format-muted": "",
"format-source-muted": "",
+ "on-click": "pactl set-sink-mute 0 toggle",
"format-icons": {
"headphone": "",
"hands-free": "",
@@ -116,7 +121,19 @@
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
},
+
"custom/logo": {
"format": ""
- }
+ },
+
+ "custom/emailicon": {
+ "format": ""
+ },
+
+ "custom/unreademail": {
+ "format": "{}",
+ "interval": 240, // in every 4 mins
+ "exec": "cat /tmp/unread-email-count.txt || echo ErrNF",
+ "signal": 2
+ },
}
diff --git a/waybar/styles.d/style.material.css b/waybar/styles.d/style.material.css
index 4e3df52..272c899 100644
--- a/waybar/styles.d/style.material.css
+++ b/waybar/styles.d/style.material.css
@@ -62,7 +62,9 @@ window#waybar.hidden {
#mode,
#idle_inhibitor,
#mpd,
-#custom-logo {
+#custom-logo,
+#custom-emailicon,
+#custom-unreademail {
padding: 0.5rem 0.7rem;
color: #ffffff;
margin: 10px 0;
@@ -120,7 +122,8 @@ label:focus {
}
#backlight.value {
- margin-right: 10px;
+ margin-right: 0;
+ min-width: 20px;
}
#network {
@@ -175,3 +178,14 @@ label:focus {
font-size: 1.3em;
color: #282a36;
}
+
+#custom-emailicon {
+ background: #50fa7b;
+ color: #282a36;
+}
+
+#custom-unreademail {
+ background: #282a36;
+ min-width: 15px;
+}
+
diff --git a/zsh/.zshrc b/zsh/.zshrc
index d9b59bd..0df87da 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -3,102 +3,13 @@ export PATH=$HOME/bin:/usr/local/bin:$HOME/.npm-bin/bin:$HOME/.gem/ruby/2.6.0/bi
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
-
-# Set name of the theme to load --- if set to "random", it will
-# load a random theme each time oh-my-zsh is loaded, in which case,
-# to know which specific one was loaded, run: echo $RANDOM_THEME
-# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="flazz"
-
-# Set list of themes to pick from when loading at random
-# Setting this variable when ZSH_THEME=random will cause zsh to load
-# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
-# If set to an empty array, this variable will have no effect.
-# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
-
-# Uncomment the following line to use case-sensitive completion.
-# CASE_SENSITIVE="true"
-
-# Uncomment the following line to use hyphen-insensitive completion.
-# Case-sensitive completion must be off. _ and - will be interchangeable.
-# HYPHEN_INSENSITIVE="true"
-
-# Uncomment the following line to disable bi-weekly auto-update checks.
-# DISABLE_AUTO_UPDATE="true"
-
-# Uncomment the following line to automatically update without prompting.
-#DISABLE_UPDATE_PROMPT="true"
-
-# Uncomment the following line to change how often to auto-update (in days).
-#export UPDATE_ZSH_DAYS=20
-
-# Uncomment the following line if pasting URLs and other text is messed up.
-# DISABLE_MAGIC_FUNCTIONS=true
-
-# Uncomment the following line to disable colors in ls.
-# DISABLE_LS_COLORS="true"
-
-# Uncomment the following line to disable auto-setting terminal title.
-# DISABLE_AUTO_TITLE="true"
-
-# Uncomment the following line to enable command auto-correction.
-# ENABLE_CORRECTION="true"
-
-# Uncomment the following line to display red dots whilst waiting for completion.
-#COMPLETION_WAITING_DOTS="true"
-
-# Uncomment the following line if you want to disable marking untracked files
-# under VCS as dirty. This makes repository status check for large repositories
-# much, much faster.
-# DISABLE_UNTRACKED_FILES_DIRTY="true"
-
-# Uncomment the following line if you want to change the command execution time
-# stamp shown in the history command output.
-# You can set one of the optional three formats:
-# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
-# or set a custom format using the strftime function format specifications,
-# see 'man strftime' for details.
-#HIST_STAMPS="mm/dd/yyyy"
-
-# Would you like to use another custom folder than $ZSH/custom?
-# ZSH_CUSTOM=/path/to/new-custom-folder
-
-# Which plugins would you like to load?
-# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
-# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
-# Example format: plugins=(rails git textmate ruby lighthouse)
-# Add wisely, as too many plugins slow down shell startup.
plugins=()
-
source $ZSH/oh-my-zsh.sh
# User configuration
-
-# export MANPATH="/usr/local/man:$MANPATH"
-
-# You may need to manually set your language environment
-# export LANG=en_US.UTF-8
-
-# Preferred editor for local and remote sessions
-# if [[ -n $SSH_CONNECTION ]]; then
-# export EDITOR='nvim'
-# else
-# export EDITOR='nvim'
-# fi
export EDITOR="nvim"
-# Compilation flags
-# export ARCHFLAGS="-arch x86_64"
-
-# Set personal aliases, overriding those provided by oh-my-zsh libs,
-# plugins, and themes. Aliases can be placed here, though oh-my-zsh
-# users are encouraged to define aliases wihin the ZSH_CUSTOM folder.
-# For a full list of active aliases, run `alias`.
-#
-# Example aliases
-# alias zshconfig="mate ~/.zshrc"
-# alias ohmyzsh="mate ~/.oh-my-zsh"
-
# Run neofetch on start-up
clear && echo '' && echo '' && neofetch
@@ -132,12 +43,8 @@ fi
# fzf conf
export FZF_DEFAULT_OPTS="--layout=reverse --height=40%"
-
-
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
-
-
#==== ALIAS ==============================================================
alias vim="/usr/bin/nvim"
@@ -146,6 +53,8 @@ alias ..="cd ../"
alias ...="cd ../../"
alias 3.="cd ../../../"
+alias feh="feh -S filename --borderless"
+
alias ga="git add"
alias gaa="git add ."
alias gc="git commit -m"