all repos

dotfiles @ 02491de

i use rach linux btw
24 files changed, 145 insertions(+), 640 deletions(-)
Added alacitty, github-cli, updated zsh, vscode, README, deleted not used configs
Author: neoteny ss2316544@gmail.com
Committed at: 2021-11-28 22:27:23 +0200
Parent: 08e75ea
M README.md
···
                1
                1
                 <h1 align="center">dotfiles</h1>

              
                2
                2
                 

              
                3
                
                -![](./config/bspwm/screen.png)

              
                4
                
                ---------------

              
                5
                
                -

              
                6
                
                -### System configuration

              
                7
                
                -- `OS` Arch

              
                8
                
                -- `WM` bspwm

              
                9
                
                -- `Terminal` kitty

              
                10
                
                -- `Shell` zsh

              
                11
                
                -- `Editor` nvim, vscode

              
                12
                
                -- `File manager` ranger

              
                13
                
                -- `Browser` chrome

              
                
                3
                +## System info

              
                
                4
                +- `OS` Arch linux

              
                
                5
                +- `DE` Gnome 4

              
                
                6
                +- `Terminal` Alacritty

              
                
                7
                +- `Editors` nvim, vscode

              
                
                8
                +- `Browser` chrome, firefox

              
                14
                9
                 - `Font` Jatbrains Mono

              
                15
                
                -- `Icon font` Font Awesome

              
                16
                
                -- `Launcher` rofi

              
                17
                10
                 

              
                18
                
                -### Install config

              
                19
                
                -Since i use **[rcm](https://github.com/thoughtbot/rcm)** set it:

              
                20
                
                -```bash

              
                21
                
                -yay -S rcm

              
                22
                
                -```

              
                23
                
                -

              
                24
                
                -Install dependency:

              
                
                11
                +## Install dependencys

              
                25
                12
                 ```bash

              
                26
                
                -sudo pacman -S git bspwm sxhkd dunst alacritty neovim picom rofi zsh ranger ttf-font-awesome ttf-jetbrains-mono

              
                27
                
                -yay -S polybar

              
                
                13
                +sudo pacman -S git alacritty neovim zsh ttf-jetbrains-mono

              
                28
                14
                 ```

              
                29
                15
                 

              
                30
                
                -And install configs:

              
                
                16
                +## And install deps

              
                31
                17
                 ```bash

              
                32
                18
                 git clone --recursive https://github.com/Smirnov-O/dotfiles .dotfiles

              
                33
                19
                 rcup rcrc && rcup

              
                34
                20
                 ```

              
                
                21
                +

              
                
                22
                +## Gonome extensions

              
                
                23
                +- [Freon](https://extensions.gnome.org/extension/841/freon)

              
                
                24
                +- [DDTerm](https://extensions.gnome.org/extension/3780/ddterm)
              
D bin/giti
···
                1
                
                -#!/bin/sh

              
                2
                
                -function add() {

              
                3
                
                -    echo $1 >> .gitignore

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

              
                5
                
                -}

              
                6
                
                -

              
                7
                
                -function del() {

              
                8
                
                -    if [ -f '.gitignore' ]; then

              
                9
                
                -        if [ "$(cat .gitignore|wc -l)" = "1" ]

              
                10
                
                -        then rm .gitignore

              
                11
                
                -        else sed -i "/$1/d" .gitignore

              
                12
                
                -        fi

              
                13
                
                -    else echo "[.gitignore] File not found."

              
                14
                
                -    fi

              
                15
                
                -    echo "[.gitignore] Successful del '$1'."

              
                16
                
                -}

              
                17
                
                -

              
                18
                
                -function edit() {

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

              
                20
                
                -}

              
                21
                
                -

              
                22
                
                -function show() {

              
                23
                
                -    if [ -f '.gitignore' ]; then

              
                24
                
                -        if [ -f '/usr/bin/bat' ]

              
                25
                
                -        then bat .gitignore

              
                26
                
                -        else cat .gitignore

              
                27
                
                -        fi

              
                28
                
                -    else echo "[.gitignore] File not found."

              
                29
                
                -    fi

              
                30
                
                -}

              
                31
                
                -

              
                32
                
                -case "$1" in

              
                33
                
                -  add|a)  shift; add  "$@" ;;

              
                34
                
                -  del|d)  shift; del  "$@" ;;

              
                35
                
                -  mv|m)   shift; edit "$@" ;;

              
                36
                
                -  show)   shift; show      ;;

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

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

              
                39
                
                -        echo "mv|m  - [old] [new] file name for rename."

              
                40
                
                -        echo "show  - show ignore file." ;;

              
                41
                
                -  *) echo "Command is not valid. Type 'giti help' for help." ;;

              
                42
                
                -esac

              
D bin/gpe
···
                1
                
                -#!/usr/bin/env bash

              
                2
                
                -# For working this script set $GPG_KEY with gpg key

              
                3
                
                -

              
                4
                
                -## Functions

              
                5
                
                -encrypt() {

              
                6
                
                -    gpg -ea -r $GPG_KEY $@

              
                7
                
                -}

              
                8
                
                -decrypt() {

              
                9
                
                -  local f="$1"

              
                10
                
                -  if [ ${f: -4} == ".asc" ]

              
                11
                
                -    then gpg -d -o ${f%%.asc} $@

              
                12
                
                -  elif [ ${f: -4} == ".gpg" ]

              
                13
                
                -    then gpg -d -o ${f%%.gpg} $@

              
                14
                
                -  fi

              
                15
                
                -}

              
                16
                
                -

              
                17
                
                -## Case's

              
                18
                
                -case "$1" in

              
                19
                
                -    enc|e) shift; encrypt $@ ;;

              
                20
                
                -    dec|d) shift; decrypt $@ ;;

              
                21
                
                -        *) echo "Error."     ;;

              
                22
                
                -esac

              
