voidrice/.scripts/SCRIPTS.md

232 lines
6.2 KiB
Markdown
Raw Normal View History

2018-07-18 23:13:10 +00:00
# Directory of Scripts
## `audio`
2018-08-02 14:57:56 +00:00
2018-07-18 23:13:10 +00:00
The audio recording script run by `dmenurecord` (bound to `mod+Print`).
## `bottomleft`
2018-08-02 14:57:56 +00:00
Makes the currently selected window float in the bottom left of screen. Bound
to `mod+B`.
2018-07-18 23:13:10 +00:00
## `camtoggle`
2018-08-02 14:57:56 +00:00
2018-07-18 23:13:10 +00:00
Starts/kills /dev/video0 webcam. Placed in bottom right by default.
## `compiler`
2018-08-02 14:57:56 +00:00
2018-07-18 23:13:10 +00:00
Compiles a markdown, R markdown or LaTeX document with the approriate command.
2018-08-02 14:57:56 +00:00
Will also run `make && sudo make install` if in a `config.h` file. Otherwise
it will create a sent presentation. This can be thought of a general output
handler. I have it bound to `<leader>c` in vim.
2018-07-18 23:13:10 +00:00
## `crontog`
2018-08-02 14:57:56 +00:00
2018-07-18 23:13:10 +00:00
Turns off/on all user cronjobs.
## `displayselect`
2018-08-02 14:57:56 +00:00
2018-07-18 23:13:10 +00:00
Select which displays to use. Bound to `mod+F3`.
## `dmenuhandler`
2018-08-02 14:57:56 +00:00
Give this script a url and it will offer dmenu options for opening it. Used by
`newsboat` and some other programs as a link handler.
2018-07-18 23:13:10 +00:00
## `dmenumount`
2018-08-02 14:57:56 +00:00
Detect available partitions with `lsblk` and offer to mount them. Bound to
`mod+F9`. Will do nothing if none are available.
2018-07-18 23:13:10 +00:00
## `dmenurecord`
2018-08-02 14:57:56 +00:00
Gives a list of recording commands: `audio`, `video` and `screencast` (both) in
dmenu for selection.
2018-07-18 23:13:10 +00:00
## `dmenuumount`
2018-08-02 14:57:56 +00:00
Unmount a mounted non-essential partition. Bound to `mod+F10`. Will do nothing
if none are mounted.
2018-07-18 23:13:10 +00:00
## `dropdowncalc`
2018-08-02 14:57:56 +00:00
The command initially run in the `math` window (toggeable with `mod+a`). Runs
`r` if available, else `python`.
2018-07-18 23:13:10 +00:00
## `extract`
2018-08-02 14:57:56 +00:00
2018-07-18 23:13:10 +00:00
Will detect file type of archive and run appropriate extraction command.
## `getbib`
2018-08-02 14:57:56 +00:00
Use crossref.org to automatically detect bibtex entry of a .pdf. Attempts to
search for the .pdf's DOI. Returns nothing if none detected.
2018-07-18 23:13:10 +00:00
## `getkeys`
2018-08-02 14:57:56 +00:00
2018-07-18 23:13:10 +00:00
Get the LARBS documentation on what bindings exist for main programs.
## `i3battery`
2018-08-02 14:57:56 +00:00
i3blocks module. Shows available power remaining with icon indicating battery
status. Colors indicate different levels of charge.
2018-07-18 23:13:10 +00:00
## `i3mail`
2018-08-02 14:57:56 +00:00
i3blocks module for use with mutt-wizard. Shows unread mail and if
`mailsync.sh` is running.
2018-07-18 23:13:10 +00:00
## `i3mpd`
2018-08-02 14:57:56 +00:00
2018-07-18 23:13:10 +00:00
i3blocks module. Shows current song; if paused, name will be grayed and italic.
## `i3mpdupdate`
2018-08-02 14:57:56 +00:00
2018-07-18 23:13:10 +00:00
A daemon running by default that will update the i3mpd block on mpd change.
## `i3pacman`
2018-08-02 14:57:56 +00:00
i3blocks module. Detects new installable upgrades. Only works if you use
cronjobs to automatically sync repositories.
2018-07-18 23:13:10 +00:00
## `i3resize`
2018-08-02 14:57:56 +00:00
2018-07-18 23:13:10 +00:00
A script that allows intuitive resizing of windows. Mapped to `mod+Y/U/I/O`.
## `i3torrent`
2018-08-02 14:57:56 +00:00
i3blocks module. Shows torrents idle (⌛️), downloading (⬇️) or
finished (🌱).
2018-07-18 23:13:10 +00:00
## `i3volume`
2018-08-02 14:57:56 +00:00
2018-07-18 23:13:10 +00:00
i3blocks module. Shows volume percentage or mute notification.
## `i3weather`
2018-08-02 14:57:56 +00:00
i3blocks module. Gets weather forcast from wttr.in and returns today's
precipitation chance (☔), daily low (❄️) and daily high (☀️).
## `i3wifi`
A modified version of the i3blocks wifi module. Clicked, it brings up wifi-menu
and also appears when there is no wifi connection.
2018-07-18 23:13:10 +00:00
2018-07-29 18:04:49 +00:00
## `kb-lights.py`
2018-08-02 14:57:56 +00:00
2018-07-29 18:04:49 +00:00
A Python 3 script which will increase or decrease keyboard lights when given
either a `+` or `-` argument.
2018-07-18 23:13:10 +00:00
## `killrecording`
2018-08-02 14:57:56 +00:00
2018-07-18 23:13:10 +00:00
End a recording started by `dmenurecord` the proper way.
## `linkhandler`
2018-08-02 14:57:56 +00:00
The automatic link handler used by `newsboat` and other programs. Urls of video
sites or of video files are opened in `mpv`, images are downloaded/opened in
`feh`, music files are downloaded with `wget` and all other urls are opened in
the default browser.
2018-07-18 23:13:10 +00:00
## `lmc`
2018-08-02 14:57:56 +00:00
A music controller that simplifies music/audio management and improves the
interface with i3blocks. Check inside to see what it does. This is what i3
audio/music commands run by default. If you use a difference music system or
ALSA, you can change this script rather than changing all the shortcuts in
different places.
2018-07-18 23:13:10 +00:00
2018-07-29 18:04:49 +00:00
## `lockscreen`
2018-08-02 14:57:56 +00:00
2018-07-29 18:04:49 +00:00
The screen locker. Gives a confirm prompt and if user says yes, all audio will
2018-08-02 14:57:56 +00:00
be paused and the screen will be distorted and locked and screen will soon time
out. User must insert password to unlock.
2018-07-29 18:04:49 +00:00
2018-07-18 23:13:10 +00:00
## `musstuff`
2018-08-02 14:57:56 +00:00
2018-07-18 23:13:10 +00:00
Some old notes and commands on deleted music shortcuts.
2018-09-04 18:48:40 +00:00
## `note`
Give this script some text/a message as an argument. It will print it to the
terminal, and if `dunst` is running, display a notification.
## `opout`
2018-08-02 14:57:56 +00:00
"Open output", opens the corresponding `.pdf` file if run on a `.md`, `.tex` or
2018-08-02 14:57:56 +00:00
`.rmd` file, or if given an `.html` file, will open it in the browser. Bound
to `<leader>p` in my vim config to reveal typical output.
2018-07-29 18:04:49 +00:00
## `pauseallmpv`
2018-08-02 14:57:56 +00:00
2018-07-29 18:04:49 +00:00
Pauses all mpv instances by sending the `,` key to each. Used by several
scripts, but can be used alone as well.
2018-07-18 23:13:10 +00:00
## `polybar_launch`
2018-08-02 14:57:56 +00:00
For `polybar` users. Launches `polybar` on every screen. Should be run in the
i3 config.
2018-07-18 23:13:10 +00:00
2018-07-29 18:04:49 +00:00
## `popweather`
2018-08-02 14:57:56 +00:00
2018-07-29 18:04:49 +00:00
The script called by clicking on the i3 weather module. Brings up the forecast
from `http://wttr.in` and waits for input to prevent immediate closing of
spawned window.
2018-07-18 23:13:10 +00:00
## `prompt`
2018-08-02 14:57:56 +00:00
Gives a Yes/No prompt to a question given as an argument. Used by numerous
bindings like `mod+shift+x`, `mod+shift+backspace` and `mod+shift+escape`.
2018-07-18 23:13:10 +00:00
## `remaps`
2018-08-02 14:57:56 +00:00
Remaps capslock to escape when pressed and super/mod when held. Maps the menu
key to super as well. Runs the US international keyboard setup. If you want
another keyboard setup, edit this fine.
2018-07-18 23:13:10 +00:00
## `samedir`
2018-08-02 14:57:56 +00:00
Opens a terminal window in the same directory as the window currently
selection. Bound to `mod+shift+enter`.
2018-07-18 23:13:10 +00:00
## `screencast`
2018-08-02 14:57:56 +00:00
2018-07-18 23:13:10 +00:00
A script for `dmenurecord`. Records default audio and the screen.
2018-08-02 14:57:56 +00:00
## `shortcuts.sh`
For updating bash and ranger shortcuts. Reads `~/.scripts/folders` and
`~/.scripts/configs` for pairs of keypresses and directories and configfiles,
then autoproduces bash aliases and ranger shortcuts for them. See the
`README.md` at
[https://github.com/LukeSmithxyz/shortcu-sync](https://github.com/LukeSmithxyz/shortcu-sync)
for the specifics.
2018-07-18 23:13:10 +00:00
## `texclear`
2018-08-02 14:57:56 +00:00
Remove all `.tex` related build files. This is run by my vim when I stop
editing any `.tex` file.
2018-07-18 23:13:10 +00:00
## `tmuxinit`
2018-08-02 14:57:56 +00:00
The startup script for the dropdown terminal (toggleable with `mod+u`). Either
attaches to an existing tmux session or begins a new one.
2018-07-18 23:13:10 +00:00
2018-07-29 18:04:49 +00:00
## `toggletouchpad`
2018-08-02 14:57:56 +00:00
2018-07-29 18:04:49 +00:00
As the name suggests, turns off TouchPad if on, and turns it on if off.
Requires `xf86-input-synaptics`.
2018-07-18 23:13:10 +00:00
## `tpb`
2018-08-02 14:57:56 +00:00
2018-07-18 23:13:10 +00:00
Search Pirate Bay for the certain search terms given as arguments.
## `tutorialvids`
2018-08-02 14:57:56 +00:00
A dmenu prompt that gives some options of tutorial videos to watch. Bound to
`mod+shift+e`.
2018-07-18 23:13:10 +00:00
## `video`
2018-08-02 14:57:56 +00:00
2018-07-18 23:13:10 +00:00
A script for `dmenurecord`. Records the screen with no audio.