9 files changed,
57 insertions(+),
12 deletions(-)
Author:
Smirnov Alexandr
ss2316544@gmail.com
Committed at:
2021-02-26 09:52:43 +0200
Parent:
2a67211
M
config/nvim/init.vim
··· 66 66 set nospell spelllang=en_us 67 67 68 68 " Space/tab indicator 69 -set list listchars=tab:>·,trail:~,extends:>,precedes:<,space:· 69 +set list listchars=tab:\|·,trail:~,extends:>,precedes:<,space:· 70 70 71 71 " Disable sound 72 72 set visualbell t_vb= 73 73 74 - 75 74 "== Settings for specific files 76 75 autocmd BufWritePre *.py normal m`:%s/\s\+$//e `` 77 76 autocmd FileType python,go,json setlocal expandtab shiftwidth=4 tabstop=4 78 77 autocmd FileType html,css,javascript,javascriptreact,yaml setlocal expandtab shiftwidth=2 tabstop=2 79 - 80 78 81 79 "== Aliases 82 80 command! W :w
A
script/volume
··· 1 +#!/bin/sh 2 +CHK_MUTE() { amixer -D pulse get Master | grep '%' | grep -oE '[^ ]+$' | grep off; } 3 +VOLUME="$(amixer -D pulse get Master | grep '%' | head -n 1 | awk -F'[' '{print $2}' | awk -F'%' '{print $1}';)" 4 + 5 +case $1 in 6 + percent) 7 + if CHK_MUTE &> /dev/null 8 + then 9 + echo "" 10 + else 11 + echo " $VOLUME%" 12 + fi 13 + ;; 14 + up) amixer sset Master 2%+ ;; 15 + down) amixer sset Master 2%- ;; 16 + mute) amixer sset Master toggle ;; 17 +esac
A
script/wifi-signal
··· 1 +#!/bin/sh 2 +SIGNAL="$(cat /proc/net/wireless | grep "wlp3s0" | awk '{print $4}' | grep -o '[0-9]*')" 3 +echo " $SIGNAL%"