A config/alacritty.yml
···
                
                1
                +env:

              
                
                2
                +  TERM: xterm-256color

              
                
                3
                +

              
                
                4
                +window:

              
                
                5
                +  title: Alacritty

              
                
                6
                +  dynamic_padding: false

              
                
                7
                +  padding:

              
                
                8
                +    x: 6

              
                
                9
                +    y: 6

              
                
                10
                +

              
                
                11
                +  class:

              
                
                12
                +    instance: Alacritty

              
                
                13
                +    general: Alacritty

              
                
                14
                +

              
                
                15
                +scrolling:

              
                
                16
                +  history: 5000

              
                
                17
                +  auto_scroll: true

              
                
                18
                +

              
                
                19
                +tabspaces: 4

              
                
                20
                +live_config_reload: true

              
                
                21
                +alt_send_esc: true

              
                
                22
                +background_opacity: 0.9

              
                
                23
                +dynamic_title: false

              
                
                24
                +decorations: none

              
                
                25
                +draw_bold_text_with_bright_colors: true

              
                
                26
                +

              
                
                27
                +cursor:

              
                
                28
                +  # ▇ Block

              
                
                29
                +  # _ Underline

              
                
                30
                +  # | Beam

              
                
                31
                +  style: Underline

              
                
                32
                +  unfocused_hollow: true

              
                
                33
                +

              
                
                34
                +font:

              
                
                35
                +  size: 12.0

              
                
                36
                +  normal:

              
                
                37
                +    family: JetBrains Mono

              
                
                38
                +    style: Regular

              
                
                39
                +  bold:

              
                
                40
                +    family: JetBrains Mono

              
                
                41
                +    style: Bold

              
                
                42
                +  italic:

              
                
                43
                +    family: JetBrains Mono

              
                
                44
                +    style: Italic

              
                
                45
                +  bold_italic:

              
                
                46
                +    family: JetBrains Mono

              
                
                47
                +    style: Bold Italic

              
                
                48
                +  offset:

              
                
                49
                +    x: 0

              
                
                50
                +    y: 1

              
                
                51
                +

              
                
                52
                +schemes:

              
                
                53
                +  vscode: &vscode

              
                
                54
                +    primary:

              
                
                55
                +     background: '#1e1e1e'

              
                
                56
                +     foreground: '#d4d4d4'

              
                
                57
                +    cursor:

              
                
                58
                +      text: CellBackground

              
                
                59
                +      cursor: '#d4d4d4'

              
                
                60
                +    normal:

              
                
                61
                +      black:   '#1e1e1e'

              
                
                62
                +      red:     '#f44747'

              
                
                63
                +      green:   '#608b4e'

              
                
                64
                +      yellow:  '#dcdcaa'

              
                
                65
                +      blue:    '#569cd6'

              
                
                66
                +      magenta: '#c678dd'

              
                
                67
                +      cyan:    '#56b6c2'

              
                
                68
                +      white:   '#d4d4d4'

              
                
                69
                +    bright:

              
                
                70
                +      black:   '#545454'

              
                
                71
                +      red:     '#f44747'

              
                
                72
                +      green:   '#608b4e'

              
                
                73
                +      yellow:  '#dcdcaa'

              
                
                74
                +      blue:    '#569cd6'

              
                
                75
                +      magenta: '#c678dd'

              
                
                76
                +      cyan:    '#56b6c2'

              
                
                77
                +      white:   '#d4d4d4'

              
                
                78
                +

              
                
                79
                +colors: *vscode

              
                
                80
                +

              
                
                81
                +key_bindings:

              
                
                82
                +  - { key: V,         mods: Control|Shift, action: Paste            }

              
                
                83
                +  - { key: C,         mods: Control|Shift, action: Copy             }

              
                
                84
                +  - { key: Key0,      mods: Control,       action: ResetFontSize    }

              
                
                85
                +  - { key: Plus,      mods: Control,       action: IncreaseFontSize }

              
                
                86
                +  - { key: Minus,     mods: Control,       action: DecreaseFontSize }

              
                
                87
                +  - { key: F11,       mods: None,          action: ToggleFullscreen }

              
D config/bspwm/README.md
···
                1
                
                -# BSPWM

              
                2
                
                -

              
                3
                
                -![](./screen.png)

              
                4
                
                ---------------

              
                5
                
                -

              
                6
                
                -### Install

              
                7
                
                -```bash

              
                8
                
                -sudo pacman -S bspwm sxhkd alacritty

              
                9
                
                -yay -S polybar

              
                10
                
                -```

              
