feat: improved alacritty, awesome, zsh amd vim configs, incluing epitech header, better colors and more

This commit is contained in:
AngeD 2021-10-29 23:37:54 +02:00
parent 0239abc296
commit 279fc2bbb7
6 changed files with 72 additions and 138 deletions

View File

@ -176,141 +176,45 @@
#draw_bold_text_with_bright_colors: false #draw_bold_text_with_bright_colors: false
# Colors (Tomorrow Night) # Colors (Tomorrow Night)
#colors: colors:
# Default colors # Default colors
#primary: primary:
# background: '#1d1f21' background: '#1d1f21'
# foreground: '#c5c8c6' foreground: '#c5c8c6'
# Bright and dim foreground colors # Colors the cursor will use if `custom_cursor_colors` is true
# cursor:
# The dimmed foreground color is calculated automatically if it is not text: '#1d1f21'
# present. If the bright foreground color is not set, or cursor: '#ffffff'
# `draw_bold_text_with_bright_colors` is `false`, the normal foreground
# color will be used.
#dim_foreground: '#828482'
#bright_foreground: '#eaeaea'
# Cursor colors
#
# Colors which should be used to draw the terminal cursor.
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#cursor:
# text: CellBackground
# cursor: CellForeground
# Vi mode cursor colors
#
# Colors for the cursor when the vi mode is active.
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#vi_mode_cursor:
# text: CellBackground
# cursor: CellForeground
# Search colors
#
# Colors used for the search bar and match highlighting.
#search:
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#matches:
# foreground: '#000000'
# background: '#ffffff'
#focused_match:
# foreground: '#ffffff'
# background: '#000000'
#bar:
# background: '#c5c8c6'
# foreground: '#1d1f21'
# Keyboard regex hints
#hints:
# First character in the hint label
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#start:
# foreground: '#1d1f21'
# background: '#e9ff5e'
# All characters after the first one in the hint label
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#end:
# foreground: '#e9ff5e'
# background: '#1d1f21'
# Line indicator
#
# Color used for the indicator displaying the position in history during
# search and vi mode.
#
# By default, these will use the opposing primary color.
#line_indicator:
# foreground: None
# background: None
# Selection colors
#
# Colors which should be used to draw the selection area.
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#selection:
# text: CellBackground
# background: CellForeground
# Normal colors # Normal colors
#normal: normal:
# black: '#1d1f21' black: '#1d1f21'
# red: '#cc6666' red: '#cc6666'
# green: '#b5bd68' green: '#b5bd68'
# yellow: '#f0c674' yellow: '#e6c547'
# blue: '#81a2be' blue: '#81a2be'
# magenta: '#b294bb' magenta: '#b294bb'
# cyan: '#8abeb7' cyan: '#70c0ba'
# white: '#c5c8c6' white: '#373b41'
# Bright colors # Bright colors
#bright: bright:
# black: '#666666' black: '#666666'
# red: '#d54e53' red: '#ff3334'
# green: '#b9ca4a' green: '#9ec400'
# yellow: '#e7c547' yellow: '#f0c674'
# blue: '#7aa6da' blue: '#81a2be'
# magenta: '#c397d8' magenta: '#b77ee0'
# cyan: '#70c0b1' cyan: '#54ced6'
# white: '#eaeaea' white: '#282a2e'
# Dim colors # Transparent cell backgrounds
# #
# If the dim colors are not set, they will be calculated automatically based # Whether or not `window.opacity` applies to all cell backgrounds or only to
# on the `normal` colors. # the default background. When set to `true` all cells will be transparent
#dim: # regardless of their background color.
# black: '#131415' #transparent_background_colors: false
# red: '#864343'
# green: '#777c44'
# yellow: '#9e824c'
# blue: '#556a7d'
# magenta: '#75617b'
# cyan: '#5b7d78'
# white: '#828482'
# Indexed Colors
#
# The indexed colors include all colors from 16 to 256.
# When these are not set, they're filled with sensible defaults.
#
# Example:
# `- { index: 16, color: '#ff00ff' }`
#
#indexed_colors: []
# Bell # Bell
# #
@ -357,7 +261,7 @@
# #
# Window opacity as a floating point number from `0.0` to `1.0`. # 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. # The value `0.0` is completely transparent and `1.0` is opaque.
background_opacity: 0.8 background_opacity: 0.9
#selection: #selection:
# This string contains all characters that are used as separators for # This string contains all characters that are used as separators for

View File

