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

View file

@ -1,2 +1,2 @@
#!/bin/sh
curl ifconfig.co
curl ifconfig.co

View file

@ -1,4 +1,5 @@
#!/bin/bash
killall -q polybar
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-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]
type = internal/bspwm
pin-workspaces = true

View file

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