D config/bspwm/bspwmrc
···
                1
                
                -#!/bin/sh

              
                2
                
                -# Smirnov-O <ss2316544@gmail.com>

              
                3
                
                -# BSPWM config file

              
                4
                
                -

              
                5
                
                -###== Functions

              
                6
                
                -A() {  # AutoStart

              
                7
                
                -  if ! pgrep $1

              
                8
                
                -     then $@& fi

              
                9
                
                -}

              
                10
                
                -C() {  # Config

              
                11
                
                -    bspc config $@

              
                12
                
                -}

              
                13
                
                -R() {  # Set rule

              
                14
                
                -    bspc rule -a $@

              
                15
                
                -}

              
                16
                
                -#== Autostart

              
                17
                
                -A feh --randomize --bg-scale ~/Pictures/wallp &

              
                18
                
                -xautolock -time 5 -locker "slock" &

              
                19
                
                -A sxhkd -c ~/.config/bspwm/sxhkd &

              
                20
                
                -~/.config/bspwm/polybar/bar.sh &

              
                21
                
                -A picom -b &

              
                22
                
                -

              
                23
                
                -#== BSPWM

              
                24
                
                -

              
                25
                
                -# Workspaces

              
                26
                
                -bspc monitor -d 1 2 3 4 5 6 7 8 9

              
                27
                
                -

              
                28
                
                -# General

              
                29
                
                -C border_width          2

              
                30
                
                -C window_gap            2

              
                31
                
                -C split_ratio           0.50

              
                32
                
                -C borderless_monocle    true

              
                33
                
                -C gapless_monocle       true

              
                34
                
                -C single_monocle        true

              
                35
                
                -C focus_follows_pointer true

              
                36
                
                -

              
                37
                
                -# Colors

              
                38
                
                -C normal_border_color  "#1f2227"

              
                39
                
                -C active_border_color  "#e06c75"

              
                40
                
                -C focused_border_color "#61AFEF"

              
                41
                
                -C urgent_border_color  "#5c6370"

              
                42
                
                -

              
                43
                
                -#== BSPWM Rules

              
                44
                
                -R Google-chrome       desktop='^2' focus=on  follow=on

              
                45
                
                -R Code                desktop='^3' focus=on  follow=on state=fullscreen

              
                46
                
                -R jetbrains-webstorm  desktop='^3' focus=on  follow=on

              
                47
                
                -R Postman             desktop='^4' focus=off follow=off

              
                48
                
                -R discord             desktop='^5' focus=on  follow=off

              
                49
                
                -R TelegramDesktop     desktop='^5' focus=off follow=on

              
                50
                
                -R Nemo                desktop='^5' focus=on  follow=on

              
                51
                
                -R KeePassXC           desktop='^6' focus=on  follow=on

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

              
                2
                
                -killall -q polybar

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

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

              
D config/bspwm/polybar/polybar
···
                1
                
                -; # vim: ft=dosini

              
                2
                
                -[settings]

              
                3
                
                -enable-ipc = true

              
                4
                
                -format-padding = 1

              
                5
                
                -

              
                6
                
                -[colors]

              
                7
                
                -background = #1f2227

              
                8
                
                -foreground = #abb2bf

              
                9
                
                -cyan  = #61AFEF

              
                10
                
                -alert = #e06c75

              
                11
                
                -empty = #5c6370

              
                12
                
                -

              
                13
                
                -

              
                14
                
                -[bar/bar]

              
                15
                
                -width = 100%

              
                16
                
                -height = 24

              
                17
                
                -fixed-center = true

              
                18
                
                -background = ${colors.background}

              
                19
                
                -foreground = ${colors.foreground}

              
                20
                
                -wm-restack = bspwm

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

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

              
                23
                
                -modules-left = bspwm archupd

              
                24
                
                -modules-center = time wifi-signal

              
                25
                
                -modules-right = pulseaudio keyboard

              
                26
                
                -tray-position = right

              
                27
                
                -tray-padding = 0

              
                28
                
                -

              
                29
                
                -[module/bspwm]

              
                30
                
                -type = internal/bspwm

              
                31
                
                -pin-workspaces = true

              
                32
                
                -enable-click = true

              
                33
                
                -fuzzy-match = true

              
                34
                
                -enable-scroll = true

              
                35
                
                -label-focused = 

              
                36
                
                -label-focused-foreground = ${colors.cyan}

              
                37
                
                -label-focused-padding = 2

              
                38
                
                -label-occupied = 

              
                39
                
                -label-occupied-foreground = ${colors.foreground}

              
                40
                
                -label-occupied-padding = 2

              
                41
                
                -label-urgent = 

              
                42
                
                -label-urgent-foreground = ${colors.alert}

              
                43
                
                -label-urgent-padding = 2

              
                44
                
                -label-empty = 

              
                45
                
                -label-empty-foreground = ${colors.empty}

              
                46
                
                -label-empty-padding = 2

              
                47
                
                -

              
                48
                
                -[module/pulseaudio]

              
                49
                
                -type = internal/pulseaudio

              
                50
                
                -interval = 2

              
                51
                
                -format-volume = <ramp-volume> <label-volume>

              
                52
                
                -label-volume = %percentage%%

              
                53
                
                -label-volume-foreground = ${root.foreground}

              
                54
                
                -label-muted = 

              
                55
                
                -ramp-volume-0 = 

              
                56
                
                -

              
                57
                
                -[module/archupd]

              
                58
                
                -type = custom/script

              
                59
                
                -exec = ~/.config/bspwm/polybar/scripts/updates-pacman-aur.sh

              
                60
                
                -click-left = alacritty -e ~/bin/arch-upd

              
                61
                
                -interval = 60

              
                62
                
                -

              
                63
                
                -[module/wifi-signal]

              
                64
                
                -type = custom/script

              
                65
                
                -label =  %output:%%

              
                66
                
                -exec = ~/.config/bspwm/polybar/scripts/wifi-signal.sh

              
                67
                
                -interval = 3

              
                68
                
                -

              
                69
                
                -[module/keyboard]

              
                70
                
                -type = internal/xkeyboard

              
                71
                
                -label-layout =  %layout%

              
                72
                
                -blacklist-0 = num lock

              
                73
                
                -blacklist-1 = scroll lock

              
                74
                
                -blacklist-2= caps lock

              
                75
                
                -

              
                76
                
                -[module/date]

              
                77
                
                -type = internal/date

              
                78
                
                -interval = 600

              
                79
                
                -date = %d.%m

              
                80
                
                -label =  %date%

              
                81
                
                -

              
                82
                
                -[module/time]

              
                83
                
                -type = internal/date

              
                84
                
                -time = %H:%M

              
                85
                
                -label =  %time%

              
