Update dotfiles
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
+ Launcher: rofi
|
+ Launcher: rofi
|
||||||
+ Bar: polybar
|
+ Bar: polybar
|
||||||
+ Notifications: dunst
|
+ Notifications: dunst
|
||||||
+ Compositor: [picom](https://github.com/tryone144/compton/tree/feature/dual_kawase)
|
+ Compositor: [picom](https://github.com/ibhagwan/picom)
|
||||||
+ Set Wallpaper: feh
|
+ Set Wallpaper: feh
|
||||||
+ Info: [fet.sh](https://github.com/6gk/fet.sh)
|
+ Info: [fet.sh](https://github.com/6gk/fet.sh)
|
||||||
+ Screenshots: Flameshot
|
+ Screenshots: Flameshot
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ window:
|
|||||||
# Blank space added around the window in pixels. This padding is scaled
|
# Blank space added around the window in pixels. This padding is scaled
|
||||||
# by DPI and the specified value is always added at both opposing sides.
|
# by DPI and the specified value is always added at both opposing sides.
|
||||||
padding:
|
padding:
|
||||||
x: 15
|
x: 25
|
||||||
y: 15
|
y: 25
|
||||||
|
|
||||||
# Spread additional padding evenly around the terminal content.
|
# Spread additional padding evenly around the terminal content.
|
||||||
dynamic_padding: false
|
dynamic_padding: false
|
||||||
|
|||||||
@@ -57,12 +57,12 @@ bindsym $mod+n workspace next
|
|||||||
bindsym $mod+p workspace prev
|
bindsym $mod+p workspace prev
|
||||||
|
|
||||||
# Rofi and dmenu
|
# Rofi and dmenu
|
||||||
bindsym $mod+space exec "~/.config/rofi/launchers-git/launcher.sh"
|
bindsym $mod+d exec "~/.config/rofi/launchers-git/launcher.sh"
|
||||||
|
|
||||||
set $nord0d '#2e3440'
|
set $nord0d '#2e3440'
|
||||||
set $frost2d '#eceff4'
|
set $frost2d '#eceff4'
|
||||||
set $greend '#A3BE8C'
|
set $greend '#A3BE8C'
|
||||||
bindsym $mod+d exec "dmenu_run -fn 'FiraCode Nerd Font Mono' -nb '#2e3440' -sb '#a3be8c' -nf '#eceff4' -sf '#2e3440'"
|
bindsym $mod+Shift+d exec "dmenu_run -fn 'FiraCode Nerd Font Mono' -nb '#2e3440' -sb '#a3be8c' -nf '#eceff4' -sf '#2e3440'"
|
||||||
|
|
||||||
# Screenhot
|
# Screenhot
|
||||||
bindsym $mod+Shift+p exec "flameshot gui"
|
bindsym $mod+Shift+p exec "flameshot gui"
|
||||||
|
|||||||
@@ -7,6 +7,12 @@ opacity-rule = [
|
|||||||
#inactive-dim = 0.15;
|
#inactive-dim = 0.15;
|
||||||
inactive-opacity = 0.9;
|
inactive-opacity = 0.9;
|
||||||
|
|
||||||
|
corner-radius = 15.0;
|
||||||
|
rounded-corners-exclude= [
|
||||||
|
"class_g = 'i3-frame'",
|
||||||
|
"class_g = 'dmenu'"
|
||||||
|
];
|
||||||
|
|
||||||
backend = "glx";
|
backend = "glx";
|
||||||
blur: {
|
blur: {
|
||||||
method: "dual_kawase";
|
method: "dual_kawase";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
; ft=dosini
|
; vim: ft=dosini
|
||||||
[colors]
|
[colors]
|
||||||
transparent = #00000000
|
transparent = #00000000
|
||||||
|
|
||||||
@@ -26,8 +26,6 @@ accent = ${colors.green}
|
|||||||
foreground = ${colors.frost2}
|
foreground = ${colors.frost2}
|
||||||
background = ${colors.nord0}
|
background = ${colors.nord0}
|
||||||
|
|
||||||
tray = ${colors.nord0}
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
[bar/global]
|
[bar/global]
|
||||||
monitor = ${env:MONITOR}
|
monitor = ${env:MONITOR}
|
||||||
@@ -63,7 +61,7 @@ offset-y = 8px
|
|||||||
|
|
||||||
modules-left = i3
|
modules-left = i3
|
||||||
modules-center = spotify
|
modules-center = spotify
|
||||||
modules-right = update brightness volume date
|
modules-right = update backlight volume date
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
[bar/workspaces]
|
[bar/workspaces]
|
||||||
@@ -75,6 +73,8 @@ override-redirect = true
|
|||||||
offset-x = 8px
|
offset-x = 8px
|
||||||
offset-y = 8px
|
offset-y = 8px
|
||||||
|
|
||||||
|
line-size = 3
|
||||||
|
|
||||||
modules-center = i3
|
modules-center = i3
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@@ -92,28 +92,33 @@ modules-center = spotify
|
|||||||
################################################################################
|
################################################################################
|
||||||
[bar/status]
|
[bar/status]
|
||||||
inherit = bar/global
|
inherit = bar/global
|
||||||
width = 22%
|
width = 20%
|
||||||
|
|
||||||
override-redirect = true
|
override-redirect = true
|
||||||
fixed-center = true
|
fixed-center = true
|
||||||
|
|
||||||
offset-x = 67%:-8px
|
offset-x = 72%:-8px
|
||||||
offset-y = 8px
|
offset-y = 8px
|
||||||
|
|
||||||
modules-center = update backlight volume battery date
|
module-margin = 1
|
||||||
|
|
||||||
|
line-size = 3
|
||||||
|
|
||||||
|
modules-center = backlight volume battery date
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
[bar/tray]
|
[bar/tray]
|
||||||
inherit = bar/global
|
inherit = bar/global
|
||||||
width = 10%
|
width = 7%
|
||||||
|
|
||||||
override-redirect = true
|
override-redirect = true
|
||||||
fixed-center = true
|
fixed-center = true
|
||||||
|
|
||||||
offset-x = 90%:-8px
|
offset-x = 93%:-8px
|
||||||
offset-y = 8px
|
offset-y = 8px
|
||||||
|
|
||||||
tray-position = center
|
tray-position = center
|
||||||
|
tray-padding = 2
|
||||||
|
|
||||||
modules-center = update
|
modules-center = update
|
||||||
|
|
||||||
@@ -143,11 +148,10 @@ ws-icon-default =
|
|||||||
#label-focused = ""
|
#label-focused = ""
|
||||||
label-focused = "%icon%"
|
label-focused = "%icon%"
|
||||||
label-focused-padding = 1
|
label-focused-padding = 1
|
||||||
label-focused-underline = ${colors.red}
|
label-focused-underline = ${colors.green}
|
||||||
|
|
||||||
#label-unfocused = ""
|
#label-unfocused = ""
|
||||||
label-unfocused = "%icon%"
|
label-unfocused = "%icon%"
|
||||||
label-unfocused-foreground = ${colors.nord3}
|
|
||||||
label-unfocused-padding = 1
|
label-unfocused-padding = 1
|
||||||
|
|
||||||
label-urgent = "%icon%"
|
label-urgent = "%icon%"
|
||||||
@@ -158,8 +162,6 @@ label-urgent-padding = 1
|
|||||||
[module/date]
|
[module/date]
|
||||||
type = internal/date
|
type = internal/date
|
||||||
|
|
||||||
format-padding = 1
|
|
||||||
|
|
||||||
interval = 1.0
|
interval = 1.0
|
||||||
|
|
||||||
#time = %I:%M %p - %A, %d %B %Y
|
#time = %I:%M %p - %A, %d %B %Y
|
||||||
@@ -167,6 +169,7 @@ time = %I:%M %p %d.%m.%Y
|
|||||||
time-alt = %I:%M %p
|
time-alt = %I:%M %p
|
||||||
|
|
||||||
format = <label>
|
format = <label>
|
||||||
|
format-underline = ${colors.blue1}
|
||||||
|
|
||||||
label = %time%
|
label = %time%
|
||||||
|
|
||||||
@@ -177,7 +180,6 @@ label = %title%
|
|||||||
format = <label>
|
format = <label>
|
||||||
label-maxlen = 80
|
label-maxlen = 80
|
||||||
label-empty = "Yoroshiku!"
|
label-empty = "Yoroshiku!"
|
||||||
format-padding = 1
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
[module/cpu]
|
[module/cpu]
|
||||||
@@ -187,7 +189,6 @@ interval = 5
|
|||||||
|
|
||||||
format = <label>
|
format = <label>
|
||||||
format-prefix =
|
format-prefix =
|
||||||
format-padding = 1
|
|
||||||
|
|
||||||
label = " %percentage%%"
|
label = " %percentage%%"
|
||||||
|
|
||||||
@@ -210,13 +211,13 @@ battery = BAT0
|
|||||||
apdapter = ADP1
|
apdapter = ADP1
|
||||||
|
|
||||||
format-charging = <animation-charging> <label-charging>
|
format-charging = <animation-charging> <label-charging>
|
||||||
format-charging-padding = 1
|
format-charging-underline = ${colors.green}
|
||||||
|
|
||||||
format-discharging = <ramp-capacity> <label-discharging>
|
format-discharging = <ramp-capacity> <label-discharging>
|
||||||
format-discharging-padding = 1
|
format-discharging-underline = ${colors.green}
|
||||||
|
|
||||||
format-full = <ramp-capacity> <label-full>
|
format-full = <ramp-capacity> <label-full>
|
||||||
format-full-padding = 1
|
format-full-underline = ${colors.green}
|
||||||
|
|
||||||
label-charging = %percentage%%
|
label-charging = %percentage%%
|
||||||
label-discharging = %percentage%%
|
label-discharging = %percentage%%
|
||||||
@@ -247,14 +248,13 @@ animation-charging-framerate = 750
|
|||||||
[module/volume]
|
[module/volume]
|
||||||
type = internal/pulseaudio
|
type = internal/pulseaudio
|
||||||
|
|
||||||
format-volume-padding = 1
|
|
||||||
|
|
||||||
format-volume = <ramp-volume> <label-volume>
|
format-volume = <ramp-volume> <label-volume>
|
||||||
|
|
||||||
|
format-volume-underline = ${colors.orange}
|
||||||
|
|
||||||
label-volume = %percentage%%
|
label-volume = %percentage%%
|
||||||
|
|
||||||
format-muted-prefix = " "
|
format-muted-prefix = " "
|
||||||
format-muted-padding = 1
|
|
||||||
label-muted = "Muted"
|
label-muted = "Muted"
|
||||||
|
|
||||||
ramp-volume-0 =
|
ramp-volume-0 =
|
||||||
@@ -277,10 +277,8 @@ unknown-as-up = true
|
|||||||
|
|
||||||
#format-connected = <ramp-signal> <label-connected>
|
#format-connected = <ramp-signal> <label-connected>
|
||||||
format-connected = <label-connected>
|
format-connected = <label-connected>
|
||||||
format-connected-padding = 1
|
|
||||||
|
|
||||||
format-disconnected = <label-disconnected>
|
format-disconnected = <label-disconnected>
|
||||||
format-disconnected-padding = 1
|
|
||||||
|
|
||||||
label-connected = %essid%
|
label-connected = %essid%
|
||||||
label-disconnected = Disconnected
|
label-disconnected = Disconnected
|
||||||
@@ -296,14 +294,13 @@ ramp-signal-4 =
|
|||||||
[module/backlight]
|
[module/backlight]
|
||||||
type = internal/backlight
|
type = internal/backlight
|
||||||
|
|
||||||
format-padding = 1
|
|
||||||
|
|
||||||
# ls -1 /sys/class/backlight
|
# ls -1 /sys/class/backlight
|
||||||
card = amdgpu_bl0
|
card = amdgpu_bl0
|
||||||
|
|
||||||
format = <label>
|
format = <label>
|
||||||
format-prefix = ""
|
format-prefix = ""
|
||||||
label = " %percentage%%"
|
label = " %percentage%%"
|
||||||
|
format-underline = ${colors.yellow}
|
||||||
|
|
||||||
bar-width = 10
|
bar-width = 10
|
||||||
bar-indicator = |
|
bar-indicator = |
|
||||||
@@ -329,8 +326,6 @@ interval = 2
|
|||||||
[module/hostname]
|
[module/hostname]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
|
|
||||||
format-padding = 1
|
|
||||||
|
|
||||||
exec = ~/.config/polybar/scripts/hostname.sh
|
exec = ~/.config/polybar/scripts/hostname.sh
|
||||||
tail = true
|
tail = true
|
||||||
interval = 60
|
interval = 60
|
||||||
@@ -339,7 +334,6 @@ interval = 60
|
|||||||
[module/ip]
|
[module/ip]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
|
|
||||||
format-padding = 1
|
|
||||||
format-prefix = "直 "
|
format-prefix = "直 "
|
||||||
|
|
||||||
exec = ~/.config/polybar/scripts/ip.sh
|
exec = ~/.config/polybar/scripts/ip.sh
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ if type "xrandr"; then
|
|||||||
for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||||
if [ "$1" = "laptop" ]; then
|
if [ "$1" = "laptop" ]; then
|
||||||
MONITOR=$mon polybar --reload workspaces &
|
MONITOR=$mon polybar --reload workspaces &
|
||||||
MONITOR=$mon polybar --reload music &
|
# MONITOR=$mon polybar --reload music &
|
||||||
MONITOR=$mon polybar --reload status &
|
MONITOR=$mon polybar --reload status &
|
||||||
MONITOR=$mon polybar --reload tray &
|
MONITOR=$mon polybar --reload tray &
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -23,5 +23,5 @@ set -g status-fg white
|
|||||||
set -g status-right '%Y.%m.%d %H:%M'
|
set -g status-right '%Y.%m.%d %H:%M'
|
||||||
|
|
||||||
set-window-option -g window-status-current-style fg=black
|
set-window-option -g window-status-current-style fg=black
|
||||||
set-window-option -g window-status-current-style fg=black,bg=cyan,bright
|
set-window-option -g window-status-current-style fg=black,bg=cyan
|
||||||
set-window-option -g window-status-activity-style fg=brightred
|
set-window-option -g window-status-activity-style fg=brightred
|
||||||
|
|||||||
@@ -38,13 +38,6 @@ let g:pear_tree_pairs = {
|
|||||||
\ '<': {'closer': '>'}
|
\ '<': {'closer': '>'}
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
" Helper for latex
|
|
||||||
Plugin 'lervag/vimtex'
|
|
||||||
|
|
||||||
let g:vimtex_view_general_viewer = 'zathura'
|
|
||||||
nmap <C-c> :VimtexCompile <CR>
|
|
||||||
nmap <C-t> :VimtexTocToggle <CR>
|
|
||||||
|
|
||||||
" fzf
|
" fzf
|
||||||
if executable("fzf")
|
if executable("fzf")
|
||||||
Plugin 'junegunn/fzf'
|
Plugin 'junegunn/fzf'
|
||||||
@@ -55,6 +48,13 @@ endif
|
|||||||
|
|
||||||
" Colors
|
" Colors
|
||||||
Plugin 'arcticicestudio/nord-vim'
|
Plugin 'arcticicestudio/nord-vim'
|
||||||
|
Plugin 'vim-airline/vim-airline'
|
||||||
|
Plugin 'vim-airline/vim-airline-themes'
|
||||||
|
|
||||||
|
let g:airline_theme='nord'
|
||||||
|
let g:airline_powerline_fonts = 1
|
||||||
|
let g:bufferline_echo = 0
|
||||||
|
set guifont="FiraCode Nerd Font Mono"
|
||||||
|
|
||||||
call vundle#end()
|
call vundle#end()
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
@@ -71,6 +71,8 @@ filetype indent plugin on
|
|||||||
" ============================== General
|
" ============================== General
|
||||||
set number
|
set number
|
||||||
set relativenumber
|
set relativenumber
|
||||||
|
set cursorline
|
||||||
|
set ruler
|
||||||
|
|
||||||
set showmatch " highlights paranthesis
|
set showmatch " highlights paranthesis
|
||||||
set mat=5
|
set mat=5
|
||||||
|
|||||||
@@ -1,27 +1,28 @@
|
|||||||
## Prompt
|
# ▄▄ ▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄
|
||||||
|
# █ █▄█ █ █ ▄ █ █ █ ██ █ █ █ █ █ █ █ ▄ █ █ █
|
||||||
|
# █ █ ▄ █ █ █ █ █ █▄▄██ ▄▄▄▄▄█ █▄▄▄▄ █ ▄▄▄▄▄█ █▄█ █ █ █ █ █ █
|
||||||
|
# █ █ █▄█ █ █▄▄█▄█ ▄▄█ █ █▄▄▄▄▄ ▄▄▄▄█ █ █▄▄▄▄▄█ █ █▄▄█▄█ ▄▄█
|
||||||
|
# █ █ █ ▄▄ █ █ █▄▄▄▄▄ █ █ ▄▄▄▄▄▄█▄▄▄▄▄ █ ▄ █ ▄▄ █ █
|
||||||
|
# █ ██▄██ █ ▄ █ █ █ █ █▄▄ ▄▄▄▄▄█ █ █ █▄▄▄▄▄ ▄▄▄▄▄█ █ █ █ █ █ █ █ █▄▄
|
||||||
|
# █▄█ █▄█▄█ █▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█ █▄▄▄▄▄▄▄█ █▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄█ █▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█
|
||||||
|
#
|
||||||
|
# ============================== Prompt
|
||||||
autoload -Uz vcs_info
|
autoload -Uz vcs_info
|
||||||
autoload -U colors && colors
|
autoload -U colors && colors
|
||||||
precmd_vcs_info() { vcs_info }
|
precmd_vcs_info() { vcs_info }
|
||||||
precmd_functions+=( precmd_vcs_info )
|
precmd_functions+=( precmd_vcs_info )
|
||||||
setopt prompt_subst
|
setopt prompt_subst
|
||||||
export PROMPT="%{$fg[yellow]%}%m %{$fg_bold[blue]%}%~%{$fg_bold[cyan]%}\$vcs_info_msg_0_ %{$reset_color%}"
|
export PROMPT="%{$fg[yellow]%}%m %{$fg_bold[blue]%}%~%{$fg_bold[cyan]%}\$vcs_info_msg_0_ %{$reset_color%}"
|
||||||
zstyle ':vcs_info:git:*' formats '%b '
|
zstyle ':vcs_info:git:*' formats '|%b '
|
||||||
|
|
||||||
export RPROMPT=""
|
# ============================== Exports
|
||||||
|
|
||||||
## Exports
|
|
||||||
export EDITOR="vim"
|
export EDITOR="vim"
|
||||||
export LANG="en_US.UTF-8"
|
export LANG="en_US.UTF-8"
|
||||||
export PATH=$PATH:$HOME/.local/bin:$HOME/scripts
|
export PATH=$PATH:$HOME/.local/bin:$HOME/scripts
|
||||||
|
|
||||||
## Aliases
|
# ============================== Aliases
|
||||||
if [ -f ~/.zshrc_local ]; then
|
alias fontslist="fc-list :scalable=true:spacing=mono: family"
|
||||||
source ~/.zshrc_local
|
alias fontscache="fc-cache -f -v"
|
||||||
fi
|
|
||||||
|
|
||||||
alias fonts="/home/$USER/.local/share/fonts"
|
|
||||||
alias listfonts="fc-list :scalable=true:spacing=mono: family"
|
|
||||||
alias cachefonts="fc-cache -f -v"
|
|
||||||
|
|
||||||
alias r="ranger"
|
alias r="ranger"
|
||||||
alias s="cd ~/scripts/"
|
alias s="cd ~/scripts/"
|
||||||
@@ -35,7 +36,11 @@ alias rm='rm -i' # Ask before removal
|
|||||||
alias cp='cp -i' # Ask before removal
|
alias cp='cp -i' # Ask before removal
|
||||||
alias mv='mv -i' # Ask before removal
|
alias mv='mv -i' # Ask before removal
|
||||||
|
|
||||||
## Completion
|
if [ -f ~/.zshrc_local ]; then
|
||||||
|
source ~/.zshrc_local
|
||||||
|
fi
|
||||||
|
|
||||||
|
# ============================== Completion
|
||||||
unsetopt menu_complete # do not autoselect the first completion entry
|
unsetopt menu_complete # do not autoselect the first completion entry
|
||||||
unsetopt flowcontrol
|
unsetopt flowcontrol
|
||||||
setopt auto_menu # show completion menu on successive tab press
|
setopt auto_menu # show completion menu on successive tab press
|
||||||
@@ -53,7 +58,7 @@ zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*'
|
|||||||
## Directory navigation
|
## Directory navigation
|
||||||
setopt autocd autopushd
|
setopt autocd autopushd
|
||||||
|
|
||||||
## History command configuration
|
# ============================== History
|
||||||
setopt extended_history # record timestamp of command in HISTFILE
|
setopt extended_history # record timestamp of command in HISTFILE
|
||||||
setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE
|
setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE
|
||||||
setopt hist_ignore_dups # ignore duplicated commands history list
|
setopt hist_ignore_dups # ignore duplicated commands history list
|
||||||
@@ -62,7 +67,7 @@ setopt hist_verify # show command with history expansion to user befo
|
|||||||
setopt share_history # share command history data inside tmux
|
setopt share_history # share command history data inside tmux
|
||||||
export HISTFILE="$HOME/.zsh_history"
|
export HISTFILE="$HOME/.zsh_history"
|
||||||
|
|
||||||
## ssh-agent
|
# ============================== SSH-Agent
|
||||||
if [ -f ~/.ssh/agent.env ] ; then
|
if [ -f ~/.ssh/agent.env ] ; then
|
||||||
. ~/.ssh/agent.env > /dev/null
|
. ~/.ssh/agent.env > /dev/null
|
||||||
if ! kill -0 $SSH_AGENT_PID > /dev/null 2>&1; then
|
if ! kill -0 $SSH_AGENT_PID > /dev/null 2>&1; then
|
||||||
@@ -76,7 +81,7 @@ else
|
|||||||
ssh-add
|
ssh-add
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## vi-mode
|
# ============================== vi-Mode
|
||||||
bindkey -v
|
bindkey -v
|
||||||
export KEYTIMEOUT=1
|
export KEYTIMEOUT=1
|
||||||
|
|
||||||
@@ -100,7 +105,7 @@ RPS2=$RPS1
|
|||||||
# Enable backspace to delete in vi-mode
|
# Enable backspace to delete in vi-mode
|
||||||
bindkey -v '^?' backward-delete-char
|
bindkey -v '^?' backward-delete-char
|
||||||
|
|
||||||
## fzf
|
# ============================== fzf
|
||||||
export FZF_DEFAULT_OPTS='--preview="head {}" --layout=reverse --bind=tab:down --bind=btab:up'
|
export FZF_DEFAULT_OPTS='--preview="head {}" --layout=reverse --bind=tab:down --bind=btab:up'
|
||||||
|
|
||||||
## fzf Bindings in zsh (C-r and C-t)
|
## fzf Bindings in zsh (C-r and C-t)
|
||||||
@@ -111,7 +116,8 @@ else
|
|||||||
bindkey '^R' history-incremental-search-backward
|
bindkey '^R' history-incremental-search-backward
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Use C-z for 'fg'
|
# ============================== Fancy Hacks
|
||||||
|
# Always use C-z for bg and fg
|
||||||
fancy-ctrl-z () {
|
fancy-ctrl-z () {
|
||||||
if [[ $#BUFFER -eq 0 ]]; then
|
if [[ $#BUFFER -eq 0 ]]; then
|
||||||
BUFFER="fg"
|
BUFFER="fg"
|
||||||
@@ -124,10 +130,10 @@ fancy-ctrl-z () {
|
|||||||
zle -N fancy-ctrl-z
|
zle -N fancy-ctrl-z
|
||||||
bindkey '^Z' fancy-ctrl-z
|
bindkey '^Z' fancy-ctrl-z
|
||||||
|
|
||||||
## Nord dir colors
|
# Nord-themed directory colors
|
||||||
test -r "~/.dir_colors" && eval $(dircolors ~/.dir_colors)
|
test -r "~/.dir_colors" && eval $(dircolors ~/.dir_colors)
|
||||||
|
|
||||||
## Syntax Highlighting
|
# Syntax Highlighting
|
||||||
if [ -f ~/.zsh-highlighting/zsh-syntax-highlighting.zsh ]; then
|
if [ -f ~/.zsh-highlighting/zsh-syntax-highlighting.zsh ]; then
|
||||||
source $HOME/.zsh-highlighting/zsh-syntax-highlighting.zsh
|
source $HOME/.zsh-highlighting/zsh-syntax-highlighting.zsh
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user