Bash/Python Scripts


Quick links:

Simple Dump
ViCp
MakeSwitch
Gedit Navigator Plugin
ImageMagick Utilities
Xfce4 Composite Editor
Xfce4-Theme-Manager



SimpleDump
A simple menu driven front end to the standard linux "dump/restore" programs.




Vicp (Visual copy)
I do a lot of video work so as you can imagine the files can be very big, the standard cp -v command doesn't really give a lot of extra info so I knocked up this script to show a dialog box with file copy progress and overall progress so I can see whats going on with the cp command, all normal cp switches are passed to the cp command ( which is run in the background so this script doesn't slow it up too much ) there is also an extra three switch's "-X" which will not display a dialog box but give command line output, -N which will set a nice level of 15 and an ionice level of 7 and --simulate which just prints out what would have been copied, just replace "cp" with "vicp" and you're good to go ( presuming you have named this script "vicp", made it executable and placed it somewhere in your path ).

terminal image



Makeswitch
A script to create the various case statements to set variables from the command line and optionally insert them into a file, switches can be created from the commands to the makeswitch script or via a config file, see the man page and example files for full details simple help is:
makeswitch -?

Usage: makeswitch [OPTION]... [FORMAT]...
-b|--binary : Binary states 'ON/OFF'
-s|--string : String initial state
-i|--init : Initialize variable
-n|--no-init : Don't initialize variable
-c|--config : Use config file f
-a|--app-name : Set the application name
-v|--version : Set the application version
-x|--xtra-help : Add 'args' to 'help' option

FORMAT = n:nnn:vartype:info ...
Where n:nnn = short:long-opt
vartype = [b|s|n] [binary, string or null]
info string for help


Config file example:
APPNAME appname
VERSION 0.1.0
OUTPUTFILE EncodeVideo/encodevideo.startup
Initialize following variables
INIT
Don't initialize following variables
NOINIT
BINSTATES Yes/No
STRINIT "Initial string value"
SWITCH  f:file:s:"Encode file FILE"
SWITCH k:keep:b:"Save sorted original comics"
Paste into front of file FILE (upto ###CUT###)
PASTE FILE
Version 0.2.1




Gedit Navigator Plugin

This is a plug-in for gedit that adds three new menus for navigating source code files and adding bookmarks, see the README file in the archive for full details on useage and installation. Requires some flavour of ctags and of course gedit, below are a number of screenshots of it in action:

Definitions in a 'C 'file:
plugin c
                  file

Definitions in a 'Bash' file:

Bookmark:

Open an 'Include' file:




ImageMagickUtilities


I use Imagemagick quite a lot for various graphics work and I use the colorize and modulate  a LOT when doing a theme or icons, the main problem with a command line app ( no matter how good ) is that you have no visual feedback until you convert the whole image, hence these three scripts ( the start of many! ) they can be installed and run from the command line or used as a nautilus script by placing them in ~/.gnome2/nautilus-scripts, select an image in nautilus and then select either colourize, modulate  brightness from the scripts menu, you can also run any of the other apps from the first so you can colorize and then modulate then adjust the contrast of the image, the dialogs are fairly simple but there is a README file in the archive, you should try to avoid a 1:1 preview as it's quite slow, however when linking the apps and converting the final image you should set the preview of the apps to 1:1.

Colourize:



Modulate:



Brightness:



Download ImageMagickDialogs



Xfce4-Composite-Editor

I wrote this simple GUI to control the various Xfce4 WM tweaks that are not available via the "Window Manager Tweaks" control panel.
These settings are available via the xconf settings editor but that is one of the most awkward GUI's I  have ever used as you have to select the xfwm4 channel, expand the tree, scroll to the option you want, select it, click edit, change the setting and click save, then the tree gets collapsed and you have to start again!
So this nice simple GUI to control the composite manager, the settings are self explanatory, some are 'live' and change the behavior of the WM immediately some need a WM restart.

DEPENDENCIES:
Bash
gtkdialog version 0.8.x

INSTALL:
Installation is too simple for automation just copy the files where they need to go.
The archive contains a launcher that should be placed either in "/usr/local/share/applications" or "~/.local/share/applications", the script should be placed in your path somewhere ie "/usr/local/bin" you may need to set the executable bit.




Download Xfce4-Composite-Editor



Xfce-Theme-Manager

Having switched to Xfce from gnome one of the main annoyances I have found is having two separate settings GUI's for setting the theme, one for the window border and one for the controls/icons and neither include  thumbnails!
As I like to switch themes and mix and match this soon became VERY irritating hence this BASH script and helper program, as you can see from the screenshots only one GUI is used to set all the bits of a theme, the "Themes" tab contains themes that have an integrated window border/control theme ( and if there is a gnome-like theme.index file that specifies an icon set this will be used as well ), everything is fairly self explanatory  just click on a thumbnail to set a particular theme/window border/control/icon set.
Full installation/usage is in the README file in the archive, this is very much beta software and there are a number of improvements/additions to come.

Meta theme tab:



Window border tab:



Controls tab:



Icons tab:



Cursors tab:



Wallpapers:



Advanced:



Download Xfce-Theme-Manager-0.0.5
Download Xfce-Theme-Manager-0.0.6
Download Xfce-Theme-Manager-0.0.7
Download Xfce-Theme-Manager-0.0.8
For Version > 0.1.x Goto Here



MD5 Hash file

The below need re-vamping
Change Desktop

Task Control

Download Video From YouTube


Home