D config/bspwm/polybar/scripts/updates-pacman-aur.sh
···
                1
                
                -#!/usr/bin/env bash

              
                2
                
                -if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then

              
                3
                
                -    updates_arch=0

              
                4
                
                -fi

              
                5
                
                -

              
                6
                
                -if ! updates_aur=$(yay -Qum 2> /dev/null | wc -l); then

              
                7
                
                -    updates_aur=0

              
                8
                
                -fi

              
                9
                
                -

              
                10
                
                -updates=$(("$updates_arch" + "$updates_aur"))

              
                11
                
                -if [ "$updates" -gt 0 ]; then

              
                12
                
                -    echo " $updates"

              
                13
                
                -else

              
                14
                
                -    echo ""

              
                15
                
                -fi

              
D config/bspwm/polybar/scripts/wifi-signal.sh
···
                1
                
                -#!/bin/sh

              
                2
                
                -cat /proc/net/wireless \

              
                3
                
                -  | grep "wlp3s0"      \

              
                4
                
                -  | awk '{print $4}'   \

              
                5
                
                -  | grep -o '[0-9]*'

              
D config/bspwm/screen.png

Not showing binary file.

D config/bspwm/sxhkd
···
                1
                
                -#== Users hotkeys

              
                2
                
                -super + {_, shift} Return

              
                3
                
                -    {alacritty, rofi -show drun}

              
                4
                
                -

              
                5
                
                -super + shift + {w, e, f, z, q}

              
                6
                
                -    {google-chrome-stable, \

              
                7
                
                -    code,  \

              
                8
                
                -    nemo,  \

              
                9
                
                -    slock, \

              
                10
                
                -    xkill  }

              
                11
                
                -

              
                12
                
                -super + {equal, minus, shift + minus}

              
                13
                
                -    amixer sset Master {2%+, 2%-, toggle}

              
                14
                
                -

              
                15
                
                -Print

              
                16
                
                -    flameshot gui

              
                17
                
                -

              
                18
                
                -super + Escape

              
                19
                
                -    .config/rofi/script/powermenu.sh

              
                20
                
                -

              
                21
                
                -#== BSPWM

              
                22
                
                -super + q

              
                23
                
                -    bspc node -c

              
                24
                
                -

              
                25
                
                -alt + f4

              
                26
                
                -    bspc node -c

              
                27
                
                -

              
                28
                
                -super + control + r

              
                29
                
                -    bspc wm -r && pkill sxhkd && sxhkd -c ~/.config/bspwm/sxhkd

              
                30
                
                -

              
                31
                
                -super + {_,shift + } {h,j,k,l}

              
                32
                
                -    bspc node -{f,s} {west,south,north,east}

              
                33
                
                -

              
                34
                
                -super + ctrl + {h,j,k,l}

              
                35
                
                -    bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}

              
                36
                
                -

              
                37
                
                -super + {_,shift + }{1-9}

              
                38
                
                -    bspc {desktop -f,node -d} focused:'^{1-9}'

              
                39
                
                -

              
                40
                
                -super + {s, f, d}

              
                41
                
                -    bspc node -t {tiled, floating, fullscreen}

              
                42
                
                -

              
                43
                
                -# vim: ft=sxhkdrc

              
D config/dunst/dunstrc
···
                1
                
                -[global]

              
                2
                
                -    monitor = 0

              
                3
                
                -    follow = mouse

              
                4
                
                -    geometry = "250x50-5+30"

              
                5
                
                -    indicate_hidden = yes

              
                6
                
                -    shrink = no

              
                7
                
                -    transparency = 0

              
                8
                
                -    notification_height = 0

              
                9
                
                -    separator_height = 4

              
                10
                
                -    padding = 16

              
                11
                
                -    horizontal_padding = 16

              
                12
                
                -    frame_width = 2

              
                13
                
                -    frame_color = "#1F2324"

              
                14
                
                -    separator_color = frame

              
                15
                
                -    sort = yes

              
                16
                
                -    idle_threshold = 120

              
                17
                
                -    font = Roboto 8

              
                18
                
                -    line_height = 4

              
                19
                
                -    markup = full

              
                20
                
                -    format = "<b>%s</b>\n%b"

              
                21
                
                -    alignment = left

              
                22
                
                -    show_age_threshold = 60

              
                23
                
                -    word_wrap = yes

              
                24
                
                -    ignore_newline = no

              
                25
                
                -    stack_duplicates = false

              
                26
                
                -    hide_duplicate_count = false

              
                27
                
                -    show_indicators = yes

              
                28
                
                -    icon_position = off

              
                29
                
                -    always_run_script = true

              
                30
                
                -    startup_notification = false

              
                31
                
                -    force_xinerama = false

              
                32
                
                -

              
                33
                
                -[shortcuts]

              
                34
                
                -    close =

              
                35
                
                -    close_all =

              
                36
                
                -    history =

              
                37
                
                -    context =

              
                38
                
                -

              
                39
                
                -[urgency_low]

              
                40
                
                -    background = "#262A2B"

              
                41
                
                -    foreground = "#FFFFFF"

              
                42
                
                -    timeout = 2

              
                43
                
                -

              
                44
                
                -[urgency_normal]

              
                45
                
                -    background = "#262A2B"

              
                46
                
                -    foreground = "#FFFFFF"

              
                47
                
                -    timeout = 4

              
                48
                
                -

              
                49
                
                -[urgency_critical]

              
                50
                
                -    background = "#262A2B"

              
                51
                
                -    foreground = "#FFFFFF"

              
                52
                
                -    frame_color = "#e3788f"

              
                53
                
                -    timeout = 0

              
A config/gh/config.yml
···
                
                1
                +git_protocol: ssh

              
                
                2
                +editor: nvim

              
                
                3
                +prompt: enabled

              
                
                4
                +pager: bat

              
                
                5
                +aliases:

              
                
                6
                +    co: pr checkout

              
                
                7
                +    il: issues list

              
                
                8
                +    clone: repo clone

              
D config/ranger/rc.conf
···
                1
                
                -#== Appearance

              
                2
                
                -set colorscheme solarized

              
                3
                
                -set confirm_on_delete multiple

              
                4
                
                -set automatically_count_files false

              
                5
                
                -

              
                6
                
                -#== General

              
                7
                
                -set update_tmux_title false

              
                8
                
                -set tilde_in_titlebar true

              
                9
                
                -

              
                10
                
                -#== Git integration

              
                11
                
                -set vcs_aware true

              
                12
                
                -set vcs_backend_git enabled

              
                13
                
                -set vcs_msg_length 30

              
                14
                
                -

              
                15
                
                -#== Image preview

              
                16
                
                -set preview_images true

              
                17
                
                -set preview_images_method ueberzug

              
                18
                
                -

              
                19
                
                -#== History

              
                20
                
                -set max_console_history_size 20

              
                21
                
                -set save_console_history false

              
                22
                
                -set scroll_offset 4

              
                23
                
                -

              
                24
                
                -#== Mappings

              
                25
                
                -map gc     cd ~/code

              
                26
                
                -map gd     cd ~/Documents

              
                27
                
                -map gw     cd ~/Downloads

              
                28
                
                -map g.     cd ~/.dotfiles

              
                29
                
                -map gu     cd /mnt/usb

              
                30
                
                -

              
                31
                
                -map @      shell $SHELL

              
                32
                
                -map dD     delete

              
                33
                
                -map <c-k>  tab_shift 1

              
                34
                
                -map <c-j>  tab_shift -1

              
                35
                
                -map ee     shell gpe enc %s

              
                36
                
                -map ed     shell gpe dec %s

              
                37
                
                -map sa     shell zip -r archive.zip %s

              
                38
                
                -map ss     shell tar -czvf archive.tar.gz %s

              
                39
                
                -map sd     shell 7z a archive.7z %s

              
                40
                
                -map se     shell extract %s

              
D config/rofi/config
···
                1
                
                -rofi.theme: nten

              
                2
                
                -rofi.font: Jetbarains Mono 12

              
                3
                
                -rofi.auto-select: false

              
                4
                
                -rofi.hide-scrollbar: true

              
                5
                
                -rofi.drun-display-format: {name}

              
                6
                
                -rofi.display-drun: Run

              
                7
                
                -rofi.display-run: Run

              
D config/rofi/script/powermenu.sh
···
                1
                
                -#!/usr/bin/env bash

              
                2
                
                -declare options=("ShutDown\nLogOut\nReboot")

              
                3
                
                -rofitheme="nten-dmenu"

              
                4
                
                -choice=$(echo -e ${options[@]} | rofi -dmenu -p "Power" -theme $rofitheme)

              
                5
                
                -

              
                6
                
                -case $choice in

              
                7
                
                -    "ShutDown")

              
                8
                
                -        case "$(echo -e "Yes\nNo" | rofi -dmenu -p "ShutDown" -theme $rofitheme)" in

              
                9
                
                -            "Yes") exec systemctl poweroff ;;

              
                10
                
                -            "no")  exec exit 0             ;;

              
                11
                
                -        esac

              
                12
                
                -    ;;

              
                13
                
                -    "LogOut")

              
                14
                
                -        case "$(echo -e "Yes\nNo" | rofi -dmenu -p "LogOut" -theme $rofitheme)" in

              
                15
                
                -            "Yes") exec loginctl terminate-session $XDG_SESSION_ID ;;

              
                16
                
                -            "No")  exec exit 0                                     ;;

              
                17
                
                -        esac

              
                18
                
                -    ;;

              
                19
                
                -    "Reboot")

              
                20
                
                -        case "$(echo -e "Yes\nNo" | rofi -dmenu -p "Reboot" -theme $rofitheme)" in

              
                21
                
                -            "Yes") exec systemctl reboot ;;

              
                22
                
                -            "No")  exec exit 0           ;;

              
                23
                
                -        esac

              
                24
                
                -    ;;

              
                25
                
                -esac

              
