Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
-rme
gcode-gnuplot
h-photos
qiv-command
readme.md
screenshot.sh
shide
video-pic.sh
video.sh
win-cycle.sh
win-of-name.sh

readme.md

Bunch of stuff in by ~/.bin directory

I have added to PWD=$PWD:~/.bin/ to ~/.bashrc. Some of these are attached to key bindings. How to set those depends on your windowing system.

I put all these scripts into the public domain.

win-of-name.sh

Uses wmctrl and ps to figure out which windows belong to a program or comma-separated list of programs. For instance:

win-of-name.sh firefox,epiphany,netsurf,opera,liferea

Will get all the entries from wmctrl -l -p relevant to those.

wmctrl -i -a `win-of-name.sh firefox` #To open the first one.

win-cycle.sh

Also takes a comma-separated list of program names, but cycles through the windows. If none of the programs in the list has a window, attempts to run the first element of the (coma-separated)list.

#Cycle or otherwise start firefox.
win-cycle.sh firefox,epiphany,netsurf,opera,liferea

Alternatively it can specify a name for the set of options, and specify a more specific command to run.

Mod4 z :Exec win-cycle.sh editors emacs,openscad,gimp "emacs -mm&"

What i use of those two:

Basically i have the following bound into ~/.fluxbox/keys. Presumably the lists will lengthen a bit.

Mod4 c :Exec win-cycle.sh gnome-terminal
Mod4 v :Exec win-cycle.sh claws-mail
Mod4 x :Exec win-cycle.sh gmpc,totem
Mod4 s :Exec win-cycle.sh reader evince, 'echo' #Dont want readers without any file.

shide

Strips metadata with mat, and uses steghide to hide random data in it and toss it away. This is done in order to prevent frequency analysis when using images to send messages.(In case they can detect that data is hidden in images)

screenshot.sh

Immediately takes a screenshot, meant to be used as key binding.

The first argument can be nothing, then zenity is used to ask for a name, or date, then the date is used for name, or it can be the name itself.

Puts the screenshots in ~/pics/screens/.

video.sh

Starts using /dev/video0 to record into ~/pics/from-cam/.

video-pic.sh

Runs mplayer in order make pictures.(you have to trigger it) Puts it in ~/pics/from-cam/.

I suppose i should want to immediately take a picture.

Otherwise

Some convenience stuff not worth mentioning here.

Something went wrong with that request. Please try again.