From: Don Armstrong Date: Fri, 17 Feb 2006 09:22:07 +0000 (+0000) Subject: * Completely move around the home directory system and begin X-Git-Url: https://git.donarmstrong.com/?p=misc.git;a=commitdiff_plain;h=4814a75a6bd99a96ec21a3d95cf3846c8e373102 * Completely move around the home directory system and begin transitioning to a module based system instead of the individual directories --- 4814a75a6bd99a96ec21a3d95cf3846c8e373102 diff --git a/.cplayrc b/.cplayrc new file mode 100644 index 0000000..72f6ce0 --- /dev/null +++ b/.cplayrc @@ -0,0 +1,11 @@ +PLAYERS = [ + FrameOffsetPlayer("ogg123 -a /dev/dsp1 -q -v -k %d %s", "\.ogg$"), + FrameOffsetPlayer("splay -f -k %d %s", "(^http://|\.mp[123]$)", 38.28), + FrameOffsetPlayer("mpg321 -a /dev/dsp1 -q -v -k %d %s", "(^http://|\.mp[123]$)", 38.28), + TimeOffsetPlayer("madplay -v --no-tty-control --display-time=remaining -s %d %s", "\.mp[123]$"), + NoOffsetPlayer("mikmod -q -p0 %s", "\.(mod|xm|fm|s3m|med|col|669|it|mtm)$"), + NoOffsetPlayer("xmp -q %s", "\.(mod|xm|fm|s3m|med|col|669|it|mtm|stm)$"), + NoOffsetPlayer("play %s", "\.(aiff|au|cdr|mp3|ogg|wav)$"), + NoOffsetPlayer("speexdec %s", "\.spx$") + ] + diff --git a/.ecasoundrc b/.ecasoundrc new file mode 100644 index 0000000..68c4d17 --- /dev/null +++ b/.ecasoundrc @@ -0,0 +1,26 @@ +midi-device = rawmidi,/dev/midi +default-output = /dev/dsp +default-buffersize = 1024 +default-samplerate = 44100 +default-to-interactive-mode = false +default-to-raisepriority = false +default-schedpriority = 50 +default-to-double-buffering = false +default-double-buffer-size = 100000 +default-to-precise-sample-rates = false +default-to-max-internal-buffering = true +resource-directory = /usr/share/ecasound +resource-file-genosc-envelopes = generic_oscillators +resource-file-effect-presets = effect_presets +user-resource-directory = /home/don/ecasound-config +ext-text-editor = pico +ext-text-editor-use-getenv = true +ext-wave-editor = ecawave +ext-mp3-input-cmd = mpg123 --stereo -r %s -b 0 -q -s -k %o %f +ext-mp3-output-cmd = lame -b 128 -x -S - %f +ext-ogg-input-cmd = ogg123 -d raw --file=%F %f +ext-ogg-output-cmd = oggenc -b 128 --raw --output=%f - +ext-mikmod-cmd = mikmod -d stdout -o 16s -q -f %s -p 0 --noloops %f +ext-timidity-cmd = timidity -Or1S -id -s %s -o - %f +internal-plugin-directory = /usr/lib/ecasound-plugins +ladspa-plugin-directory = /usr/lib/ladspa diff --git a/.gphoto/gphotorc b/.gphoto/gphotorc new file mode 100644 index 0000000..488a8b9 --- /dev/null +++ b/.gphoto/gphotorc @@ -0,0 +1,3 @@ +/dev/ttyS0 +Browse Directory + diff --git a/.gphoto/settings b/.gphoto/settings new file mode 100644 index 0000000..af4d820 --- /dev/null +++ b/.gphoto/settings @@ -0,0 +1,2 @@ +gphoto2=model=Canon Digital IXUS v3 (normal mode) +gphoto2=port=usb: diff --git a/.jack3rc b/.jack3rc new file mode 100644 index 0000000..2201dfd --- /dev/null +++ b/.jack3rc @@ -0,0 +1,3 @@ +# jackrc-version:31 +vbr_quality:10.0 +keep_wavs:yes diff --git a/.jackrc b/.jackrc new file mode 100644 index 0000000..c2c6513 --- /dev/null +++ b/.jackrc @@ -0,0 +1,184 @@ +# preferences for jack-2.99.9 +# remove this file to get a new one filled with the defaults. +# This file is parsed as python code, it's easy to break things. + +jackrc_version = "2.99.9" +jackrc_py_version = "2.2.2" + + +## edit these defaults: +ripper = "cdparanoia" # use which program to rip: cdparanoia, tosha, + # cdda2wav, dagrab (untested) +cd_device = "/dev/hdd" # use which device for ripping +gen_device = "/dev/hdd" # cdda2wav needs the scsi generic device + +encoder = "oggenc" # use which encoder (bladeenc, lame, gogo, l3enc, + # mp3enc, xing, oggenc) attention: this is a + # symbolic name which is defined later in this file + # (see helpers), NOT the executable's name + +bitrate = 160 # default bitrate +vbr = 1 # use variable bitrate for encoders which support it +vbr_quality = 10 # the vbr quality - 0 is worst, 10 is best + +# set up freedb (if needed): +freedb_server = "freedb" # your freedb server, see freedb_servers below +my_mail = "don+freedb@donarmstrong.com" # your e-mail address, needed for freedb submissions + +# if environ.has_key('http_proxy'): del environ['http_proxy'] + # uncomment above line if you don't want to use + # your default proxy for freedb queries + +# specify how the resulting files are named: +# %n: track number +# %a: artist +# %t: track title +# %l: album title +# %y: album release year - individual track years are unsupported +# %g: album genre - individual track genres are unsupported + +#rename_fmt = "%n.%t" # encoded files are renamed to +rename_fmt = "%a-%l-%n-%t"# "Artist - Album - 01 - Tracktitle.[ext]" +#rename_fmt_va = "%n.%a-%t" # ditto for Various Artists CDs +rename_fmt_va = "%l-%n-%a-%t" +rename_num = "%02i" # numbering format, used for %n above, e.g. + # %02i with leading '0': 01, 02, ... , 11, ... +rename_dir = 1 # rename directory as well: +append_year = "(%y)" # append the year (if given) to dir: " (1999)" +dir_template = "%a/%l" # if create_dirs is set and freedb data is + # available, files are put in + # base_dir + "//". + +# here is a new way to do conversion to lowercase, even with non-ascii charsets. +# Unfortunately, this needs python >= 2.2 and you have to specify the charset. +char_filter = "" # disabled by default +#char_filter = ".decode(charset).lower().encode(charset)" # uncomment to try +charset = "latin-1" # or "ascii", "utf-8", ... This is only the + # default. override with --charset + +unusable_chars = "/\r" # put chars which can't be used in filenames + # here and their +replacement_chars = ["%", ""] # replacements here. replacement_chars is + # stretched to match unusable_chars' length + # using the last char as fill + +# example 1: replace all " " by "_": +# unusable_chars = " " +# replacement_chars = "_" + +# example 2: replace umlauts by an alternate representation and kill some +# special characters: +# unusable_chars = "äöüÄÖÜß?*^()[]{}" +# replacement_chars = ["ae", "oe", "ue", "Ae", "Oe", "Ue", "ss", ""] + +# example 3: use only lowercase, " " --> "_": +# unusable_chars = " " + uppercase +# replacement_chars = "_" + lowercase +# Note: this does not include umlauts or other non-plain-ASCII characters +# because a) jack forces the locale to C and b) uppercase and lowercase +# are not symmetric, e.g. with the de_DE locale "Ä" would become "ã". +# Instead, add them explicitly: + "ÄÖÜ" / + "äöü" respectively. +# The "right" way is to use char_filter above but this needs python >= 2.2. + +# these influence the status screen while processing tracks +show_time = 1 # display track length instead of "track" +show_names = 1 # set this to 1 to display freedb track names instead + # "track_01", ... This will not fit in 80x24 term's + +# other stuff: +recurse_dirs = 2 # search how deep for workdir +#searchdirs = ["/opt/mp3", "."] # where to start when searching for workdir +searchdirs = [os.curdir] # the default is the current directory (".") + # if recurse_dirs > 0 +#base_dir = os.curdir # where to create the subdir(s) (".") +base_dir = environ['HOME'] + "/jack" + +update_interval = 1.0 # update status screen every ... seconds +max_load = 10 # only start new encoders when load < max_load + +# xtermset related stuff - when enabled, jack uses xtermset to resize your +# xterm so that you can see all tracks. +xtermset_enable = 0 # disable if you don't have xtermset installed +restore_xterm_width = 0 +default_width = 80 # your xterm's geometry +default_height = 24 # these are autodetected when using curses + +keep_free = 5*2**20 # suspend if less than keep_free bytes are free + # don't set this to zero as encoded file size prediction + # is always a bit below actual sizes => we might need + # some extra space. + +# more defaults, these can be changed from the command line: +encoders = 4 # encode how many files in parallel +otf = 0 # on-the-fly operation with supported helper apps +create_dirs = 1 # create (and name if applicable) subdir(s) +reorder = 0 # reorder tracks to save space while encoding +keep_wavs = 1 # keep encoded WAVs +only_dae = 0 # only rip, do not code, implies keep_wavs +read_ahead = 99 # number of tracks to read in advance +nice_value = 12 # what nice level (priority) encoders get +overwrite = 0 # overwrite existing files +remove_files = 0 # remove jack.* files when done +silent_mode = 0 # silent-mode means: no output to screen + +## Things to do when finished +exec_when_done = 0 # execute commands below when finished, default: no + # this is command line controllable +exec_rip_done = "eject " + cd_device # eject the CD when ripping is finished +exec_no_err = "play /usr/local/audio/allok.wav" # play sound when finished +exec_err = "play /usr/local/audio/error.wav" # this is played when an + # error occured + +freedb_dir = "" # change this to something like "/var/spool/cddb" and + # all queries will be done in this (local) directory; + # failed local queries will be done via network +freedb_pedantic = 0 # don't be pedantic when parsing freedb data, e.g. + # the ambigous (various artists) TTITLE + # "The Artist - Track a Title - Cool Remix" is split + # at the first possible separator. + +########################## end of normal options ############################## + +# you can add/modify all helper apps, here are some examples: +freedb_servers['freedb-user'] = { + 'host': "freedb.freedb.org", + 'id': prog_name + " " + prog_version, + 'mail': "freedb-submit@freedb.org", + 'my_mail': "default" +} + +helpers['lame-user'] = { + 'type': "encoder", + 'target': "mp3", + 'inverse-quality': 1, + 'cmd': "lame --alt-preset cbr %r %i %o", + 'vbr-cmd': "lame -h -v -V %q --nohist %i %o", + 'otf-cmd': "lame --alt-preset cbr %r - %o", + 'vbr-otf-cmd': "lame -h -v -V %q --nohist - %o", + +# from lame: -V n quality setting for VBR. default n=4 +# 0=high quality,bigger files. 9=smaller files + + 'status_blocksize': 160, + 'bitrate_factor': 1, + 'status_start': "%", + 'percent_fkt': """ +s = split(i['buf'], '\\015') +if len(s) >= 2: s=s[-2] +if len(s) == 1: s=s[0] +if find(s, "%") >= 0: # status reporting starts here + y = split(s, "/") + y1 = split(y[1], "(")[0] + percent = float(y[0]) / float(y1) * 100.0 +elif find(s, "Frame:") >= 0: # older versions, like 3.13 + y = split(s, "/") + y0 = split(y[0], "[")[-1] + y1 = split(y[1], "]")[0] + percent = float(y0) / float(y1) * 100.0 +else: + percent = 0 + +""" +} +#################### end of auto-generated .jackrc ############################ +