@ -467,16 +467,16 @@ globalkeys = gears.table.join(
awful.key( awful.key(
{}, "XF86AudioRaiseVolume", {}, "XF86AudioRaiseVolume",
function() function()
awful.spawn.with_shell("pactl set-sink-mute 0 0 && pactl set-sink-volume 0 +5%") awful.spawn.with_shell("pactl set-sink-mute 0 0 && pactl set-sink-volume 0 +2%")
end, end,
{description = "increase volume by 5%", group = "hotkeys"} {description = "increase volume by 2%", group = "hotkeys"}
), ),
awful.key( awful.key(
{}, "XF86AudioLowerVolume", {}, "XF86AudioLowerVolume",
function() function()
awful.spawn.with_shell("pactl set-sink-mute 0 0 && pactl set-sink-volume 0 -5%") awful.spawn.with_shell("pactl set-sink-mute 0 0 && pactl set-sink-volume 0 -2%")
end, end,
{description = "decrease volume by 5%", group = "hotkeys"} {description = "decrease volume by 2%", group = "hotkeys"}
), ),
awful.key( awful.key(
{}, "XF86AudioMute", {}, "XF86AudioMute",
@ -714,8 +714,8 @@ awful.rules.rules = {
{rule_any = {class = {"Brave-browser"}}, properties = {tag = "WEB", switch_to_tags = true}}, {rule_any = {class = {"Brave-browser"}}, properties = {tag = "WEB", switch_to_tags = true}},
{rule_any = {class = {"code-oss"}}, properties = {tag = "DEV", switch_to_tags = true}}, {rule_any = {class = {"code-oss"}}, properties = {tag = "DEV", switch_to_tags = true}},
{rule_any = {class = {"Steam", "Lutris", "Minecraft"}}, properties = {tag = "GAM", switch_to_tags = true}}, {rule_any = {class = {"Steam", "Lutris", "Minecraft"}}, properties = {tag = "GAM"}},
{rule_any = {class = {"Virt-manager"}}, properties = {tag = "SBX", switch_to_tags = true}}, {rule_any = {class = {"Virt-manager"}}, properties = {tag = "SBX"}},
{rule_any = {class = {"libreoffice"}}, properties = {tag = "DOC", switch_to_tags = true}}, {rule_any = {class = {"libreoffice"}}, properties = {tag = "DOC", switch_to_tags = true}},
{rule_any = {class = {"vlc"}}, properties = {tag = "MED", switch_to_tags = true}}, {rule_any = {class = {"vlc"}}, properties = {tag = "MED", switch_to_tags = true}},
{rule_any = {class = {"Gimp"}}, properties = {tag = "GFX", switch_to_tags = true}} {rule_any = {class = {"Gimp"}}, properties = {tag = "GFX", switch_to_tags = true}}
@ -758,6 +758,7 @@ apps = {
"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1", "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1",
"xss-lock --transfer-sleep-lock -- " .. lock, "xss-lock --transfer-sleep-lock -- " .. lock,
"picom", "picom",
"/usr/lib/kdeconnectd",
"redshift", "redshift",
"nm-applet", "nm-applet",
"pasystray", "pasystray",

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule ".vim/pack/dist/opt/nerdtree"] [submodule ".vim/pack/dist/opt/nerdtree"]
path = .vim/pack/dist/opt/nerdtree path = .vim/pack/dist/opt/nerdtree
url = https://github.com/preservim/nerdtree.git url = https://github.com/preservim/nerdtree.git
[submodule ".vim/pack/dist/opt/vim-better-whitespace"]
path = .vim/pack/dist/opt/vim-better-whitespace
url = https://github.com/ntpeters/vim-better-whitespace.git

@ -0,0 +1 @@
Subproject commit c5afbe91d29c5e3be81d5125ddcdc276fd1f1322

30
.vimrc
View File

@ -15,7 +15,33 @@ set hlsearch
" packages " packages
packadd! nerdtree packadd! nerdtree
packadd! vim-better-whitespace
" packages keybindings function! EpitechHeader()
let com_arr = {
\ 'c': {'top': '/*', 'mid': '**', 'bot': '*/'},
\ 'cpp': {'top': '/*', 'mid': '**', 'bot': '*/'},
\ 'make': {'top': '##', 'mid': '##', 'bot': '##'}
\ }
let top = com_arr[&filetype]['top']
let mid = com_arr[&filetype]['mid']
let bot = com_arr[&filetype]['bot']
let proj_name = input('Enter project name: ')
let file_desc = input('Enter file description: ')
if file_desc == ''
let file_desc = expand('%:t:r')
endif
call append(0, top)
call append(1, mid . " EPITECH PROJECT, " . strftime("%Y"))
call append(2, mid . " " . proj_name)
call append(3, mid . " File description:")
call append(4, mid . " " . file_desc)
call append(5, bot)
endfunction
command EpiHeader call EpitechHeader()
" keybindings
nnoremap <F8> :NERDTreeToggle<CR> nnoremap <F8> :NERDTreeToggle<CR>
nnoremap <F9> :/\s\+$<CR> nnoremap <C-c><C-h> :EpiHeader<CR>

3
.zshrc
View File

@ -104,5 +104,4 @@ alias pls="sudo"
alias -g G="|grep -i" alias -g G="|grep -i"
alias parupdate="sudo systemctl start reflector && paru -Syu" alias parupdate="sudo systemctl start reflector && paru -Syu"
alias config="git --git-dir=$HOME/.dotfiles --work-tree=$HOME" alias config="git --git-dir=$HOME/.dotfiles --work-tree=$HOME"
alias mkdebug="CFLAGS+=-ggdb make re"
neofetch