D config/rofi/themes/nten-dmenu.rasi
···
                1
                
                -* {

              
                2
                
                -    background-color:           #262A2B;

              
                3
                
                -    text-color:                 #93A1A1;

              
                4
                
                -    font:                       "JetbrainsMono Nerd Font 9";

              
                5
                
                -    prompt-padding:             4px;

              
                6
                
                -    selected-background:        #008DCD;

              
                7
                
                -    selected-foreground:        #ffffff;

              
                8
                
                -}

              
                9
                
                -window {

              
                10
                
                -    anchor:  north;

              
                11
                
                -    location: north;

              
                12
                
                -    width: 100%;

              
                13
                
                -    padding: 0px;

              
                14
                
                -    children: [ horibox ];

              
                15
                
                -}

              
                16
                
                -horibox {

              
                17
                
                -    orientation: horizontal;

              
                18
                
                -    height: 24px;

              
                19
                
                -    children: [ prompt, entry, listview ];

              
                20
                
                -}

              
                21
                
                -prompt {

              
                22
                
                -    padding:          @prompt-padding;

              
                23
                
                -    background-color: @selected-background;

              
                24
                
                -    text-color:       @selected-foreground;

              
                25
                
                -    font:             @font;

              
                26
                
                -}

              
                27
                
                -listview {

              
                28
                
                -    layout: horizontal;

              
                29
                
                -    spacing: 0px;

              
                30
                
                -    lines: 100;

              
                31
                
                -}

              
                32
                
                -entry {

              
                33
                
                -    padding: 4px 4px;

              
                34
                
                -    expand: false;

              
                35
                
                -    width: 170px;

              
                36
                
                -}

              
                37
                
                -element { padding: 4px 8px; }

              
                38
                
                -element selected {

              
                39
                
                -    background-color: @selected-background;

              
                40
                
                -    text-color:       @selected-foreground;

              
                41
                
                -}

              
D config/rofi/themes/nten.rasi
···
                1
                
                -configuration {

              
                2
                
                -  show-icons: true;

              
                3
                
                -  display-drun: "";

              
                4
                
                -  drun-display-format: "{name}";

              
                5
                
                -  disable-history: false;

              
                6
                
                -  hide-scrollbar: true;

              
                7
                
                -  sidebar-mode: true;

              
                8
                
                -}

              
                9
                
                -* {

              
                10
                
                -  bg: #262A2b;

              
                11
                
                -  fg: #cfd1dd;

              
                12
                
                -  ac: #008dcd;

              
                13
                
                -  background-color: @bg;

              
                14
                
                -  text-color: @fg;

              
                15
                
                -}

              
                16
                
                -

              
                17
                
                -window {

              
                18
                
                -  width: 40%;

              
                19
                
                -}

              
                20
                
                -

              
                21
                
                -prompt {

              
                22
                
                -  enabled: true;

              
                23
                
                -  padding: 0.3% 1% 0% -0.5%;

              
                24
                
                -  margin: 0 0 0 0;

              
                25
                
                -  background-color: @bg;

              
                26
                
                -  text-color: @fg;

              
                27
                
                -  font: "JetBrainsMono Nerd Font 12";

              
                28
                
                -}

              
                29
                
                -

              
                30
                
                -entry {

              
                31
                
                -  background-color: @bg;

              
                32
                
                -  text-color: @fg;

              
                33
                
                -  placeholder-color: @fg;

              
                34
                
                -  expand: true;

              
                35
                
                -  horizontal-align: 0;

              
                36
                
                -  placeholder: "Type to search";

              
                37
                
                -  padding: 0.1% 0% 0% 0%;

              
                38
                
                -  margin: 0.6% 0 0 0;

              
                39
                
                -  blink: true;

              
                40
                
                -}

              
                41
                
                -

              
                42
                
                -inputbar {

              
                43
                
                -  children: [ prompt, entry ];

              
                44
                
                -  background-color: @bg;

              
                45
                
                -  text-color: @bg;

              
                46
                
                -  expand: false;

              
                47
                
                -  border: 0% 0% 0% 0%;

              
                48
                
                -  border-radius: 0px;

              
                49
                
                -  border-color: @ac;

              
                50
                
                -  margin: 0% 0% 0% 0%;

              
                51
                
                -  padding: 1.5%;

              
                52
                
                -}

              
                53
                
                -

              
                54
                
                -listview {

              
                55
                
                -  background-color: @al;

              
                56
                
                -  padding: 10px;

              
                57
                
                -  columns: 4;

              
                58
                
                -  lines: 3;

              
                59
                
                -  spacing: 0%;

              
                60
                
                -  cycle: false;

              
                61
                
                -  dynamic: true;

              
                62
                
                -  layout: vertical;

              
                63
                
                -}

              
                64
                
                -

              
                65
                
                -mainbox {

              
                66
                
                -  background-color: @bg;

              
                67
                
                -  border: 0% 0% 0% 0%;

              
                68
                
                -  border-radius: 0% 0% 0% 0%;

              
                69
                
                -  border-color: @bg;

              
                70
                
                -  children: [ inputbar, listview ];

              
                71
                
                -  spacing: 0%;

              
                72
                
                -  padding: 1%;

              
                73
                
                -}

              
                74
                
                -

              
                75
                
                -element {

              
                76
                
                -  background-color: @al;

              
                77
                
                -  text-color: @fg;

              
                78
                
                -  orientation: vertical;

              
                79
                
                -  border-radius: 0%;

              
                80
                
                -  padding: 2% 0% 2% 0%;

              
                81
                
                -}

              
                82
                
                -

              
                83
                
                -element-icon {

              
                84
                
                -  size: 49px;

              
                85
                
                -  border: 0px;

              
                86
                
                -}

              
                87
                
                -

              
                88
                
                -element-text {

              
                89
                
                -  expand: true;

              
                90
                
                -  horizontal-align: 0.5;

              
                91
                
                -  vertical-align: 0.5;

              
                92
                
                -  margin: 0.5% 0.5% -0.5% 0.5%;

              
                93
                
                -}

              
                94
                
                -

              
                95
                
                -element selected {

              
                96
                
                -  background-color: @ac;

              
                97
                
                -  text-color: @bg;

              
                98
                
                -}

              
D config/zathura/zathurarc
···
                1
                
                -set font                     "JetBrains Mono 10"

              
                2
                
                -set default-fg               "#DFDFDF"

              
                3
                
                -set default-bg               "#262A2B"

              
                4
                
                -

              
                5
                
                -set statusbar-fg             "#CED4DA"

              
                6
                
                -set statusbar-bg             "#1F2324"

              
                7
                
                -set statusbar-h-padding      7

              
                8
                
                -set statusbar-v-padding      7

              
                9
                
                -

              
                10
                
                -set inputbar-fg              "#FFFFFF"

              
                11
                
                -set inputbar-bg              "#1F2324"

              
                12
                
                -

              
                13
                
                -set completion-bg            "#262A2B"

              
                14
                
                -set completion-fg            "#FFFFFF"

              
                15
                
                -set completion-highlight-bg  "#262A2B"

              
                16
                
                -set completion-highlight-fg  "#51AFEF"

              
                17
                
                -set completion-group-bg      "#262A2B"

              
                18
                
                -set completion-group-fg      "#51AFEF"

              
M vscode/README.md
···
                1
                
                -# VScode

              
                
                1
                +# VSCode

              
                
                2
                +

              
                
                3
                +![VSCode screenhot](./screen.png)

              
                2
                4
                 

              
                3
                5
                 Install

              
                4
                6
                 ```bash

              
A vscode/screen.png

Not showing binary file.

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

              
                
                2
                +  "workbench.colorTheme": "GitHub Light",

              
                2
                3
                   "workbench.iconTheme": "material-icon-theme",

              
                3
                
                -  "workbench.colorTheme": "Visual Studio Dark",

              
                4
                4
                   "workbench.sideBar.location": "left",

              
                5
                
                -  "workbench.editor.untitled.hint": "hidden",

              
                6
                5
                   "workbench.startupEditor": "none",

              
                7
                
                -  "workbench.panel.defaultLocation": "bottom",

              
                8
                6
                   "workbench.activityBar.visible": false,

              
                9
                7
                   "window.menuBarVisibility": "toggle",

              
                10
                8
                   "update.showReleaseNotes": false,

              
                
                9
                +  // Font

              
                
                10
                +  "editor.fontSize": 16,

              
                
                11
                +  "terminal.integrated.fontSize": 15,

              
                11
                12
                   // Editor

              
                12
                
                -  // "editor.cursorSmoothCaretAnimation": true,

              
                13
                
                -  "editor.fontFamily": "'Jetbrains Mono', monospace",

              
                
                13
                +  "editor.fontFamily": "'Jetbrains Mono'",

              
                
                14
                +  "editor.cursorSmoothCaretAnimation": true,

              
                
                15
                +  "editor.smoothScrolling": true,

              
                14
                16
                   "editor.inlineSuggest.enabled": true,

              
                15
                17
                   "editor.hover.enabled": true,

              
                16
                18
                   "editor.minimap.enabled": false,

              
                17
                
                -  "editor.suggestSelection": "first",

              
                18
                
                -  "editor.smoothScrolling": true,

              
                19
                19
                   "editor.mouseWheelZoom": true,

              
                20
                
                -  "editor.formatOnPaste": false,

              
                21
                
                -  "editor.formatOnSave": true,

              
                22
                20
                   "editor.tabCompletion": "on",

              
                
                21
                +  "editor.formatOnSave": true,

              
                23
                22
                   "editor.wordWrap": "off",

              
                24
                
                -  "editor.fontSize": 14,

              
                25
                23
                   "editor.tabSize": 4,

              
                26
                24
                   // Files

              
                27
                25
                   "explorer.compactFolders": false,

              
                28
                26
                   "explorer.confirmDragAndDrop": false,

              
                29
                27
                   "explorer.confirmDelete": false,

              
                30
                
                -  "files.insertFinalNewline": false,

              
                31
                
                -  "files.trimFinalNewlines": false,

              
                32
                
                -  "files.trimTrailingWhitespace": false,

              
                
                28
                +  "files.trimTrailingWhitespace": true,

              
                33
                29
                   "files.exclude": {

              
                34
                30
                     "**/node_modules": true,

              
                35
                
                -    "**/env": true,

              
                36
                
                -    "**/.classpath": true,

              
                37
                
                -    "**/.project": true,

              
                38
                
                -    "**/.settings": true,

              
                39
                
                -    "**/.factorypath": true

              
                
                31
                +    "**/env": true

              
                40
                32
                   },

              
                41
                33
                   // Git

              
                42
                
                -  "gitlens.codeLens.enabled": true,

              
                43
                34
                   "git.autofetch": true,

              
                44
                35
                   "git.confirmSync": false,

              
                45
                36
                   "git.enableSmartCommit": true,

              
                46
                
                -  "terminal.integrated.tabs.enabled": false,

              
                47
                37
                   // Extensions

              
                48
                38
                   "extensions.ignoreRecommendations": true,

              
                49
                
                -  "docker.showStartPage": false,

              
                50
                
                -  "calva.myCljAliases": [

              
                51
                
                -    "nREPL",

              
                52
                
                -    "nrepl",

              
                53
                
                -    "test"

              
                54
                
                -  ],

              
                55
                
                -  "calva.paredit.defaultKeyMap": "strict",

              
                56
                
                -  // Golang

              
                57
                
                -  "go.toolsManagement.autoUpdate": true,

              
                58
                
                -  "go.lintOnSave": "package",

              
                59
                
                -  "go.lintTool": "golint",

              
                60
                
                -  "go.formatTool": "gofumpt",

              
                
                39
                +  "gitlens.codeLens.enabled": true,

              
                61
                40
                   // Languages

              
                62
                
                -  "javascript.suggestionActions.enabled": false,

              
                63
                
                -  "typescript.suggestionActions.enabled": false,

              
                
                41
                +  "[go]": {

              
                
                42
                +    "editor.insertSpaces": false,

              
                
                43
                +    "go.lintOnSave": "package",

              
                
                44
                +    "go.lintTool": "golint",

              
                
                45
                +    "go.formatTool": "gofumpt"

              
                
                46
                +  },

              
                
                47
                +  "[python]": {

              
                
                48
                +    "python.formatting.provider": "black",

              
                
                49
                +    "python.analysis.autoImportCompletions": true,

              
                
                50
                +    "python.formatting.blackPath": "~/.local/bin/black",

              
                
                51
                +    "editor.tabSize": 4,

              
                
                52
                +  },

              
                64
                53
                   "[javascript]": {

              
                65
                
                -    // "editor.defaultFormatter": "esbenp.prettier-vscode",

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

              
                
                55
                +    "javascript.suggestionActions.enabled": false,

              
                66
                56
                     "editor.tabSize": 2

              
                67
                57
                   },

              
                68
                58
                   "[typescript]": {

              
                69
                
                -    // "editor.defaultFormatter": "esbenp.prettier-vscode"

              
                70
                
                -  },

              
                71
                
                -  "typescript.inlayHints.parameterNames.enabled": "literals",

              
                72
                
                -  "typescript.inlayHints.variableTypes.enabled": true,

              
                73
                
                -  "javascript.inlayHints.functionLikeReturnTypes.enabled": true,

              
                74
                
                -  "window.zoomLevel": 1,

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

              
                
                60
                +    "typescript.suggestionActions.enabled": false,

              
                
                61
                +    "editor.tabSize": 2

              
                
                62
                +  }

              
                75
                63
                 }
              
M zshrc
···
                1
                
                -## StartShip

              
                2
                
                -# eval "$(starship init zsh)"

              
                3
                
                -

              
                4
                1
                 ## Variables

              
                5
                2
                 export GOPATH="$HOME/go"

              
                6
                3
                 export PATH="$HOME/bin:$HOME/.local/bin:$HOME/.golang/bin:$GOPATH/bin:$HOME/.yarn/bin:$HOME/.luarocks/bin:$HOME/.cargo/bin:$PATH"

              ···
                12
                9
                 DISABLE_AUTO_TITLE="true"

              
                13
                10
                 source "$HOME/.oh-my-zsh/oh-my-zsh.sh"

              
                14
                11
                 

              
                15
                
                -## FNM

              
                
                12
                +## Tools

              
                16
                13
                 eval $(fnm env)

              
                17
                
                -

              
                18
                
                -## Zoxide

              
                19
                
                -eval "$(zoxide init zsh)"

              
                20
                
                -

              
                21
                
                -## Functions

              
                22
                
                -dotnet() {

              
                23
                
                -  $HOME/dotnet/dotnet "$@"

              
                24
                
                -}

              
                
                14
                +eval $(zoxide init zsh)

              
                25
                15
                 

              
                26
                16
                 ## Aliases

              
                27
                
                -alias cls="clear" cp="cp -r" mkdir="mkdir -p" open="open_command" lg="lazygit"

              
                28
                
                -alias v="nvim" vim="v" m="make"

              
                
                17
                +alias cls="clear" cp="cp -r" mkdir="mkdir -p"

              
                
                18
                +alias gor="go run" gob="go build" gog="go get" goi="go install" got="go test" gov="go vet"

              
                29
                19
                 alias ...="cd ../.." .3="cd ../../.."

              
                30
                
                -alias gor="go run" gob="go build" gog="go get" goi="go install" got="go test"

              
                31
                
                -alias n="npm" asdfi=". /opt/asdf-vm/asdf.sh"

              
                
                20
                +alias v="nvim" vim="v" asdfi=". /opt/asdf-vm/asdf.sh"

              
                32
                21
                 

              
                33
                22
                 if [[ -f "/bin/exa" ]]; then

              
                34
                23
                    alias ls="exa -l" ll="ls" la="ls -a"