Update kitty font, starship config, sxhkd

This commit is contained in:
Smirnov Alexander 2021-04-18 17:26:25 +03:00
parent e268665220
commit 72c267b784
9 changed files with 45 additions and 67 deletions

View file

@ -1,4 +1,7 @@
#!/bin/sh #!/bin/sh
# Smirnov-O <ss2316544@gmail.com>
# BSPWM config file
###== Functions ###== Functions
A() { # AutoStart A() { # AutoStart
if ! pgrep $1 if ! pgrep $1
@ -16,6 +19,7 @@ A feh --randomize --bg-scale ~/Pictures/wallp &
A sxhkd -c ~/.config/bspwm/sxhkd & A sxhkd -c ~/.config/bspwm/sxhkd &
A picom -b & A picom -b &
~/.config/bspwm/polybar/bar.sh & ~/.config/bspwm/polybar/bar.sh &
xautolock -time 5 -locker "slock" &
###== BSPWM ###== BSPWM

View file

@ -5,20 +5,21 @@
super + {_,shift} Return super + {_,shift} Return
{kitty, rofi -show drun} {kitty, rofi -show drun}
super + shift + {w, e, f, c, s, t, q} super + shift + {w, e, f, s, t, q}
{google-chrome-stable, \ {google-chrome-stable, \
kitty --class nvim -e nvim, \
kitty --class ranger -e ranger, \
code, \ code, \
nemo, \
.applications/simplenote.appimage, \ .applications/simplenote.appimage, \
.applications/todoist.appimage, \ .applications/todoist.appimage, \
xkill } xkill }
{_,shift,ctrl} Print {_,shift,ctrl} Print
{scrot -s, scrot, scrot -u} {scrot -s, \
scrot, \
scrot -u }
super + {equal, minus, shift+minus} super + {equal, minus, shift+minus}
amixer sset Master {2%+,2%-,toggle} amixer sset Master {2%+, 2%-, toggle}
super + Escape super + Escape
.config/rofi/script/powermenu.sh .config/rofi/script/powermenu.sh
@ -27,36 +28,20 @@ super + Escape
super + q super + q
bspc node -c bspc node -c
alt + F4
bspc node -c
super + control + r super + control + r
bspc wm -r \ bspc wm -r \
&& pkill sxhkd \ && pkill sxhkd \
&& sxhkd -c ~/.config/bspwm/sxhkd && sxhkd -c ~/.config/bspwm/sxhkd
### == BSPWM windows
super + {_,shift + } {h,j,k,l} super + {_,shift + } {h,j,k,l}
bspc node -{f,s} {west,south,north,east} bspc node -{f,s} {west,south,north,east}
super + ctrl + {h,j,k,l} super + ctrl + {h,j,k,l}
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0} bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
### === BSPWM window preselect
super + alt + {h,j,k,l}
bspc node -p {west,south,north,east}
super + alt + {1-9}
bspc node -o 0.{1-9}
super + alt + {space,0}
bspc node -p cancel
## == BSPWM workspace
super + {_,shift + }{1-9} super + {_,shift + }{1-9}
bspc {desktop -f,node -d} focused:'^{1-9}' bspc {desktop -f,node -d} focused:'^{1-9}'
## == BSPWM window layouts
super + shift + {Tab, F11} super + shift + {Tab, F11}
bspc node -t {floating,fullscreen} bspc node -t {floating,fullscreen}

View file

@ -1,4 +1,5 @@
font_family Jetbrains Mono font_family JetBrains Mono
disable_ligatures always
font_size 11 font_size 11
repaint_delay 10 repaint_delay 10

View file

@ -73,11 +73,11 @@ command! Wq :wq
command! Term :vs|wincmd L|set nonu nornu|startinsert|cd %:p:h|term command! Term :vs|wincmd L|set nonu nornu|startinsert|cd %:p:h|term
command! Prettier :silent !prettier -w % command! Prettier :silent !prettier -w %
command! Black :silent !black % command! Black :silent !black %
command! Isort :silent !isort % command! ElmFmt :silent !elm-format % --yes
"== Settings for specific languages "== Settings for specific languages
autocmd FileType python setlocal ex sw=4 ts=4 autocmd FileType python,elm setlocal ex sw=4 ts=4
autocmd FileType javascript,javascriptreact setlocal et sw=2 ts=2 autocmd FileType javascript,javascriptreact setlocal et sw=2 ts=2
autocmd FileType html,css,json,yaml setlocal ex sw=2 ts=2 autocmd FileType html,css,json,yaml setlocal ex sw=2 ts=2
@ -85,10 +85,6 @@ autocmd FileType html,css,json,yaml setlocal ex sw=2 ts=2
"== ALE "== ALE
let g:ale_disable_lsp = 1 let g:ale_disable_lsp = 1
let g:ale_echo_msg_format = '%severity%: %s' let g:ale_echo_msg_format = '%severity%: %s'
let g:ale_linters = {
\ 'javascript': ['eslint'],
\ 'python': ['flake8'],
\ }
"== NERDTree "== NERDTree

