Browse Source

Move scripts into subdirectory

master
Maxim Likhachev 5 years ago
parent
commit
2ac0970118
  1. 8
      Makefile
  2. 134
      README.md
  3. 0
      scripts/a2mp3
  4. 0
      scripts/asroot
  5. 0
      scripts/axaudio
  6. 0
      scripts/bor
  7. 0
      scripts/calculator
  8. 0
      scripts/currency
  9. 0
      scripts/dada
  10. 0
      scripts/dates
  11. 0
      scripts/defgroups
  12. 0
      scripts/doctools2man
  13. 0
      scripts/dus
  14. 0
      scripts/ext
  15. 0
      scripts/fb2
  16. 0
      scripts/fcheck
  17. 0
      scripts/fix-eselect
  18. 0
      scripts/fontsel
  19. 0
      scripts/fsz
  20. 0
      scripts/fucheck
  21. 0
      scripts/git-aliases
  22. 0
      scripts/git-cblame
  23. 0
      scripts/git-forks
  24. 0
      scripts/git-graphviz
  25. 0
      scripts/git-ignore
  26. 0
      scripts/git-makeignore
  27. 0
      scripts/git-recent
  28. 0
      scripts/git-top
  29. 0
      scripts/gitea-mirror
  30. 0
      scripts/gitlab-ci-graph
  31. 0
      scripts/gitlab-ci-linter
  32. 0
      scripts/hidecursor
  33. 0
      scripts/how
  34. 0
      scripts/hr
  35. 0
      scripts/ibor
  36. 0
      scripts/img50
  37. 0
      scripts/imgRL
  38. 0
      scripts/imgRR
  39. 0
      scripts/imgview
  40. 0
      scripts/lsi
  41. 0
      scripts/lsimage
  42. 0
      scripts/lsimg
  43. 0
      scripts/mem
  44. 0
      scripts/mptk
  45. 0
      scripts/musca_status
  46. 0
      scripts/nt
  47. 0
      scripts/passgen
  48. 0
      scripts/photosort
  49. 0
      scripts/pk
  50. 0
      scripts/pomodoro
  51. 0
      scripts/poweroff-dialog
  52. 0
      scripts/radio
  53. 0
      scripts/renamepdfs
  54. 0
      scripts/retag
  55. 0
      scripts/robodoc2html
  56. 0
      scripts/spread
  57. 0
      scripts/sync-date
  58. 0
      scripts/th
  59. 0
      scripts/todolist
  60. 0
      scripts/tree2md
  61. 0
      scripts/use
  62. 0
      scripts/utable
  63. 0
      scripts/vandroucli
  64. 0
      scripts/vault-kv-tree
  65. 0
      scripts/vcat
  66. 0
      scripts/viper
  67. 0
      scripts/vls
  68. 0
      scripts/windows
  69. 0
      scripts/writeup
  70. 0
      scripts/www
  71. 0
      scripts/x-open
  72. 0
      scripts/xsmartlight
  73. 0
      scripts/xstab

8
Makefile

@ -1,3 +1,4 @@
localpath = scripts
path = ~/.shellrc/bin/scripts path = ~/.shellrc/bin/scripts
find := $(shell { command -v gfind || command -v find; } 2>&-) find := $(shell { command -v gfind || command -v find; } 2>&-)
@ -10,18 +11,17 @@ rmdir:
@rmdir $(path) 2>&-; : @rmdir $(path) 2>&-; :
install: mkdir install: mkdir
@$(find) . \ @$(find) $(localpath) \
-maxdepth 1 \ -maxdepth 1 \
-type f \ -type f \
-executable \ -executable \
-exec basename {} \; \
| while read -r line; do \ | while read -r line; do \
ln -s $$(realpath -- $$line) $(path)/$$line 2>&-; \ ln -sv $$(realpath -- $$line) $(path)/$$(basename $$line) 2>&-; \
done; \ done; \
true true
rmlinks: rmlinks:
@$(find) . \ @$(find) $(localpath) \
-maxdepth 1 \ -maxdepth 1 \
-type f \ -type f \
-executable \ -executable \

134
README.md

