diff --git a/alacritty/.config/alacritty/alacritty.yml b/alacritty/.config/alacritty/alacritty.yml new file mode 100644 index 0000000..9c356c5 --- /dev/null +++ b/alacritty/.config/alacritty/alacritty.yml @@ -0,0 +1,253 @@ +# Copyright (c) 2017-present Arctic Ice Studio +# Copyright (c) 2017-present Sven Greb + +# Project: Nord Alacritty +# Version: 0.1.0 +# Repository: https://github.com/arcticicestudio/nord-alacritty +# License: MIT +# References: +# https://github.com/alacritty/alacritty + +colors: + primary: + background: '#2e3440' + foreground: '#d8dee9' + dim_foreground: '#a5abb6' + cursor: + text: '#2e3440' + cursor: '#d8dee9' + vi_mode_cursor: + text: '#2e3440' + cursor: '#d8dee9' + selection: + text: CellForeground + background: '#4c566a' + search: + matches: + foreground: CellBackground + background: '#88c0d0' + bar: + background: '#434c5e' + foreground: '#d8dee9' + normal: + black: '#3b4252' + red: '#bf616a' + green: '#a3be8c' + yellow: '#ebcb8b' + blue: '#81a1c1' + magenta: '#b48ead' + cyan: '#88c0d0' + white: '#e5e9f0' + bright: + black: '#4c566a' + red: '#bf616a' + green: '#a3be8c' + yellow: '#ebcb8b' + blue: '#81a1c1' + magenta: '#b48ead' + cyan: '#8fbcbb' + white: '#eceff4' + dim: + black: '#373e4d' + red: '#94545d' + green: '#809575' + yellow: '#b29e75' + blue: '#68809a' + magenta: '#8c738c' + cyan: '#6d96a5' + white: '#aeb3bb' +scrolling: + history: 100000 +font: + # Normal (roman) font face + normal: + # Font family + # + # Default: + # - (macOS) Menlo + # - (Linux/BSD) monospace + # - (Windows) Consolas + family: Noto Color Emoji + family: SauceCodePro Nerd Font Mono + + # The `style` can be specified to pick a specific face. + #style: Regular + + # Bold font face + #bold: + # Font family + # + # If the bold family is not specified, it will fall back to the + # value specified for the normal font. + #family: monospace + + # The `style` can be specified to pick a specific face. + #style: Bold + + # Italic font face + #italic: + # Font family + # + # If the italic family is not specified, it will fall back to the + # value specified for the normal font. + #family: monospace + + # The `style` can be specified to pick a specific face. + #style: Italic + + # Bold italic font face + #bold_italic: + # Font family + # + # If the bold italic family is not specified, it will fall back to the + # value specified for the normal font. + #family: monospace + + # The `style` can be specified to pick a specific face. + #style: Bold Italic + + # Point size + size: 10.0 + + # Offset is the extra space around each character. `offset.y` can be thought + # of as modifying the line spacing, and `offset.x` as modifying the letter + # spacing. + #offset: + # x: 0 + # y: 0 + + # Glyph offset determines the locations of the glyphs within their cells with + # the default being at the bottom. Increasing `x` moves the glyph to the + # right, increasing `y` moves the glyph upward. + #glyph_offset: + # x: 0 + # y: 0 +# Bell +# +# The bell is rung every time the BEL control character is received. +bell: + # Visual Bell Animation + # + # Animation effect for flashing the screen when the visual bell is rung. + # + # Values for `animation`: + # - Ease + # - EaseOut + # - EaseOutSine + # - EaseOutQuad + # - EaseOutCubic + # - EaseOutQuart + # - EaseOutQuint + # - EaseOutExpo + # - EaseOutCirc + # - Linear + animation: EaseOutExpo + + # Duration of the visual bell flash in milliseconds. A `duration` of `0` will + # disable the visual bell animation. + duration: 25 + + # Visual bell animation color. + color: '#4C566A' + + command: beep +hints: + # URL launcher + # + # This program is executed when clicking on a text which is recognized as a + # URL. The URL is always added to the command as the last parameter. + # + # When set to `launcher: None`, URL launching will be disabled completely. + # + # Default: + # - (macOS) open + # - (Linux/BSD) xdg-open + # - (Windows) explorer + launcher: + program: xdg-open + args: [] +#key_bindings: + #- { key: Paste, action: Paste } + #- { key: Copy, action: Copy } + #- { key: L, mods: Control, action: ClearLogNotice } + #- { key: L, mods: Control, mode: ~Vi|~Search, chars: "\x0c" } + #- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, } + #- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown } + #- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, } + #- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom } + + # Vi Mode + #- { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom } + #- { key: Space, mods: Shift|Control, mode: ~Search, action: ToggleViMode } + #- { key: Escape, mode: Vi|~Search, action: ClearSelection } + #- { key: I, mode: Vi|~Search, action: ScrollToBottom } + #- { key: I, mode: Vi|~Search, action: ToggleViMode } + #- { key: C, mods: Control, mode: Vi|~Search, action: ToggleViMode } + #- { key: Y, mods: Control, mode: Vi|~Search, action: ScrollLineUp } + #- { key: E, mods: Control, mode: Vi|~Search, action: ScrollLineDown } + #- { key: G, mode: Vi|~Search, action: ScrollToTop } + #- { key: G, mods: Shift, mode: Vi|~Search, action: ScrollToBottom } + #- { key: B, mods: Control, mode: Vi|~Search, action: ScrollPageUp } + #- { key: F, mods: Control, mode: Vi|~Search, action: ScrollPageDown } + #- { key: U, mods: Control, mode: Vi|~Search, action: ScrollHalfPageUp } + #- { key: D, mods: Control, mode: Vi|~Search, action: ScrollHalfPageDown } + #- { key: Y, mode: Vi|~Search, action: Copy } + #- { key: Y, mode: Vi|~Search, action: ClearSelection } + #- { key: Copy, mode: Vi|~Search, action: ClearSelection } + #- { key: V, mode: Vi|~Search, action: ToggleNormalSelection } + #- { key: V, mods: Shift, mode: Vi|~Search, action: ToggleLineSelection } + #- { key: V, mods: Control, mode: Vi|~Search, action: ToggleBlockSelection } + #- { key: V, mods: Alt, mode: Vi|~Search, action: ToggleSemanticSelection } + #- { key: Return, mode: Vi|~Search, action: Open } + #- { key: K, mode: Vi|~Search, action: Up } + #- { key: J, mode: Vi|~Search, action: Down } + #- { key: H, mode: Vi|~Search, action: Left } + #- { key: L, mode: Vi|~Search, action: Right } + #- { key: Up, mode: Vi|~Search, action: Up } + #- { key: Down, mode: Vi|~Search, action: Down } + #- { key: Left, mode: Vi|~Search, action: Left } + #- { key: Right, mode: Vi|~Search, action: Right } + #- { key: Key0, mode: Vi|~Search, action: First } + #- { key: Key4, mods: Shift, mode: Vi|~Search, action: Last } + #- { key: Key6, mods: Shift, mode: Vi|~Search, action: FirstOccupied } + #- { key: H, mods: Shift, mode: Vi|~Search, action: High } + #- { key: M, mods: Shift, mode: Vi|~Search, action: Middle } + #- { key: L, mods: Shift, mode: Vi|~Search, action: Low } + #- { key: B, mode: Vi|~Search, action: SemanticLeft } + #- { key: W, mode: Vi|~Search, action: SemanticRight } + #- { key: E, mode: Vi|~Search, action: SemanticRightEnd } + #- { key: B, mods: Shift, mode: Vi|~Search, action: WordLeft } + #- { key: W, mods: Shift, mode: Vi|~Search, action: WordRight } + #- { key: E, mods: Shift, mode: Vi|~Search, action: WordRightEnd } + #- { key: Key5, mods: Shift, mode: Vi|~Search, action: Bracket } + #- { key: Slash, mode: Vi|~Search, action: SearchForward } + #- { key: Slash, mods: Shift, mode: Vi|~Search, action: SearchBackward } + #- { key: N, mode: Vi|~Search, action: SearchNext } + #- { key: N, mods: Shift, mode: Vi|~Search, action: SearchPrevious } + + # Search Mode + #- { key: Return, mode: Search|Vi, action: SearchConfirm } + #- { key: Escape, mode: Search, action: SearchCancel } + #- { key: C, mods: Control, mode: Search, action: SearchCancel } + #- { key: U, mods: Control, mode: Search, action: SearchClear } + #- { key: W, mods: Control, mode: Search, action: SearchDeleteWord } + #- { key: P, mods: Control, mode: Search, action: SearchHistoryPrevious } + #- { key: N, mods: Control, mode: Search, action: SearchHistoryNext } + #- { key: Up, mode: Search, action: SearchHistoryPrevious } + #- { key: Down, mode: Search, action: SearchHistoryNext } + #- { key: Return, mode: Search|~Vi, action: SearchFocusNext } + #- { key: Return, mods: Shift, mode: Search|~Vi, action: SearchFocusPrevious } + + # (Windows, Linux, and BSD only) + #- { key: V, mods: Control|Shift, mode: ~Vi, action: Paste } + #- { key: C, mods: Control|Shift, action: Copy } + #- { key: F, mods: Control|Shift, mode: ~Search, action: SearchForward } + #- { key: B, mods: Control|Shift, mode: ~Search, action: SearchBackward } + #- { key: C, mods: Control|Shift, mode: Vi|~Search, action: ClearSelection } + #- { key: Insert, mods: Shift, action: PasteSelection } + #- { key: Key0, mods: Control, action: ResetFontSize } + #- { key: Equals, mods: Control, action: IncreaseFontSize } + #- { key: Plus, mods: Control, action: IncreaseFontSize } + #- { key: NumpadAdd, mods: Control, action: IncreaseFontSize } + #- { key: Minus, mods: Control, action: DecreaseFontSize } + #- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize } diff --git a/bspwm/.config/bspwm/autostart b/bspwm/.config/bspwm/autostart index 85d80ac..b701493 100755 --- a/bspwm/.config/bspwm/autostart +++ b/bspwm/.config/bspwm/autostart @@ -27,5 +27,9 @@ xcape -e 'Super_L=Super_L|Shift_L|space' & gnome-keyring-daemon & thunar --daemon & dunst & - +xss-lock -v i3lock-fancy-dualmonitor & +dockd --daemon & +flameshot & $HOME/.config/polybar/launch.sh + + diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index b3ee791..b344116 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc @@ -39,7 +39,7 @@ bspc config split_ratio 0.52 #bspc monitor -d i ii iii iv v vi vii viii ix x #bspc monitor -d One Two Three Four Five Six Seven Eight Nine Ten -bspc monitor -d I II III IV V VI VII VIII IX X +#bspc monitor -d I II III IV V VI VII VIII IX X #bspc monitor -d • • • • • • • • • • #bspc monitor -d I II III IV V VI diff --git a/common/.gitconfig b/common/.gitconfig index 6f6aebc..3308506 100644 --- a/common/.gitconfig +++ b/common/.gitconfig @@ -47,7 +47,7 @@ [url "git@github.com:"] insteadOf = "gh:" pushInsteadOf = "github:" - pushInsteadOf = "git://github.com/" + pushInsteadOf = "https://github.com/" [url "git://github.com/"] insteadOf = "github:" @@ -238,4 +238,4 @@ [user] name = VectorKappa - email = piotrpatalong@gmail.com \ No newline at end of file + email = piotrpatalong@gmail.com diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index 674440b..ed5b123 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -28,7 +28,7 @@ secondary = #e60053 alert = #bd2c40 [bar/example] -;monitor = ${env:MONITOR:HDMI-1} +monitor = ${env:MONITOR:} width = 100% height = 27 ;offset-x = 1% diff --git a/polybar/.config/polybar/launch.sh b/polybar/.config/polybar/launch.sh index e20e3a1..4448311 100755 --- a/polybar/.config/polybar/launch.sh +++ b/polybar/.config/polybar/launch.sh @@ -8,6 +8,12 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done # Launch bar echo "---" >> /tmp/polybar.log -polybar example >>/tmp/polybar.log 2>&1 & -echo "Bars launched..." \ No newline at end of file +if type "xrandr"; then + for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do + MONITOR=$m polybar --reload example >>/tmp/polybar.log 2>&1 & + done +else + polybar --reload example >>/tmp/polybar.log 2>&1 & +fi +echo "Bars launched..." diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index 57ec8ee..0df3793 100755 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc @@ -1,23 +1,32 @@ -# bapwm hotkeys -# +############################################################################################################################### +# bspwm hotkeys +############################################################################################################################### + # Cleanly quit bspwm super + shift + q bspc quit 1 && pkill polybar -# Show keybindings +# Show this file super + F1 - $TERMINAL -e keybindings.sh + alacritty -e bat ~/.config/sxhkd/sxhkdrc + # # Window manipulation # ______________ +# BSPWM WINDOW STATES: + +#tiled - Its size and position are determined by the window tree. +#pseudo_tiled - A tiled window that automatically shrinks but doesn’t stretch beyond its floating size. +#floating - Can be moved/resized freely. Although it doesn’t use any tiling space, it is still part of the window tree. +#fullscreen - Fills its monitor rectangle and has no borders. # Close window super + x - bspc node -c + bspc node -c # Kill window super + shift + x - bspc node -k + bspc node -k # Toggle tiling mode of window super + shift + t @@ -30,10 +39,10 @@ super + ctrl + t # Force all windows of the desktop to float and arrange them super + ctrl + shift + t bspcp float - + # Toggle fullscreen -super + shift + f - bspc node -t {fullscreen,tiled} +super + shift + f + bspc node -t {fullscreen,tiled} # Try to keep size and position of the selected window super + o @@ -45,7 +54,7 @@ super + i # Lock a window from closing super + Escape - bspc node -g locked + bspc node -g locked ### Map or unmap windows (functional equivalent of "minimize") super + c @@ -59,18 +68,18 @@ super + ctrl + c # # Window moving and splitting -# ______________ +# ______________ # Autopresel (split window in its largest dimension) ctrl + space auto-presel - + # Presel window for splitting in certain direction alt + ctrl + {a,s,w,d} bspc node -p \~{west,south,north,east} -i -#alt + ctrl + {h,j,k,l} -# bspc node -p \~{west,south,north,east} +alt + ctrl + {h,j,k,l} + bspc node -p \~{west,south,north,east} alt + ctrl + {Left,Down,Up,Right} bspc node -p \~{west,south,north,east} @@ -81,7 +90,7 @@ super + ctrl + space # Presel the desktop for splitting in certain direction # alt + shift + {a,s,w,d} # bspc node @/ -p \~{west,south,north,east} -# +# # alt + shift + {h,j,k,l} # bspc node @/ -p \~{west,south,north,east} @@ -90,7 +99,7 @@ super + ctrl + space # Set splitting ratio of windows alt + ctrl + {1-9} bspc node -o 0.{1-9} - + # Move current window to largest space or preselected area if there is one. super + Return windowpromoter @@ -98,7 +107,7 @@ super + Return # Create a new "master area", splitting the whole desktop instead of just windows. alt + Return bspc node -n @/ - + # go (Shift=move) to desktop (and focus the monitor that the desktop is located on. Bspwm style) super + {_,shift + }{1-9,0} bspc {desktop -f,node -d} ^{1-9,10} @@ -118,7 +127,7 @@ super + {_,shift + }{1-9,0} # Select previous / next desktop super + {m,n} - bspc desktop -f {prev.occupied,next.occupied} + bspc desktop -f {prev.occupied,next.occupied} # cycle windows alt + {_,shift + }Tab @@ -127,7 +136,7 @@ alt + {_,shift + }Tab # Go to specific window super + Tab WindowSelector - + #Focus windows by direction, works with multihead super + {a,s,w,d} focusmover {west,south,north,east} @@ -137,16 +146,16 @@ super + {a,s,w,d} super + {Left,Down,Up,Right} focusmover {west,south,north,east} - -# Move tiled windows. Moving a tiled window to -# preselected one moves into preselection instead. + +# Move tiled windows. Moving a tiled window to +# preselected one moves into preselection instead. # Moving out of the screen should move the window to next monitor if possible super + shift + {a,s,w,d} windowgrabber {west,south,north,east} #super + shift + {h,j,k,l} # windowgrabber {west,south,north,east} - + # Different style of movement: transplant into window in chosen direction super + shift + {Left,Down,Up,Right} euclid_mover {west,south,north,east} @@ -157,18 +166,18 @@ super + ctrl + {a,s,w,d} #super + ctrl + {h,j,k,l} # bspwm_resize.sh {west,south,north,east} - + super + ctrl + {Left,Down,Up,Right} bspwm_resize.sh {west,south,north,east} # # Layout manipulation/desktop level controls -# ______________ +# ______________ # Toggle monocle mode -super + f +super + f bspc desktop -l next - + # Balance tree super + b bspc node @/ -B @@ -176,7 +185,7 @@ super + b # Balance brother node. If you do this on biggest window of the desktop, it usually means balancing all windows with except the biggest. super + alt + b bspc node @brother -B - + # Undo balancing (equalize windows) super + ctrl + b bspc node @/ -E @@ -188,7 +197,7 @@ alt + b # Mirror and flip leaves of tree super + {comma,period} bspc node @/ -F {horizontal,vertical} - + # Rotate leaves of tree super + shift + {comma,period} bspc node @/ -R {90,270} @@ -205,12 +214,12 @@ super + button{4,5} # __________________ ~button1 - DidIClickDesktop.sh && gapgrab + DidIClickDesktop.sh && gapgrab ~button2 DidIClickDesktop.sh && mygtkmenui -- .config/GTKmenu/BspwmDesktopMenui #DidIClickDesktop.sh && mygtkmenui -- .config/GTKmenu/BspwmWindowMenui - + ~button3 DidIClickDesktop.sh && mygtkmenui -- .config/GTKmenu/LaunchMenu @@ -219,7 +228,7 @@ super + button{4,5} # DidIClickDesktop.sh && bspc desktop -f next #~button5 # DidIClickDesktop.sh && bspc desktop -f prev - + ### Add or remove desktops by scrolling super + ctrl + button5 bspcp dsktp rm @@ -227,10 +236,10 @@ super + ctrl + button5 super + ctrl + button4 bspcp dsktp add -# Spawn applications popup menu and manually tile selected +# Spawn applications popup menu and manually tile selected # app where your mouse was when you opened the menu. Smartsplit only chooses # biggest dimension of the window, MouseLaunch only cares which edge is closer. -# mod5 is alt_gr (first key right from space) on most keyboards. +# mod5 is alt_gr (first key right from space) on most keyboards. mod5 + @button1 MouseLaunch ; mygtkmenui -- .config/GTKmenu/LaunchMenu # smartsplit ; dboxmenu @@ -245,7 +254,7 @@ mod1 + @button1 # # Touchpad "gestures" (depend on your touchpad driver, very likely to be unavailable) #_____________________ - + # # spawn programs # @@ -255,9 +264,10 @@ super + space rofi -modi drun,run,window,calc -show drun #dmenu_recent -fn 'xos4 Terminus:size=15' -i -l 14 -w 600 -y $PANEL_HEIGHT -# Triggered by jus tapping super +# Triggered by jus tapping super super + shift + space - rofi -show run + #xlunch -- + gnome-pie -o 460 #super + p # dmenu_recent -h $PANEL_HEIGHT -fn 'xos4 Terminus:size=15' -i @@ -269,13 +279,13 @@ super + z super + shift + z open-terminal-here - + super + r - rofi -modi drun,run,window,calc -show drun + rofi -modi drun,run,window,calc -show run super + shift + b $BROWSER - + super + e thunar @@ -286,7 +296,7 @@ super + shift + e Print scrot - + # # Media keys # @@ -307,16 +317,25 @@ XF86AudioLowerVolume XF86AudioMute amixer set Master toggle - + XF86MonBrightnessDown - xbacklight -dec 5 + xbacklight -dec 5 XF86MonBrightnessUp xbacklight -inc 5 +XF86ScreenSaver + loginctl lock-session + XF86Sleep systemctl suspend +XF86Display + workspaces_multimonitor + +shift + XF86Display + arandr + XF86AudioMicMute amixer set Capture toggle @@ -326,15 +345,18 @@ XF86Launch1 super + shift + Escape pkill -USR1 -x sxhkd -alt + space #My personal preference +alt + space rofi -modi drun,run,window,calc -show drun +super + shift + s + flameshot gui + # In case bspwmrc fails to execute/you wish have plugged in a new monitor super + shift + r bspwmrc #edit this file alt + ctrl + space - $GUI_EDITOR ~/.config/sxhkd/sxhkdrc + vim ~/.config/sxhkd/sxhkdrc # Toggle compositing super + ctrl + alt + space {pkill picom ,\ @@ -343,3 +365,11 @@ super + ctrl + alt + space # Remove receptacles super + BackSpace for i in $(bspc query -N -n .leaf.!window.local); do bspc node $i -k; done + +############################################################################################################################### +# VIDEO-RELATED HOTKEYS +############################################################################################################################### + +# Rotate the screen. WARNING: Laggy. +mod5 + {Left,Down,Up,Right} + xrandr --output LVDS1 --rotate {left,inverted,normal,right} diff --git a/vim/.vimrc b/vim/.vimrc index 3d20ceb..753bfab 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -1,3 +1,4 @@ +" Autoinstall vim-plug let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' if empty(glob(data_dir . '/autoload/plug.vim')) silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' @@ -9,9 +10,9 @@ endif call plug#begin('~/.vim/plugged') Plug 'junegunn/vim-github-dashboard' -Plug 'SirVer/ultisnips' -Plug 'honza/vim-snippets' Plug 'tpope/vim-fugitive' +Plug 'honza/vim-snippets' +Plug 'pearofducks/ansible-vim' Plug 'preservim/nerdtree' Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'liuchengxu/vim-which-key' @@ -30,19 +31,23 @@ Plug 'tpope/vim-surround' Plug 'vim-airline/vim-airline' Plug 'scrooloose/nerdcommenter' Plug 'vim-airline/vim-airline-themes' -Plug 'valloric/youcompleteme' Plug 'ctrlpvim/ctrlp.vim' Plug 'godlygeek/tabular' -Plug 'ervandew/supertab' -Plug 'easymotion/vim-easymotion' -Plug 'elzr/vim-json' +"Plug 'easymotion/vim-easymotion' Plug 'nathanaelkane/vim-indent-guides' Plug 'xuyuanp/nerdtree-git-plugin' Plug 'sheerun/vim-polyglot' Plug 'mbbill/undotree' Plug 'bronson/vim-trailing-whitespace' - - +" I love you tpope <3 +Plug 'tpope/vim-dadbod' +Plug 'tpope/vim-eunuch' +Plug 'tpope/vim-speeddating' +Plug 'tpope/vim-repeat' +Plug 'tpope/vim-rhubarb' +Plug 'tpope/vim-unimpaired' +Plug 'tpope/vim-abolish' +Plug 'tpope/vim-obsession' " Initialize plugin system call plug#end() @@ -51,3 +56,5 @@ autocmd! User GoyoEnter Limelight autocmd! User GoyoLeave Limelight! filetype plugin on colorscheme nord +"Keybinds + diff --git a/zsh/.aliases b/zsh/.aliases index 965302b..1b263e0 100644 --- a/zsh/.aliases +++ b/zsh/.aliases @@ -24,9 +24,10 @@ alias lessf="less +F" # List all files colorized in long format alias l="exa -G --icons" -alias ll="exa -l" +alias ll="exa -l --icons" alias lg="exa -lG" -alias lall="exa -laGhF --icons --git" +alias lall="exa -lahF --icons --git" +alias lalg="exa -laGhF --icons --git" alias latree="exa -laGghHT --git --icons" # List all files colorized in long format, including dot files alias la="exa -la" @@ -78,3 +79,5 @@ alias pscpu10='ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr | head # top10 of the history alias hist10='print -l ${(o)history%% *} | uniq -c | sort -nr | head -n 10' alias cantbebothered='git add -a && git commit -m $(curl -s http://whatthecommit.com/index.txt | uwuify | cowsay -f $(ls /usr/share/cowsay/cows/ | shuf -n1) | lolcat ) && git push' +alias please='sudo' +alias runhis="anyframe-widget-execute-history" diff --git a/zsh/.zshrc b/zsh/.zshrc index ef388b3..68539a2 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -17,8 +17,8 @@ colors # History Settings # ############################################################################################################################### HISTFILE=~/.zsh_history #History file - zsh in name, to differentiate, idk -HISTSIZE=100001000 #100M history entries - storage space is cheap :) -SAVEHIST=100000000 #A margin to store some duplicates +HISTSIZE=1000010000 #1B history entries - storage space is cheap :) +SAVEHIST=1000000000 #A margin to store some duplicates setopt INC_APPEND_HISTORY_TIME #Black magic, honestly - history nonblockingly gets written to histfile, but separate sessions keep their separate histories setopt HIST_VERIFY #Forces user to confirm banging commands from history (!! pastes previous command to prompt) setopt HIST_IGNORE_DUPS #Ignores duplicates of commands directly before @@ -42,8 +42,8 @@ fi autoload -U select-word-style select-word-style bash -#GIANT KEYBOARD CONFIG BLOCK (From oh-my-zsh) -bindkey '\ew' kill-region # [Esc-w] - Kill from the cursor to the mark +#GIANT KEYBOARD CONFIG BLOCK (From oh-my-zsh)(with further changes) +bindkey '\ew' kill-region # [Esc-w] - Remove chars from the cursor to the mark bindkey -s '\el' 'ls\n' # [Esc-l] - run command: ls bindkey '^r' history-incremental-search-backward # [Ctrl-r] - Search backward incrementally for a specified string. The string may begin with ^ to anchor the search to the beginning of the line. if [[ "${terminfo[kpp]}" != "" ]]; then @@ -67,7 +67,7 @@ if [[ "${terminfo[kend]}" != "" ]]; then bindkey "${terminfo[kend]}" end-of-line # [End] - Go to end of line fi -bindkey ' ' magic-space # [Space] - do history expansion +bindkey ' ' magic-space # [Space] - do history expansion - !![space] pastes previous command, ![num][space] jumps to history entry bindkey '^[[1;5C' forward-word # [Ctrl-RightArrow] - move forward one word bindkey '^[[1;5D' backward-word # [Ctrl-LeftArrow] - move backward one word @@ -151,7 +151,7 @@ setopt interactivecomments zplug "plugins/emoji", from:oh-my-zsh -zplug "plugins/pyenv", from:oh-my-zsh +zplug "plugins/virtualenv", from:oh-my-zsh zplug "plugins/pip", from:oh-my-zsh zplug "plugins/nmap", from:oh-my-zsh zplug "plugins/ipfs", from:oh-my-zsh @@ -164,19 +164,19 @@ zplug "plugins/cargo", from:oh-my-zsh zplug "plugins/git", from:oh-my-zsh zplug "plugins/colored-man-pages", from:oh-my-zsh zplug "plugins/command-not-found", from:oh-my-zsh -zplug "plugins/web-search", from:oh-my-zsh zplug "plugins/tmux", from:oh-my-zsh zplug "plugins/urltools", from:oh-my-zsh zplug "plugins/thefuck", from:oh-my-zsh #Used interchangably with #setopt correct #<-This option # Load completion library for those sweet [tab] squares zplug "lib/completion", from:oh-my-zsh - +zplug "mollifier/anyframe", from:github # Misc. visual tweaks zplug "oldratlee/hacker-quotes" zplug "modules/prompt", from:prezto zplug "Tarrasch/zsh-autoenv" zplug "zpm-zsh/colors" +zplug "MichaelAquilina/zsh-autoswitch-virtualenv" # Syntax highlighting for commands, load last zplug "zsh-users/zsh-syntax-highlighting", from:github, defer:3 zplug "zsh-users/zsh-autosuggestions", defer:3 @@ -192,7 +192,7 @@ fi # Then, source plugins and add commands to $PATH zplug load -PATH="$PATH:/home/vectorkappa/.cargo/bin" +PATH="$PATH:/home/vectorkappa/.cargo/bin:/home/vectorkappa/.local/bin" prompt pure [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh