Skip to content

Instantly share code, notes, and snippets.

View EgZvor's full-sized avatar

Egor Zvorykin EgZvor

  • Санкт-Петербург
View GitHub Profile
/* Dracula colors */
* {
black: rgba ( 40, 42, 54, 100 % );
gray: rgba ( 68, 71, 90, 100 % );
white: rgba ( 248, 248, 242, 100 % );
light-gray: rgba ( 98, 114, 164, 100 % );
cyan: rgba ( 139, 233, 253, 100 % );
green: rgba ( 80, 250, 123, 100 % );
orange: rgba ( 255, 184, 108, 100 % );
pink: rgba ( 255, 121, 198, 100 % );
#----------------------------------------------------
# file: ~/.ncmpcpp/config
# based on: t60r/dots
# vim:nu:ai:si:et:ts=4:sw=4:fdm=indent:fdn=1:ft=conf:
#----------------------------------------------------
playlist_disable_highlight_delay = "3"
message_delay_time = "1"
header_visibility = "no"
statusbar_visibility = "yes"
[urgency_low]
frame_color = "#8be9fd"
foreground = "#8be9fd"
background = "#282A36"
timeout = 4
[urgency_normal]
frame_color = "#50fa7b"
foreground = "#50fa7b"
background = "#282A36"
@EgZvor
EgZvor / fzy.zsh
Created August 15, 2019 23:56
fzy bindings for zsh mirrored from fzf and simplified
# CTRL-T - Paste the selected file path(s) into the command line
__fsel() {
setopt localoptions pipefail 2> /dev/null
rg --files --hidden --glob '!.git/' | fzy
local ret=$?
echo
return $ret
}
fzy-file-widget() {
#!/usr/bin/env python3
"""
The script accepts either an argument or stdin line as a Vim server name
and focuses on i3 window contaning that Vim instance.
Read `:help client-server
<http://vimdoc.sourceforge.net/htmldoc/remote.html#client-server>`_.
Requires ``psutil`` ::

Keybase proof

I hereby claim:

  • I am egzvor on github.
  • I am egzvor (https://keybase.io/egzvor) on keybase.
  • I have a public key ASCQzubYGyRq4R_viV2lVtIe--fiaa3sFAU_gkvmhUK11Qo

To claim this, I am signing this object:

@EgZvor
EgZvor / vims.sh
Last active August 17, 2021 17:45
#!/bin/bash
if [ "$1" == "--servername" ]; then
servername="$2"
shift 2
else
servername=$(vim --serverlist | rofi -dmenu -i -p "Enter the vim server name" 2>/dev/null)
fi
if [ "${servername}" == "" ]; then
@EgZvor
EgZvor / jumpfile.vim
Created November 8, 2021 18:22
Vim mappings to jump through jumplist by files
if exists('g:loaded_jumpfile')
finish
endif
let g:loaded_jumpfile = 1
function! JumpFileComputePrevious()
let [jump_list, pos] = getjumplist()
let previous_list = jump_list
\ ->map({idx, val -> [idx, val]})[:pos]
@EgZvor
EgZvor / dunstrc.cfg
Last active November 11, 2021 07:26
Dunst config
[global]
monitor = 0
follow = mouse
width = 300
height = 300
origin = top-right
offset = 20x50
scale = 0
notification_limit = 0
progress_bar = true
@EgZvor
EgZvor / smooth_split.vim
Created December 9, 2021 14:36
Smooth window splitting animation for Vim
function SmoothSplit(vertical = 0) abort
syntax off
if a:vertical
let new_size = winwidth(0) / 2
vertical 1 split
else
let new_size = winheight(0) / 2
1 split
endif
if a:vertical