Update bin/giti, polybar(for bspwm), vscode

This commit is contained in:
Smirnov Alexandr 2021-03-09 20:17:44 +02:00
parent a9d8ac7432
commit 5cc8e020c1
5 changed files with 60 additions and 41 deletions

View file

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
function add() { function add() {
echo $1 >> .gitignore echo $1 >> .gitignore
echo "[.gitignore] Successful add '$1'."
} }
function del() { function del() {
if [ -f '.gitignore' ]; then if [ -f '.gitignore' ]; then
@ -10,6 +11,7 @@ function del() {
fi fi
else echo "[.gitignore] File not found." else echo "[.gitignore] File not found."
fi fi
echo "[.gitignore] Successful del '$1'."
} }
function edit() { function edit() {
sed -in "s|$1|$2|g" .gitignore sed -in "s|$1|$2|g" .gitignore
@ -28,11 +30,11 @@ case "$1" in
add|a) shift; add "$@" ;; add|a) shift; add "$@" ;;
del|d) shift; del "$@" ;; del|d) shift; del "$@" ;;
mv) shift; edit "$@" ;; mv) shift; edit "$@" ;;
show|s) shift; show ;; show) shift; show ;;
help) echo "add/a - [file name] add to ignore" help) echo "add|a - [file name] add to ignore."
echo "del/d - [file name] delete from ignore" echo "del|d - [file name] delete from ignore."
echo "mv - [old new] change file name" echo "mv - [old] [new] file name for rename."
echo "show/s - show ignore file" echo "show - show ignore file."
;; ;;
*) echo "Command is not valid" ;; *) echo "Command is not valid. Type 'giti help' for help." ;;
esac esac

View file

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
killall -q polybar killall -q polybar
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
polybar -c ~/.config/bspwm/polybar/polybar bar& polybar -c ~/.config/bspwm/polybar/polybar min&
#polybar -c ~/.config/bspwm/polybar/polybar bar&

View file

@ -27,6 +27,19 @@ modules-right = keyboard pulseaudio archupd wifi-signal
tray-position = right tray-position = right
tray-padding = 0 tray-padding = 0
[bar/min]
width = 100%
height = 24
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
wm-restack = bspwm
font-0 = Iosevka Nerd Font:style=Medium:size=8;3
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
modules-left = bspwm
modules-right = keyboard pulseaudio wifi-signal time
tray-position = right
[module/bspwm] [module/bspwm]
type = internal/bspwm type = internal/bspwm
pin-workspaces = true pin-workspaces = true

View file

@ -1,38 +1,41 @@
{ {
"workbench.colorTheme": "Ayu Mirage Bordered", "workbench.colorTheme": "Ayu Dark Bordered",
"workbench.iconTheme": "ayu", "workbench.iconTheme": "ayu",
"editor.wordWrap": "off", "editor.wordWrap": "off",
"editor.fontSize": 14, "editor.fontSize": 14,
"workbench.panel.defaultLocation": "right", "workbench.panel.defaultLocation": "right",
"editor.minimap.side": "left", "editor.minimap.side": "left",
"editor.minimap.size": "fit", "editor.minimap.size": "fit",
"workbench.sideBar.location": "right", "workbench.sideBar.location": "right",
"workbench.activityBar.visible": true, "workbench.activityBar.visible": true,
"window.menuBarVisibility": "hidden", "workbench.startupEditor": "newUntitledFile"
"editor.formatOnPaste": true, "window.menuBarVisibility": "hidden",
"editor.minimap.enabled": false, "editor.formatOnPaste": true,
"explorer.confirmDelete": false, "editor.minimap.enabled": false,
"explorer.confirmDragAndDrop": false, "explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"editor.tabCompletion": "on", "editor.tabCompletion": "on",
"editor.tabSize": 4, "editor.tabSize": 4,
"editor.formatOnSave": true, "editor.formatOnSave": true,
"git.autofetch": true,
"git.confirmSync": false,
"vim.easymotion": true, "git.autofetch": true,
"vim.surround": true, "git.confirmSync": false,
"vim.useSystemClipboard": true, "gitlens.codeLens.enabled": false,
"vim.normalModeKeyBindings": [{"before": ["f"], "after" : ["leader","leader","s"]}],
"emmet.includeLanguages": { "vim.easymotion": true,
"javascript": "javascriptreact" "vim.surround": true,
}, "vim.useSystemClipboard": true,
"[javascript]": { "vim.normalModeKeyBindings": [{"before": ["f"], "after" : ["leader","leader","s"]}],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.tabSize": 2 "emmet.includeLanguages": {
}, "javascript": "javascriptreact"
"[markdown]": { },
"editor.wordWrap": "on" "[javascript]": {
} "editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.tabSize": 2
},
"[markdown]": {
"editor.wordWrap": "on"
}
} }