I thought along with my dotfiles I should start keeping track of a bunch of random useful little scripts. Each script comes with a description, a list of dependencies (if any), and an example.
This script runs inotify that calls elsint on a file when it changes.
- eslint
- inotify-tools
eslint-notify somefile.js
This script takes a screenshot of the current DE/WM, blurs it, and sets it as the i3lock background
- i3lock
- ImageMagick
- scrot
i3lock-blur
This is a set of shell functions to easily manage a simple text to-do list. It contains simple tasks like adding items, printing the list, searching for keywords, removing items (both dropping and moving to the ~/.done.txt file for recording).
- vim
todo top get to the choppa
- Put a new task (get to the choppa) at the top of the list
todo drop some task
- Removes "some task" task from the list
todo done some task
- Moves "some task" task to the done list with the timestamp prepended
todo edit
- Edit the list
todo list
or simply todo
- Print the list
todo srch groceries
- Search for something
This script can be launched inside a git project, and when files change therein, it runs git status
to get the new status and changes.
- git
- inotify-tools
git-notify
This script will disable one display (arg 1) if another is connected (arg 2).
- xrandr
- a working X system
disable-display eDP HDMI-0
- disable eDP display if HDMI-0 is connected
This script allows for RDP connections to a MS Windows box, which can be executed via rofi or a similar tool. You must configure pass
to allow for password retrieval, and configure the script with your Windows ip and username (and any other FreeRDP settings).
- freerdp
- pass
win-rdp
- connects to the RDP host. it may require input for the pass
password.