all repos

dotfiles @ 5cc8e02

i use rach linux btw
5 files changed, 60 insertions(+), 41 deletions(-)
Update bin/giti, polybar(for bspwm), vscode
Author: Smirnov Alexandr ss2316544@gmail.com
Committed at: 2021-03-09 20:17:44 +0200
Parent: a9d8ac7
M bin/giti
···
        1
        1
         #!/bin/sh

      
        2
        2
         function add() {

      
        3
        3
             echo $1 >> .gitignore

      
        
        4
        +    echo "[.gitignore] Successful add '$1'."

      
        4
        5
         }

      
        5
        6
         function del() {

      
        6
        7
             if [ -f '.gitignore' ]; then

      ···
        10
        11
                 fi

      
        11
        12
             else echo "[.gitignore] File not found."

      
        12
        13
             fi

      
        
        14
        +    echo "[.gitignore] Successful del '$1'."

      
        13
        15
         }

      
        14
        16
         function edit() {

      
        15
        17
             sed -in "s|$1|$2|g" .gitignore

      ···
        28
        30
             add|a)  shift; add  "$@" ;;

      
        29
        31
             del|d)  shift; del  "$@" ;;

      
        30
        32
             mv)     shift; edit "$@" ;;

      
        31
        
        -    show|s) shift; show      ;;

      
        32
        
        -    help)   echo "add/a   - [file name] add to ignore"

      
        33
        
        -            echo "del/d   - [file name] delete from ignore"

      
        34
        
        -            echo "mv      - [old new]   change file name"

      
        35
        
        -            echo "show/s  - show ignore file"

      
        
        33
        +    show)   shift; show      ;;

      
        
        34
        +    help)   echo "add|a   - [file name] add to ignore."

      
        
        35
        +            echo "del|d   - [file name] delete from ignore."

      
        
        36
        +            echo "mv      - [old] [new] file name for rename."

      
        
        37
        +            echo "show    - show ignore file."

      
        36
        38
             ;;

      
        37
        
        -    *) echo "Command is not valid" ;;

      
        
        39
        +    *) echo "Command is not valid. Type 'giti help' for help." ;;

      
        38
        40
         esac

      
M bin/ipp
···
        1
        1
         #!/bin/sh

      
        2
        
        -curl ifconfig.co 

      
        
        2
        +curl ifconfig.co

      
M config/bspwm/polybar/bar.sh
···
        1
        1
         #!/bin/bash

      
        2
        2
         killall -q polybar

      
        3
        3
         while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done

      
        4
        
        -polybar -c ~/.config/bspwm/polybar/polybar bar&

      
        
        4
        +polybar -c ~/.config/bspwm/polybar/polybar min&

      
        
        5
        +#polybar -c ~/.config/bspwm/polybar/polybar bar&

      
M config/bspwm/polybar/polybar
···
        27
        27
         tray-position = right

      
        28
        28
         tray-padding = 0

      
        29
        29
         

      
        
        30
        +[bar/min]

      
        
        31
        +width = 100%

      
        
        32
        +height = 24

      
        
        33
        +fixed-center = true

      
        
        34
        +background = ${colors.background}

      
        
        35
        +foreground = ${colors.foreground}

      
        
        36
        +wm-restack = bspwm

      
        
        37
        +font-0 = Iosevka Nerd Font:style=Medium:size=8;3

      
        
        38
        +font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5

      
        
        39
        +modules-left = bspwm

      
        
        40
        +modules-right = keyboard pulseaudio wifi-signal time

      
        
        41
        +tray-position = right

      
        
        42
        +

      
        30
        43
         [module/bspwm]

      
        31
        44
         type = internal/bspwm

      
        32
        45
         pin-workspaces = true

      