@ -19,101 +19,101 @@ will create the symbolic link for each script in the \<path> directory.
## Shell ## Shell
- [dus](dus) shows the directories' sizes sorted in descending order (see also [dust](https://github.com/bootandy/dust)). - [dus](scripts/dus) shows the directories' sizes sorted in descending order (see also [dust](https://github.com/bootandy/dust)).
- [ext](ext) unpacks archives. - [ext](scripts/ext) unpacks archives.
- [pk](pk) creates archives of various types. - [pk](scripts/pk) creates archives of various types.
- [fcheck](fcheck) marks a file as read. - [fcheck](scripts/fcheck) marks a file as read.
- [fucheck](fucheck) marks a file as unred. - [fucheck](scripts/fucheck) marks a file as unred.
- [fontsel](fontsel) shows the available console fonts. - [fontsel](scripts/fontsel) shows the available console fonts.
- [fsz](fsz) adjusts console font size. - [fsz](scripts/fsz) adjusts console font size.
- [hr](hr) displays horizontal rule with current time. - [hr](scripts/hr) displays horizontal rule with current time.
- [renamepdfs](renamepdfs) renames PDF files using their metadata. - [renamepdfs](scripts/renamepdfs) renames PDF files using their metadata.
- [vcat](vcat) displays file content with [syntax highlighting](https://www.gnu.org/software/src-highlite/) (see also [bat](https://github.com/sharkdp/bat)). - [vcat](scripts/vcat) displays file content with [syntax highlighting](https://www.gnu.org/software/src-highlite/) (see also [bat](https://github.com/sharkdp/bat)).
- [viper](viper) is a simple alternative to viper from [moreutils](https://joeyh.name/code/moreutils/) package which can be used with custom vim parameters. - [viper](scripts/viper) is a simple alternative to viper from [moreutils](https://joeyh.name/code/moreutils/) package which can be used with custom vim parameters.
## Audio ## Audio
- [a2mp3](a2mp3) converts wav audio files to mp3 format. - [a2mp3](scripts/a2mp3) converts wav audio files to mp3 format.
- [axaudio](axaudio) gets an information and audio stream from Axia Livewire network. - [axaudio](scripts/axaudio) gets an information and audio stream from Axia Livewire network.
- [mptk](mptk) allows to control mpd via mpc and store song's rating into id3v2 commentary tag. - [mptk](scripts/mptk) allows to control mpd via mpc and store song's rating into id3v2 commentary tag.
- [retag](retag) writes id3 tags based on file path. - [retag](scripts/retag) writes id3 tags based on file path.
- [radio](radio) plays the internet radio stations from a list stored in the file. - [radio](scripts/radio) plays the internet radio stations from a list stored in the file.
- [vls](vls) runs vlc-ncurses with increased speed. - [vls](scripts/vls) runs vlc-ncurses with increased speed.
## Texts ## Texts
- [dada](dada) creates random 'verse' from the text. - [dada](scripts/dada) creates random 'verse' from the text.
- [fb2](fb2) opens fb2 files in w3m browser. - [fb2](scripts/fb2) opens fb2 files in w3m browser.
- [nt](nt) displays New Testament texts in two languages line by line. - [nt](scripts/nt) displays New Testament texts in two languages line by line.
- [spread](spread) opens file in [speedread](https://github.com/pasky/speedread) program via terminal emulator with custom settings. - [spread](scripts/spread) opens file in [speedread](https://github.com/pasky/speedread) program via terminal emulator with custom settings.
- [tree2md](tree2md) creates markdown list and links of directory tree. - [tree2md](scripts/tree2md) creates markdown list and links of directory tree.
- [writeup](writeup) opens distracted-free Vim editor with custom color scheme, fonts and plug-ins. - [writeup](scripts/writeup) opens distracted-free Vim editor with custom color scheme, fonts and plug-ins.
## Images ## Images
- [img50](img50) resizes an image by half. - [img50](scripts/img50) resizes an image by half.
- [imgRL](imgRL) rotates an image to the left. - [imgRL](scripts/imgRL) rotates an image to the left.
- [imgRR](imgRR) rotates an image to the right. - [imgRR](scripts/imgRR) rotates an image to the right.
- [imgview](imgview), [lsi](lsi), [lsimage](lsimage) and [lsimg](lsimg) display images in a terminal emulator. - [imgview](scripts/imgview), [lsi](scripts/lsi), [lsimage](scripts/lsimage) and [lsimg](scripts/lsimg) display images in a terminal emulator.
- [photosort](photosort) renames the image files by exif data. - [photosort](scripts/photosort) renames the image files by exif data.
- [th](th) makes an image thumbnail. - [th](scripts/th) makes an image thumbnail.
## Notes ## Notes
- [dates](dates) + conky or similar software remind of upcoming events (birthdays, etc.). - [dates](scripts/dates) + conky or similar software remind of upcoming events (birthdays, etc.).
- [mem](mem) stores the shorts notes in the file. - [mem](scripts/mem) stores the shorts notes in the file.
- [pomodoro](pomodoro) tracks the working time. - [pomodoro](scripts/pomodoro) tracks the working time.
## WWW ## WWW
- [bor](bor) displays the latest posts from [bash.im](https://bash.im) website. - [bor](scripts/bor) displays the latest posts from [bash.im](https://bash.im) website.
- [ibor](ibor) displays the latest posts from [ibash.im](https://ibash.im) website. - [ibor](scripts/ibor) displays the latest posts from [ibash.im](https://ibash.im) website.
- [vandroucli](vandroucli) retrieves the newest posts from the vandrouki websites ([ru](https://vandrouki.ru), [by](https://vandrouki.by), [asia](https://vandrouki.asia)). - [vandroucli](scripts/vandroucli) retrieves the newest posts from the vandrouki websites ([ru](https://vandrouki.ru), [by](https://vandrouki.by), [asia](https://vandrouki.asia)).
## System ## System
- [defgroups](defgroups) adds a user to default system groups. - [defgroups](scripts/defgroups) adds a user to default system groups.
- [passgen](passgen) creates the strong passwords. - [passgen](scripts/passgen) creates the strong passwords.
- [sync-date](sync-date) sets system time according to Google. - [sync-date](scripts/sync-date) sets system time according to Google.
- [xsmartlight](xsmartlight) allows to adjust ASUS smartscreen's brightness. - [xsmartlight](scripts/xsmartlight) allows to adjust ASUS smartscreen's brightness.
- [use](use) shows Gentoo USE flag's description. - [use](scripts/use) shows Gentoo USE flag's description.
## Development tools ## Development tools
- [doctools2man](doctools2man) converts doctool to man pages. - [doctools2man](scripts/doctools2man) converts doctool to man pages.
- [gitea-mirror](gitea-mirror) mirrors Gitea repositories. - [gitea-mirror](scripts/gitea-mirror) mirrors Gitea repositories.
- [gitlab-ci-graph](gitlab-ci-graph) draws a graph of the GitLab CI Pipeline file. - [gitlab-ci-graph](scripts/gitlab-ci-graph) draws a graph of the GitLab CI Pipeline file.
- [gitlab-ci-linter](gitlab-ci-linter) checks Gitlab CI Pipeline syntax via GitLab API. - [gitlab-ci-linter](scripts/gitlab-ci-linter) checks Gitlab CI Pipeline syntax via GitLab API.
- [how](how) shows dev cheat sheets using [cheat.sh](https://cheat.sh). - [how](scripts/how) shows dev cheat sheets using [cheat.sh](https://cheat.sh).
- [robodoc2html](robodoc2html) converts a documentation in the robodoc format into html. - [robodoc2html](scripts/robodoc2html) converts a documentation in the robodoc format into html.
- [todolist](todolist) shows all `TODO` notes in current git repository. - [todolist](scripts/todolist) shows all `TODO` notes in current git repository.
- [vault-kv-tree](vault-kv-tree) shows all HashiCorp Vault's paths and keys recursively. - [vault-kv-tree](scripts/vault-kv-tree) shows all HashiCorp Vault's paths and keys recursively.
- [utable](utable) shows a Unicode table. - [utable](scripts/utable) shows a Unicode table.
### Git ### Git
- [git-aliases](git-aliases) shows a commented list of all git aliases. - [git-aliases](scripts/git-aliases) shows a commented list of all git aliases.
- [git-cblame](git-cblame) adds a syntax highlighting to the standard `git blame` command. - [git-cblame](scripts/git-cblame) adds a syntax highlighting to the standard `git blame` command.
- [git-forks](git-forks) shows the latest forks of github repository. - [git-forks](scripts/git-forks) shows the latest forks of github repository.
- [git-graphviz](git-graphviz) creates dot-graph of a git repository. - [git-graphviz](scripts/git-graphviz) creates dot-graph of a git repository.
- [git-ignore](git-ignore) gets specified gitignore settings from [https://gitignore.io/](https://gitignore.io/) website. - [git-ignore](scripts/git-ignore) gets specified gitignore settings from [https://gitignore.io/](https://gitignore.io/) website.
- [git-makeignore](git-makeignore) stores files with '+GITIGNORE' marks into .gitignore file. - [git-makeignore](scripts/git-makeignore) stores files with '+GITIGNORE' marks into .gitignore file.
- [git-recent](git-recent) lists all local branches, sorted by last commit. (c) https://github.com/paulirish/git-recent - [git-recent](scripts/git-recent) lists all local branches, sorted by last commit. (c) https://github.com/paulirish/git-recent
- [git-top](git-top) shows the most edited files in current git repository. - [git-top](scripts/git-top) shows the most edited files in current git repository.
## WM ## WM
- [calculator](calculator) computes mathematical expressions with variables and intermediate values. - [calculator](scripts/calculator) computes mathematical expressions with variables and intermediate values.
- [fix-eselect](fix-eselect) adjusts 'type' command in gentoo's eselect scripts. - [fix-eselect](scripts/fix-eselect) adjusts 'type' command in gentoo's eselect scripts.
- [hidecursor](hidecursor) moves cursor to upper right screen angle. - [hidecursor](scripts/hidecursor) moves cursor to upper right screen angle.
- [musca_status](musca_status) shows a list of all musca's workspaces. - [musca_status](scripts/musca_status) shows a list of all musca's workspaces.
- [poweroff-dialog](poweroff-dialog) and [asroot](asroot) provide a menu with 'shutdown', 'reboot' and 'suspend' commands. - [poweroff-dialog](scripts/poweroff-dialog) and [asroot](scripts/asroot) provide a menu with 'shutdown', 'reboot' and 'suspend' commands.
- [windows](windows) shows a list of the all opened windows. - [windows](scripts/windows) shows a list of the all opened windows.
- [www](www) opens rofi menu with the most used www-links. - [www](scripts/www) opens rofi menu with the most used www-links.
- [x-open](x-open) opens files via xdg-open (on Linux systems) or via open command (on MacOS). - [x-open](scripts/x-open) opens files via xdg-open (on Linux systems) or via open command (on MacOS).
- [xstab](xstab) runs [st](https://st.suckless.org/) terminal with the [tabbed](https://tools.suckless.org/tabbed/). - [xstab](scripts/xstab) runs [st](https://st.suckless.org/) terminal with the [tabbed](https://tools.suckless.org/tabbed/).
## Other ## Other
- [currency](currency) shows the currency rate. - [currency](scripts/currency) shows the currency rate.

0
a2mp3 → scripts/a2mp3

0
asroot → scripts/asroot

0
axaudio → scripts/axaudio

0
bor → scripts/bor

0
calculator → scripts/calculator

0
currency → scripts/currency

0
dada → scripts/dada

0
dates → scripts/dates

0
defgroups → scripts/defgroups

0
doctools2man → scripts/doctools2man

0
dus → scripts/dus

0
ext → scripts/ext

0
fb2 → scripts/fb2

0
fcheck → scripts/fcheck

0
fix-eselect → scripts/fix-eselect

0
fontsel → scripts/fontsel

0
fsz → scripts/fsz

0
fucheck → scripts/fucheck

0
git-aliases → scripts/git-aliases

0
git-cblame → scripts/git-cblame

0
git-forks → scripts/git-forks

0
git-graphviz → scripts/git-graphviz

0
git-ignore → scripts/git-ignore

0
git-makeignore → scripts/git-makeignore

0
git-recent → scripts/git-recent

0
git-top → scripts/git-top

0
gitea-mirror → scripts/gitea-mirror

0
gitlab-ci-graph → scripts/gitlab-ci-graph

0
gitlab-ci-linter → scripts/gitlab-ci-linter

0
hidecursor → scripts/hidecursor

0
how → scripts/how

0
hr → scripts/hr

0
ibor → scripts/ibor

0
img50 → scripts/img50

0
imgRL → scripts/imgRL

0
imgRR → scripts/imgRR

0
imgview → scripts/imgview

0
lsi → scripts/lsi

0
lsimage → scripts/lsimage

0
lsimg → scripts/lsimg

0
mem → scripts/mem

0
mptk → scripts/mptk

0
musca_status → scripts/musca_status

0
nt → scripts/nt

0
passgen → scripts/passgen

0
photosort → scripts/photosort

0
pk → scripts/pk

0
pomodoro → scripts/pomodoro

0
poweroff-dialog → scripts/poweroff-dialog

0
radio → scripts/radio

0
renamepdfs → scripts/renamepdfs

0
retag → scripts/retag

0
robodoc2html → scripts/robodoc2html

0
spread → scripts/spread

0
sync-date → scripts/sync-date

0
th → scripts/th

0
todolist → scripts/todolist

0
tree2md → scripts/tree2md

0
use → scripts/use

0
utable → scripts/utable

0
vandroucli → scripts/vandroucli

0
vault-kv-tree → scripts/vault-kv-tree

0
vcat → scripts/vcat

0
viper → scripts/viper

0
vls → scripts/vls

0
windows → scripts/windows

0
writeup → scripts/writeup

0
www → scripts/www

0
x-open → scripts/x-open

0
xsmartlight → scripts/xsmartlight

0
xstab → scripts/xstab

Loading…
Cancel
Save