View file

@ -1,11 +1,8 @@
# vim: ft=cfg # vim: ft=cfg
#== Websites #== Websites
ext x?html?, has firefox, X, flag f = firefox -- "$@" ext x?html?, has google-chrome, X, flag f = google-chrome "$@"
ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@" ext x?html?, has firefox, X, flag f = firefox -- "$@"
ext x?html?, has chromium-browser, X, flag f = chromium-browser -- "$@" ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@"
ext x?html?, has chromium, X, flag f = chromium -- "$@"
ext x?html?, has google-chrome, X, flag f = google-chrome -- "$@"
ext x?html?, has w3m, terminal = w3m "$@"
#== Misc #== Misc
mime ^text, label editor = ${EDITOR} -- "$@" mime ^text, label editor = ${EDITOR} -- "$@"
@ -21,13 +18,9 @@ ext js = node -- "$1"
ext sh = sh -- "$1" ext sh = sh -- "$1"
#== Video/Audio #== Video/Audio
mime ^video, has mpv, X, flag f = mpv -- "$@" mime ^video, has mpv, X, flag f = mpv -- "$@"
mime ^video, has mpv, X, flag f = mpv --fs -- "$@" mime ^video, has mpv, X, flag f = mpv --fs -- "$@"
mime ^video, has mplayer2, X, flag f = mplayer2 -- "$@" mime ^video|audio, has vlc, X, flag f = vlc -- "$@"
mime ^video, has mplayer2, X, flag f = mplayer2 -fs -- "$@"
mime ^video, has mplayer, X, flag f = mplayer -- "$@"
mime ^video, has mplayer, X, flag f = mplayer -fs -- "$@"
mime ^video|audio, has vlc, X, flag f = vlc -- "$@"
#== Documents #== Documents
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f = libreoffice "$@" ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f = libreoffice "$@"
@ -56,26 +49,6 @@ ext zip, has unzip = for file in "$@"; do unzip -d "${file%.*}" "$file"; done
ext rar, has unrar = unrar l "$1" | less ext rar, has unrar = unrar l "$1" | less
ext rar, has unrar = for file in "$@"; do unrar x "$file"; done ext rar, has unrar = for file in "$@"; do unrar x "$file"; done
#== Fonts
mime ^font, has fontforge, X, flag f = fontforge "$@"
#== Terminals #== Terminals
mime ^ranger/x-terminal-emulator, has kitty = kitty -- "$@" mime ^ranger/x-terminal-emulator, has kitty = kitty -- "$@"
mime ^ranger/x-terminal-emulator, has alacritty = alacritty -e "$@" mime ^ranger/x-terminal-emulator, has alacritty = alacritty -e "$@"
#== Misc
label wallpaper, number 11, mime ^image, has feh, X = feh --bg-scale "$1"
label wallpaper, number 12, mime ^image, has feh, X = feh --bg-tile "$1"
label wallpaper, number 13, mime ^image, has feh, X = feh --bg-center "$1"
label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1"
#== Generic file openers
label open, has xdg-open = xdg-open -- "$@"
label open, has open = open -- "$@"
!mime ^text, !ext json|csv|tex|py|rb|js|sh = ask
label editor, !mime ^text, !ext json|csv|tex|py|rb|js|sh = ${EDITOR} -- "$@"
label pager, !mime ^text, !ext json|csv|tex|py|rb|js|sh = "$PAGER" -- "$@"
mime application/x-executable = "$1"
label trash, has trash-put = trash-put -- "$@"
label trash = mkdir -p -- ${XDG_DATA_DIR:-$HOME/.ranger}/ranger-trash; mv -- "$@" ${XDG_DATA_DIR:-$HOME/.ranger}/ranger-trash

18
config/starship.toml Normal file
View file

@ -0,0 +1,18 @@
add_newline = false
[line_break]
disabled = false
[nodejs]
symbol = "N.JS "
[python]
symbol = "PY "
[elm]
symbol = "Elm "
[directory]
truncation_length = 3
truncate_to_repo = false

View file

@ -11,10 +11,8 @@
"editor.minimap.enabled": false, "editor.minimap.enabled": false,
"editor.tabCompletion": "on", "editor.tabCompletion": "on",
"editor.tabSize": 2, "editor.tabSize": 2,
"explorer.confirmDelete": false, "explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false, "explorer.confirmDragAndDrop": false,
"window.menuBarVisibility": "hidden", "window.menuBarVisibility": "hidden",
"gitlens.codeLens.enabled": false, "gitlens.codeLens.enabled": false,
@ -22,6 +20,9 @@
"git.confirmSync": false, "git.confirmSync": false,
"git.enableSmartCommit": true, "git.enableSmartCommit": true,
"liveSassCompile.settings.formats": [{"format": "expanded", "extensionName": ".css", "savePath": null}],
"liveSassCompile.settings.generateMap": false,
"emmet.includeLanguages": { "emmet.includeLanguages": {
"javascript": "javascriptreact" "javascript": "javascriptreact"
}, },