scripts moved to ~/.local/bin

This commit is contained in:
Luke Smith 2019-05-18 00:07:32 -04:00
parent 18e001db07
commit 54920103c2
78 changed files with 13 additions and 13 deletions

View file

@ -6,5 +6,5 @@ m ~/Music
pp ~/Pictures
vv ~/Videos
cf ~/.config
sc ~/.scripts
sc ~/.local/bin
mn /mnt

View file

@ -1,4 +1,4 @@
command=~/.scripts/statusbar/$BLOCK_NAME
command=~/.local/bin/statusbar/$BLOCK_NAME
separator_block_width=15
markup=pango

View file

@ -1,11 +1,11 @@
# Directory of Scripts
I keep all my user-created scripts here in `~/.scripts/`. Scripts are sorted
I keep all my user-created scripts here in `~/.local/bin/`. Scripts are sorted
into sub-directories for easy management, and all are seamlessly added to
`$PATH` with the command below in `~/.profile`:
```
export PATH="$(du $HOME/.scripts/ | cut -f2 | tr '\n' ':')$PATH"
export PATH="$(du $HOME/.local/bin/ | cut -f2 | tr '\n' ':')$PATH"
```
## `statusbar/`

View file

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View file

@ -1,6 +1,6 @@
#!/bin/sh
case $BLOCK_BUTTON in
1) groff -mom ~/.readme.mom -Tpdf | zathura - ;;
1) groff -mom ~/.local/share/larbs/readme.mom -Tpdf | zathura - ;;
2) i3 restart ;;
3) pgrep -x dunst >/dev/null && notify-send "❓ Help module" "\- Left click to open LARBS guide.
- Middle click to refresh i3.";;

View file

@ -70,7 +70,7 @@ but you can also hold it down and it will act as another Windows/super/mod key.
The menu button (usually between the right Alt and Ctrl) is an alternative Super/Mod button.
This is to make one-handing on laptops easier.
.LIST OFF
If you'd like to change any of these keyboard changes, you need only open and change \f(CW~/.scripts/tools/remaps\fP.
If you'd like to change any of these keyboard changes, you need only open and change \f(CW~/.local/bin/tools/remaps\fP.
Actually, this should go without saying, but \fIeverything\fP here can easily be changed.
.PP
Additionally, while this isn't a part of i3, the default editing mode in the shell is using vi bindings.
@ -91,8 +91,8 @@ If you just want black and white icons, you should actually just be able to unin
.PP
The i3blocks config is \f(CW~/.config/i3blocks/config\fP, which you can access by the
terminal shortcut \f(CWcfB\fP. Notice that the config file refers to several module
scripts in the \f(CW~/.scripts/\fP directory. You can read a summary of all of these
scripts in the file \f(CW~/.scripts/SCRIPTS.md\fP.
scripts in the \f(CW~/.local/bin/\fP directory. You can read a summary of all of these
scripts in the file \f(CW~/.local/bin/SCRIPTS.md\fP.
.HEADING 2 "Deeper Tutorials"
.PP
In addition to this guide and reading the dotfiles of programs manually, you
@ -338,7 +338,7 @@ Note that it is your responsibility to ensure that none of the bindings you add
.HEADING 1 "Frequently Asked Questions (FAQs)"
.HEADING 2 "My keyboard isn't working as expected!"
.PP
LARBS runs some custom keyboard settings in \f(CW~/.scripts/tools/remaps\fP.
LARBS runs some custom keyboard settings in \f(CW~/.local/bin/tools/remaps\fP.
These settings may override your preferred settings, so you should open this file and comment out troublesome lines if you have issues.
.HEADING 2 "My audio isn't working!"
.PP

View file

@ -2,7 +2,7 @@
# Profile file. Runs on login.
# Adds `~/.scripts` and all subdirectories to $PATH
export PATH="$PATH:$(du "$HOME/.scripts/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
export EDITOR="nvim"
export TERMINAL="st"
export BROWSER="firefox"
@ -10,7 +10,7 @@ export READER="zathura"
export FILE="vifm"
export BIB="$HOME/Documents/LaTeX/uni.bib"
export REFER="$HOME/Documents/referbib"
export SUDO_ASKPASS="$HOME/.scripts/tools/dmenupass"
export SUDO_ASKPASS="$HOME/.local/bin/tools/dmenupass"
export NOTMUCH_CONFIG="$HOME/.config/notmuch-config"
export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0"
@ -32,4 +32,4 @@ echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "$HOME/.bashrc
[ "$(tty)" = "/dev/tty1" ] && ! pgrep -x i3 >/dev/null && exec startx
# Switch escape and caps if tty:
sudo -n loadkeys ~/.scripts/ttymaps.kmap 2>/dev/null
sudo -n loadkeys ~/.local/bin/ttymaps.kmap 2>/dev/null

View file

@ -13,7 +13,7 @@ These are my dotfiles! The name of the repo, "voidrice", came from the fact they
+ calcurse
+ ncmpcpp and mpd (my main music player)
+ mpv
+ And many little scripts I use filed in the `~/.scripts/` directory
+ And many little scripts I use filed in the `~/.local/bin/` directory
## More documentation