diff options
author | Shubham Saini <shubham6405@gmail.com> | 2020-02-22 07:36:44 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2020-02-22 07:36:44 +0000 |
commit | 97f6733073c33ea80d086586dc0aa40da9f43b1d (patch) | |
tree | 843b59d3cff4884644cff6265cbec6256161a24e | |
parent | 5b9d18dc38ddec3fc7d49bec93ff1042e0f77241 (diff) |
...
-rwxr-xr-x | bin/.local/bin/dotstow | 21 | ||||
-rwxr-xr-x | bin/.local/bin/fetch | 64 | ||||
-rwxr-xr-x | bin/.local/bin/gitit | 10 | ||||
-rwxr-xr-x | bin/.local/bin/lock | 6 | ||||
-rwxr-xr-x | bin/.local/bin/prime-run | 2 | ||||
-rwxr-xr-x | bin/.local/bin/unblock | 10 | ||||
-rw-r--r-- | nvim/.config/nvim/.netrwhist | 3 | ||||
m--------- | nvim/.config/nvim/plugged/vim-airline | 0 | ||||
-rw-r--r-- | zsh/.zshrc | 2 |
9 files changed, 4 insertions, 114 deletions
diff --git a/bin/.local/bin/dotstow b/bin/.local/bin/dotstow deleted file mode 100755 index bcadc5e..0000000 --- a/bin/.local/bin/dotstow +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # This script will Stow all the dotfiles located in the ~/dotfiles folder. | ||
4 | # The -R flag is used to force a 'restow' which will remove any existing symlinks before attempting to Stow. | ||
5 | |||
6 | echo "Stowing Dotfiles..."; | ||
7 | |||
8 | cd ~/dotfiles | ||
9 | for file in ~/dotfiles/*; do | ||
10 | # Only run Stow on the directories in the dotfiles folder and not the individual files. | ||
11 | # Using 'basename' strips the filepath from the directory name. | ||
12 | if [ -d ${file} ]; then | ||
13 | stow -R $(basename $file) | ||
14 | echo "$(basename $file) stowed."; | ||
15 | fi | ||
16 | done | ||
17 | |||
18 | # Return back to the your PWD from before you ran the script | ||
19 | cd ~- | ||
20 | |||
21 | echo 'All stowed'; | ||
diff --git a/bin/.local/bin/fetch b/bin/.local/bin/fetch deleted file mode 100755 index a82b673..0000000 --- a/bin/.local/bin/fetch +++ /dev/null | |||
@@ -1,64 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # ufetch-arch - tiny system info for arch | ||
4 | |||
5 | ## INFO | ||
6 | |||
7 | # user is already defined | ||
8 | host="$(hostname)" | ||
9 | os='Arch Linux' | ||
10 | kernel="$(uname -sr)" | ||
11 | uptime="$(uptime -p | sed 's/up //')" | ||
12 | packages="$(pacman -Q | wc -l)" | ||
13 | shell="$(basename ${SHELL})" | ||
14 | |||
15 | if [ -z "${WM}" ]; then | ||
16 | if [ "${XDG_CURRENT_DESKTOP}" ]; then | ||
17 | envtype='DE' | ||
18 | WM="${XDG_CURRENT_DESKTOP}" | ||
19 | elif [ "${DESKTOP_SESSION}" ]; then | ||
20 | envtype='DE' | ||
21 | WM="${DESKTOP_SESSION}" | ||
22 | else | ||
23 | envtype='WM' | ||
24 | WM="$(tail -n 1 "${HOME}/.xinitrc" | cut -d ' ' -f 2)" | ||
25 | fi | ||
26 | else | ||
27 | envtype='WM' | ||
28 | fi | ||
29 | |||
30 | ## DEFINE COLORS | ||
31 | |||
32 | # probably don't change these | ||
33 | bold="$(tput bold)" | ||
34 | black="$(tput setaf 0)" | ||
35 | red="$(tput setaf 1)" | ||
36 | green="$(tput setaf 2)" | ||
37 | yellow="$(tput setaf 3)" | ||
38 | blue="$(tput setaf 4)" | ||
39 | magenta="$(tput setaf 5)" | ||
40 | cyan="$(tput setaf 6)" | ||
41 | white="$(tput setaf 7)" | ||
42 | reset="$(tput sgr0)" | ||
43 | |||
44 | # you can change these | ||
45 | lc="${reset}${bold}${cyan}" # labels | ||
46 | nc="${reset}${bold}${cyan}" # user and hostname | ||
47 | ic="${reset}${bold}${white}" # info | ||
48 | c0="${reset}${bold}${cyan}" # first color | ||
49 | c1="${reset}${cyan}" # second color | ||
50 | |||
51 | ## OUTPUT | ||
52 | |||
53 | cat <<EOF | ||
54 | |||
55 | ${c0} /\ ${nc}${USER}${ic}@${nc}${host}${reset} | ||
56 | ${c0} /^^\ ${lc}OS: ${ic}${os}${reset} | ||
57 | ${c0} /\ \ ${lc}KERNEL: ${ic}${kernel}${reset} | ||
58 | ${c0} / ${c1}__ \ ${lc}UPTIME: ${ic}${uptime}${reset} | ||
59 | ${c1} / ( ) \ ${lc}PACKAGES: ${ic}${packages}${reset} | ||
60 | ${c1} / __| |__\\\\ ${lc}SHELL: ${ic}${shell}${reset} | ||
61 | ${c1} /// \\\\\ ${lc}${envtype}: ${ic}${WM}${reset} | ||
62 | |||
63 | EOF | ||
64 | |||
diff --git a/bin/.local/bin/gitit b/bin/.local/bin/gitit deleted file mode 100755 index af3eeec..0000000 --- a/bin/.local/bin/gitit +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | set -e | ||
3 | printf "\033[0;32mDeploying updates to GitHub...\033[0m\n" | ||
4 | git add . | ||
5 | msg="changes" | ||
6 | if [ -n "$*" ]; then | ||
7 | msg="$*" | ||
8 | fi | ||
9 | git commit -m "$msg" | ||
10 | git push origin master | ||
diff --git a/bin/.local/bin/lock b/bin/.local/bin/lock deleted file mode 100755 index d7dc632..0000000 --- a/bin/.local/bin/lock +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | scrot /tmp/screen.png | ||
3 | convert /tmp/screen.png -scale 10% -scale 1000% /tmp/screen.png | ||
4 | [[ -f $1 ]] && convert /tmp/screen.png $1 -gravity center -composite -matte /tmp/screen.png | ||
5 | i3lock -u -i /tmp/screen.png | ||
6 | rm /tmp/screen.png | ||
diff --git a/bin/.local/bin/prime-run b/bin/.local/bin/prime-run deleted file mode 100755 index ee073fa..0000000 --- a/bin/.local/bin/prime-run +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only "$@" | ||
diff --git a/bin/.local/bin/unblock b/bin/.local/bin/unblock deleted file mode 100755 index 172ddb5..0000000 --- a/bin/.local/bin/unblock +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | #whitelist escape | ||
3 | set -e | ||
4 | printf "\033[0;35mSetting wlo1 down....\033[0m\n" | ||
5 | sudo ip link set wlo1 down | ||
6 | printf "\033[0;36mChanging MAC address....\033[0m\n" | ||
7 | #sudo macchanger --mac=B0:10:41:18:66:6F wlo1 | ||
8 | sudo macchanger -a wlo1 | ||
9 | printf "\033[0;32mEnjoy....\033[0m\n" | ||
10 | |||
diff --git a/nvim/.config/nvim/.netrwhist b/nvim/.config/nvim/.netrwhist new file mode 100644 index 0000000..9608351 --- /dev/null +++ b/nvim/.config/nvim/.netrwhist | |||
@@ -0,0 +1,3 @@ | |||
1 | let g:netrw_dirhistmax =10 | ||
2 | let g:netrw_dirhistcnt =1 | ||
3 | let g:netrw_dirhist_1='/home/ssaini/.local' | ||
diff --git a/nvim/.config/nvim/plugged/vim-airline b/nvim/.config/nvim/plugged/vim-airline | |||
Subproject 7e00ee1107d0ed24ac09af51e576ea7d85e114a | Subproject 0b2683464877c1e39d0c67427c7fdc4bc6697d1 | ||
@@ -6,7 +6,7 @@ export ZSH="/home/ssaini/.oh-my-zsh" | |||
6 | export VISUAL=nvim | 6 | export VISUAL=nvim |
7 | export EDITOR="$VISUAL" | 7 | export EDITOR="$VISUAL" |
8 | export BROWSER=firefox | 8 | export BROWSER=firefox |
9 | export PATH=$PATH:$HOME/.local/bin | 9 | export PATH=$PATH:$HOME/bin |
10 | export XDG_CURRENT_DESKTOP=bspwm | 10 | export XDG_CURRENT_DESKTOP=bspwm |
11 | 11 | ||
12 | # Set name of the theme to load --- if set to "random", it will | 12 | # Set name of the theme to load --- if set to "random", it will |