M vscode/settings.json
···
        1
        1
         {

      
        2
        
        -    "workbench.colorTheme": "Ayu Mirage Bordered",

      
        3
        
        -    "workbench.iconTheme": "ayu",

      
        4
        
        -    "editor.wordWrap": "off",

      
        5
        
        -    "editor.fontSize": 14,

      
        6
        
        -    "workbench.panel.defaultLocation": "right",

      
        7
        
        -    "editor.minimap.side": "left",

      
        8
        
        -    "editor.minimap.size": "fit",

      
        9
        
        -    "workbench.sideBar.location": "right",

      
        10
        
        -    "workbench.activityBar.visible": true,

      
        11
        
        -    "window.menuBarVisibility": "hidden",

      
        12
        
        -    "editor.formatOnPaste": true,

      
        13
        
        -    "editor.minimap.enabled": false,

      
        14
        
        -    "explorer.confirmDelete": false,

      
        15
        
        -    "explorer.confirmDragAndDrop": false,

      
        
        2
        +  "workbench.colorTheme": "Ayu Dark Bordered",

      
        
        3
        +  "workbench.iconTheme": "ayu",

      
        
        4
        +  "editor.wordWrap": "off",

      
        
        5
        +  "editor.fontSize": 14,

      
        
        6
        +  "workbench.panel.defaultLocation": "right",

      
        
        7
        +  "editor.minimap.side": "left",

      
        
        8
        +  "editor.minimap.size": "fit",

      
        
        9
        +  "workbench.sideBar.location": "right",

      
        
        10
        +  "workbench.activityBar.visible": true,

      
        
        11
        +  "workbench.startupEditor": "newUntitledFile"

      
        
        12
        +  "window.menuBarVisibility": "hidden",

      
        
        13
        +  "editor.formatOnPaste": true,

      
        
        14
        +  "editor.minimap.enabled": false,

      
        
        15
        +  "explorer.confirmDelete": false,

      
        
        16
        +  "explorer.confirmDragAndDrop": false,

      
        
        17
        +

      
        
        18
        +  "editor.tabCompletion": "on",

      
        
        19
        +  "editor.tabSize": 4,

      
        
        20
        +  "editor.formatOnSave": true,

      
        16
        21
         

      
        17
        
        -    "editor.tabCompletion": "on",

      
        18
        
        -    "editor.tabSize": 4,

      
        19
        
        -    "editor.formatOnSave": true,

      
        20
        
        -    "git.autofetch": true,

      
        21
        
        -    "git.confirmSync": false,

      
        
        22
        +  "git.autofetch": true,

      
        
        23
        +  "git.confirmSync": false,

      
        
        24
        +  "gitlens.codeLens.enabled": false,

      
        22
        25
         

      
        23
        
        -    "vim.easymotion": true,

      
        24
        
        -    "vim.surround": true,

      
        25
        
        -    "vim.useSystemClipboard": true,

      
        26
        
        -    "vim.normalModeKeyBindings": [{"before": ["f"], "after" : ["leader","leader","s"]}],

      
        
        26
        +  "vim.easymotion": true,

      
        
        27
        +  "vim.surround": true,

      
        
        28
        +  "vim.useSystemClipboard": true,

      
        
        29
        +  "vim.normalModeKeyBindings": [{"before": ["f"], "after" : ["leader","leader","s"]}],

      
        27
        30
         

      
        28
        
        -    "emmet.includeLanguages": {

      
        29
        
        -        "javascript": "javascriptreact"

      
        30
        
        -    },

      
        31
        
        -    "[javascript]": {

      
        32
        
        -        "editor.defaultFormatter": "esbenp.prettier-vscode",

      
        33
        
        -        "editor.tabSize": 2

      
        34
        
        -    },

      
        35
        
        -    "[markdown]": {

      
        36
        
        -        "editor.wordWrap": "on"

      
        37
        
        -    }

      
        
        31
        +  "emmet.includeLanguages": {

      
        
        32
        +    "javascript": "javascriptreact"

      
        
        33
        +  },

      
        
        34
        +  "[javascript]": {

      
        
        35
        +    "editor.defaultFormatter": "esbenp.prettier-vscode",

      
        
        36
        +    "editor.tabSize": 2

      
        
        37
        +  },

      
        
        38
        +  "[markdown]": {

      
        
        39
        +    "editor.wordWrap": "on"

      
        
        40
        +  }

      
        38
        41
         }