mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update bin/giti, polybar(for bspwm), vscode
This commit is contained in:
parent
a9d8ac7432
commit
5cc8e020c1
5 changed files with 60 additions and 41 deletions
14
bin/giti
14
bin/giti
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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&
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"workbench.colorTheme": "Ayu Mirage Bordered",
|
||||
"workbench.colorTheme": "Ayu Dark Bordered",
|
||||
"workbench.iconTheme": "ayu",
|
||||
"editor.wordWrap": "off",
|
||||
"editor.fontSize": 14,
|
||||
|
|
@ -8,6 +8,7 @@
|
|||
"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,
|
||||
|
|
@ -17,8 +18,10 @@
|
|||
"editor.tabCompletion": "on",
|
||||
"editor.tabSize": 4,
|
||||
"editor.formatOnSave": true,
|
||||
|
||||
"git.autofetch": true,
|
||||
"git.confirmSync": false,
|
||||
"gitlens.codeLens.enabled": false,
|
||||
|
||||
"vim.easymotion": true,
|
||||
"vim.surround": true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue