Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Sector11

#721
Scripts / Relegated /lost/bin
January 14, 2013, 05:57:52 PM
This come from "johnraff" over on #!.  I use cbs (the original) and ubs (UBU, sit Ubu, sit) as well.

And while this forum is very young it does work.

It will get better as Google's bots roam around.  ( See, I use Google   :lol: )

vos = VsidO Search - I have it in my path (~/bin) and a simple search:

sector11 @ sector11
13 Jan 13 | 00:26:01 ~
         $ vos Debian
sector11 @ sector11
13 Jan 13 | 00:26:10 ~
         $

gave me:



#!/bin/bash
# search the VSIDO forums
# by johnraff

USAGE='USAGE:
search words  - search the forum with several words, other google stuff like OR also OK.
"search phrase" - search for fixed phrase
-t topic word - search for topic in title, word anywhere
-t "topic phrase" word - search for "topic phrase" in title, word anywhere
-t topic -t subject - search for topic AND subject in title
-h or --help - this message
etc...'

unset q
while [[ $1 ]]
do
    case $1 in
        -t)
        shift
        if [[ $(echo $1 | wc -w) -eq 1 ]]
        then
            q="$q intitle:$1"
        else
            q="$q intitle:\"$1\""
        fi
        ;;

        -h|--help)
        echo "$USAGE"
        exit 0
        ;;

        *)
        if [[ $(echo $1 | wc -w) -eq 1 ]]
        then
            q="$q $1"
        else
            q="$q \"$1\""
        fi
        ;;
    esac
    shift
done

iceweasel "http://www.google.com/search?q=site:http://vsido.org/forum/ $q"

exit 0

#722
Conky / Conky Support, Codes and Screenshots
January 14, 2013, 05:56:31 PM
I do this in the form of a "screenshot thread" as well.
... 
Three new VSIDO installs:
  • /dev/sda1 = M-1 - will remain "stock"
  • /dev/sda8 = M-8 - my play land
  • /dev/sda10 = M-10 - will be my working system when M-8 is right
    The conky on the left comes to you because of mrpeachy's hard work with LUA.
    # To use #! in a conky use: ${exec echo '#!'}
    # ${font DS\-Digital:bold:size=24}
    # OS: ${pre_exec lsb_release -d | cut -c14-50}
    # killall conky && conky -c /media/5/Conky/Chronograph_mrpeachy.conky &
    # Thank you - mrpeachy

    ###  Begin Window Settings  ##################################################
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,skip_taskbar,skip_pager
    #own_window_colour gray
    own_window_class Conky
    own_window_title Chronograph mrpeachy

    # Use the Xdbe extension? (eliminates flicker)
    # It is highly recommended to use own window with this one
    # so double buffer won't be so big.
    double_buffer yes

    ### ARGB can be used for real transparency
    ### NOTE that a composite manager is required for real transparency.
    ### This option will not work as desired (in most cases) in conjunction with
    ### own_window_type normal
    own_window_argb_visual no # Options: yes or no

    ### When ARGB visuals are enabled, this use this to modify the alpha value
    ### Use: own_window_type normal
    ### Use: own_window_transparent no
    ### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
    # own_window_argb_value 0

    minimum_size 340 700  ##420 420   ## width, height
    maximum_width 340     ##420       ## width

    gap_x 10 ### left &right
    gap_y 10 ### up & down

    alignment tl #ml
    ####################################################  End Window Settings  ###
    ###  Font Settings  ##########################################################
    # Use Xft (anti-aliased font and stuff)
    use_xft yes
    xftfont Monofur:bold:size=9
    #xftfont CorporateMonoExtraBold:size=9
    #xftfont White Rabbit:size=9

    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 5x7
    #font 6x10
    #font 7x13
    #font 8x13
    #font 9x15
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

    # Alpha of Xft font. Must be a value at or between 1 and 0 ###
    xftalpha 1
    # Force UTF8? requires XFT ###
    override_utf8_locale yes

    uppercase no
    ######################################################  End Font Settings  ###
    ###  Color Settings  #########################################################
    draw_shades no
    default_shade_color black

    draw_outline no # amplifies text if yes
    default_outline_color black

    default_color DCDCDC #220 220 220 Gainsboro ## CCAA7A # chronograph-mrpeachy
    color0 8FBC8F #143 188 143 DarkSeaGreen
    color1 778899 #119 136 153 LightSlateGray
    color2 FF8C00 #255 140   0 DarkOrange
    color3 7FFF00 #127 255   0 Chartreuse
    color4 FFA07A #255 160 122 LightSalmon
    color5 FFDEAD #255 222 173 NavajoWhite
    color6 00BFFF #  0 191 255 DeepSkyBlue
    color7 00FFFF #  0 255 255 Cyan
    color8 FFFF00 #255 255   0 Yellow
    color9 B22222 #178  34  34 FireBrick
    #####################################################  End Color Settings  ###
    ###  Borders Section  ########################################################
    draw_borders no
    # Stippled borders?
    stippled_borders 0
    # border margins
    border_inner_margin 5
    border_outer_margin 0
    # border width
    border_width 0
    # graph borders
    draw_graph_borders yes #no
    #default_graph_size 15 40
    #####################################################  End Borders Secton  ###
    ###  Miscellaneous Section  ##################################################
    # Boolean value, if true, Conky will be forked to background when started.
    background yes

    # Adds spaces around certain objects to stop them from moving other things
    # around, this only helps if you are using a mono font
    # Options: right, left or none
    use_spacer none

    # Default and Minimum size is 256 - needs more for single commands that
    # "call" a lot of text IE: bash scripts
    text_buffer_size 256

    # Subtract (file system) buffers from used memory?
    no_buffers yes

    # change GiB to G and MiB to M
    short_units yes

    # Like it says, ot pads the decimals on % values
    # doesn't seem to work since v1.7.1
    pad_percents 2

    #   Maximum size of user text buffer, i.e. layout below TEXT line in config file
    #  (default is 16384 bytes)
    # max_user_text 16384

    # Desired output unit of all objects displaying a temperature. Parameters are
    # either "fahrenheit" or "celsius". The default unit is degree Celsius.
    # temperature_unit Fahrenheit

    ##############################################  End Miscellaneous Section  ###
    ###  LUA Settings  ###########################################################
    ## Above and After TEXT - requires a composite manager or blinks.
    ##
    # lua_load /media/5/Conky/LUA/draw-bg.lua
    #TEXT
    # ${lua conky_draw_bg 125 0 0 0 0 0x000000 0.3}
    #
    ## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
    ##
    ## OR Both above TEXT (No composite manager required - no blinking!)
    #
    #--------------------------------
    lua_load /media/5/Conky/LUA/draw-bg.lua
    #lua_draw_hook_pre draw_bg 20 0 0 0 0 0x000000 0.5
    #lua_draw_hook_post draw_bg 20 0 0 0 0 0x000000 0.5
    #
    # TEXT
    # ${lua conky_draw_bg 20 0 0 0 0 0x000000 0.3}
    ##
    #
    ################### chronograph-mrpeachy #######################################
    #lua_load /media/5/Conky/LUA/chronograph-mrpeachy.lua
    lua_load /media/5/Conky/LUA/chronograph-mrpeachy_24.lua
    lua_draw_hook_post main
    #lua_draw_hook_pre main

    ### v9000 Weather ############################################################
    lua_load ~/v9000/v9000.lua
    lua_draw_hook_pre weather
    #lua_draw_hook_post weather
    lua_load /media/5/Conky/LUA/crono_mrp.template.lua
    ############################################################ v9000 Weather ###
    ### mount.lua ################################################################
    lua_load /media/5/Conky/LUA/mounted.lua
    ### mount.lua ### INSTRUCTIONS ##############################################
    #load script
    #lua_load ~/path_to/mounted.lua
    # first lua command below text:
    # ${lua get_mounted_data interval}, where interval is a number.  This starts data gathering
    # to get output:
    # ${lua mount partition_number data_type}, where partition number is a number
    # data_type can be
    # total - shows total number of partitions mounted, requires a partition_number
    #       - - also, use 1, could be used in an if_match
    # fsys - shows filesystem
    # size - shows space used in appropriate units
    # free - shows free space in appropriate units
    # use% - shows % used
    # mount - shows mountpoint


    # ${color6}${lua mount 7 fsys 9}${goto 100}${color8}${lua mount 7 size}${goto 150}${color7}${lua mount 7 free}${goto 200}${color1}${lua mount 7 use%}${goto 260}${color}${lua mount 7 mount}
    # ${color6}${lua mount 8 fsys 9}${goto 100}${color8}${lua mount 8 size}${goto 150}${color7}${lua mount 8 free}${goto 200}${color1}${lua mount 8 use%}${goto 260}${color}${lua mount 8 mount}

    ################################################################ mount.lua ###
    #######################################################  End LUA Settings  ###
    # The all important - How often conky refreshes.
    # If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
    update_interval 1
    # ${lua conky_draw_bg 20 0 0 0 0 0x000000 0.5}
    TEXT
    ${lua get_mounted_data 3}${lua conky_draw_bg 20 0 0 0 0 0x000000 0.5}












































    ${color1}${cpubar cpu4 1,340}${color}
    ${color3}Hosted by: ${color}${nodename}${goto 160}${color3}for the past: ${color}${uptime_short}
    ${alignc}${color3}Kernel: ${color}${kernel}
    ${alignc}${color3}CPU Usage ${color7}1: ${color}${if_match ${cpu cpu1} < 10}  ${cpu cpu1}\
    ${else}${if_match ${cpu cpu1} < 100} ${cpu cpu1}\
    ${else}${cpu cpu1}\
    ${endif}${endif} %\
    ${color7}2: ${color}${if_match ${cpu cpu2} < 10}  ${cpu cpu2}\
    ${else}${if_match ${cpu cpu2} < 100} ${cpu cpu2}\
    ${else}${cpu cpu2}\
    ${endif}${endif} %\
    ${color7}3: ${color}${if_match ${cpu cpu3} < 10}  ${cpu cpu3}\
    ${else}${if_match ${cpu cpu3} < 100} ${cpu cpu3}\
    ${else}${cpu cpu3}\
    ${endif}${endif} %\
    ${color7}Avg: ${color}${if_match ${cpu cpu0} < 10}  ${cpu cpu0}\
    ${else}${if_match ${cpu cpu0} < 100} ${cpu cpu0}\
    ${else}${cpu cpu0}\
    ${endif}${