Creating a custom icon script help

I have a small screen, so sometimes menus and such are not fully usable as they are bigger than my screen. I use this command to make an artificially bigger screen:
xrandr --fb 1280x750 --output LVDS1 --scale 1.25x1.25
After I do thing I needed, I switch back to the normal resolution by running a complementary script.
Since I only need this once in a while, I was hoping to create a button on my panel which I could click to switch to this resolution and then click again to go back to my original resolution. The function would follow the same concept as the fusion-icon which lets you switch between compiz and metacity.
I can create an icon that will perform the command above, and one that will make the resolution normal again:
xrandr --fb 1024x600 --output LVDS1 --scale 1.00x1.00
Can anyone guide me in how to make a single button that will perform both?
Thanks!

I guess this won't work then, seeing as no one knew how to do it?

Similar Messages

  • Transaction ICON == creating an custom icon

    Hi,
       I want to create a CUSTOM ICON
    In the Transaction ICON => new entries
    how do i create a new icon
    what values do i have to enter for the parameter ID
    and others.
    Thanks and Regards
    AK

    HI
    GOOD
    GO THROUGH THESE LINKS .
    http://www.sapdesignguild.org/resources/icon_cookbook/icon_cookbook.pdf
    http://www.sapdesignguild.org/resources/icon_cookbook/style.html
    THANKS
    MRUTYUNJAYA TRIPATHY

  • How to automatically create the custom migration scripts after recreating SSMA project?

    How to automatically create the custom data migration scripts after recreating SSMA project?
    There is number of tables ( big tables with BLOBS)  which I want to set up automatically to be migrated with custom migration scripts (replacing e.g. attribute named "FILE" with "TO_BLOB('') AS FILE" ).
    So the question is how to open MB file (I think that it should be standard db of some destktop RDBMS) ? 

    Hi Roman.Pokrovskij,
    According
    to your description, we can use SSMA tool to migrate data from one database (including Access, Oracle and so on) to SQL Server via GUI or the scripts. There is an example about migrating Access database to SQL Server via the
    custom migration scripts, you can review refer to them.
    <?xml version="1.0" encoding="utf-8"?>
    <ssma-script-file xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Microsoft SQL Server Migration Assistant for Access\Schemas\A2SSConsoleScriptSchema.xsd">
    <config>
    <output-providers>
    <output-window suppress-messages="false"
    destination="stdout"/>
    <upgrade-project action="yes"/>
    <data-migration-connection source-use-last-used="true"
    target-server="target_1"/>
    <progress-reporting enable="false"
    report-messages="false"
    report-progress="off"/>
    <object-overwrite action="skip" />
    </output-providers>
    </config>
    <servers>
    <!-- Server definition for Sql server target server-->
    <sql-server name="target_1">
    <sql-server-authentication>
    <server value="$SQLServerName$"/>
    <database value="$SQLServerDb$"/>
    <user-id value="$SQLServerUsrID$"/>
    <password value="$SQLServerPassword$"/>
    <encrypt value="true"/>
    <trust-server-certificate value="true"/>
    </sql-server-authentication>
    </sql-server>
    </servers>
    <script-commands>
    <create-new-project project-folder="$project_folder$ "
    project-name="$project_name$"
    overwrite-if-exists="true"/>
    <connect-target-database server="target_1"/>
    <load-access-database database-file="$AccessDbFolder$\$AccessDatabaseFile$"/>---
    <!--Schema Mapping-->
    <map-schema source-schema="$AccessDatabase$" sql-server-schema="$SQLServerDb$.dbo" />
    <!-- Convert schema -->
    <!-- Example: Convert entire Schema (with all attributes)-->
    <convert-schema object-name="$AccessDatabase$"
    object-type="Databases"
    conversion-report-overwrite="true"
    verbose="true"
    report-errors="true" />
    <!-- Synchronize target -->
    <!-- Example: Synchronize target entire Database with all attributes-->
    <synchronize-target object-name="$SQLServerDb$.dbo"
    on-error="fail-script" />
    <!-- Data Migration-->
    <!--Example: Data Migration of all tables in the schema (with all attributes)-->
    <migrate-data object-name="$AccessDatabase$.Tables"
    object-type="category"
    report-errors="true"
    verbose="true"/>
    </script-commands>
    </ssma-script-file>
    There is a similar scripts about migrating Oracle database to SQL Server, you can use powershell script to automatically run the console for scripts/variable files, saved in the specified folder. For more information, review the following
    article.
    http://blogs.msdn.com/b/ssma/archive/2010/09/09/performing-database-migration-assessment-using-ssma-console-application.aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Create a Custom Icon to Replace the Standard URL Icon in Dock

    I would like to change the "springy thing"/URL icon in my dock to a custom picture showing the logo for the webpage for that particular "springy thing." Is it possible to change the spring to a custom icon? If so, how can I do this? Your help is greatly appreciated! Thanks.
    iBook G4   Mac OS X (10.4.8)  

    Generic urls dragged directly to the "Dock" will use that default icon (or whatever icon is substituted), but every url will use that same icon.
    If the goal is to have separate urls in the "Dock", each with its own custom icon, try dragging a url to the "Desktop" first, which should result in the creation of a ".webloc" file. The file can be given a custom icon the usual way via "Get Info", and added to the "Dock", but note that this requires that the ".webloc" file be stored somewhere for that "Dock" shortcut to remain valid.

  • Creating a custom smart playlist *HELP*

    Having a very difficult time creating a customized smart playlist and looking for help.
    I would like to create on using the following criteria:
    Songs from two different genres
    Plays greater than 8
    Seems simple enough but I get either zero results, plays greater than 8 from all genres, or music from all genres
    What am I doing wrong?

    Akeel,
    I think the rules shown below will do what you want.
    To be included, a song has to have more than 8 plays and be in one of the two stated genres.

  • Custom Calculation Script Help Needed

    I need to make a script that Sums a column of fields based on whether or not information found in another column of fields is the same or specific text. Please see below screenshot of what I would like it to do.
    I would like a Sum of all Amounts that have the Code A...

    You can use this script as the custom calculation script of "SumOfA":
    var total = 0;
    for (var i=0; i<=2; i++) {
        if (this.getField("p1TC."+i).value=="Code A")
            total+=Number(this.getField("p1RecIn."+i).value);
    event.value = total;
    You can easily adjust it for the other field as well.

  • How do I create a custom calculation script in a Adobe Acrobat XI form?

    I am building a time sheet.  Inside this time sheet i have two columns.  One column is labeled Hours and the other is labeled Hours Description.
    The fields are labeled under these columns as follows:
    Column Name      Hours          Hours Description
    Field Name          Hours1        HoursDesc1
    The user will input their hours in Numeric Field "Hours1" and will enter an abbreviation in Text Field "HoursDesc1", for example "A" for Administrative Leave or "C" for Compensatory.
    I want to build a script that if Text Field "HoursDesc1" equals "A" or "C" then display Numeric Field "Hours1", else equal 0.  If they enter anything other than "A" or "C", the result will be zero.
    Please help.
    Thank you.

    Custom calculation code for the text field in question:
    var desc = this.getField("HoursDesc1").value;
    if (desc=="A" || desc=="C")
         event.value = this.getField("Hours1").value;
    else event.value = 0;

  • How to create a custom icon - resizable button

    Hello there,
    i need help about how to change a JButton's icon and make it fit the size of the button.
    Some sample code is very appreciated.
    Thanks

    To change the icon: yourButton.setIcon(yourIcon); // from AbstractButton class The icon itself is fixed in size. If you want to stretch or tile the image to fill the component, you could get the dimesions of the button to fill and then generate the Image data (using a BufferedImage ?) and use that as the icon. Or, you could probably override the paint method of the JButton by creating your own class that extends JButton. I'm sure that there are other ways of doing this.

  • Custom Calculation Script Help

    I am in need of the correct calculation script in order to complete:
    I am making an evaluation form. This form contains several columns that indicate a point system. Column 1 = 1 point, Column 2 = 2 points, etc.
    I need to be able to have a user mark an "X" in each form field and have the value predetermined depending on which column they marked the "X" in. Example: They mark an "X" in one of the form fields in Column 2, that form field should then have a value of 2 and be inputted into the Sub Total form field. Then I will need all of the values totaled and added into each Sub Total field for each column. Can someone please provide the calculation script to enable this to happen?

    Have you tried to use the pre-set calculation for "Field is the Sum of the following fields:"?
    But you cannot use that calculation option if you want to multiply the result by a weighting factor.
    So if you had used check boxes, you could assign the weighting factor for the export value of the check box. Then you could use the "Field is the Sum of the following fields:" and get the desired value. And then one can use the "Field is the Sum of the following fields'" for the total. The pre-defined script ignores non-numeric values for the unchecked fields.
    Not using this approach means one has to check each text field for a value of "X" and then count them and multiply by the weighting value or summing the weighting value for each "X".
    Scripting like programing requires very detailed information about the objects and how to process them.

  • Mystery of the Disappearing Custom Icons

    iMac 2.66; 10.6.4
    I create simple custom icon labels for the docs & folders in my dock. I type a filename in TextEdit, take a screenshot of it, open the screenshot in GraphicConverter, and copy & paste it into the getinfo window of the doc or folder. Then I drag it to the dock. Now and then, with no pattern or seeming cause, the custom icons on one or more disappear. Some never disappear. Sometimes it'll be weeks with no problem, sometimes hours. I repair permissions twice a week without fail. I have no other issues going on. Anyone know why this is happening? I've searched the fora but can't find similar problems.

    jimbo66
    I tried helping another with a similar problem. He eventually found a solution from another post. http://discussions.apple.com/message.jspa?messageID=4499196#4499196
    Powerbook G4, MacBook Pro, Mac G5, Mac G4, Mac Mini   Mac OS X (10.4.8)  

  • Custom icon at application tool bar in transaction CJ20N

    Hi,
    Experts my requirement is to create a custom Icon in the Application tool bar of CJ20n transaction
    kindly suggest me  any user exit or badi   or enhancement spot for this to implement .
    i have tried menu exit CNEX0009 but it ill create entry  at the menu item,
    there are other exits CNEX0006    but is not showing any thing
    i need to create icon at the application tool bar.
    i have found a enhancement spot but it say it can implemented by SAP only kindly  let me know how  implement it
    any help in this regard will appreciated....

    i think in this is case u have to make use of user exits.
    Regards
    Prabhu

  • Is it worth it to make custom icons for a custom control/indicator?

    I was making custom icons (well not very custom, but still at least somet ext) for controls and indicators, when I realized that the only times you see them are when you open the control, itself, ot if you hover over it in the project with context help on.
    So the question is:
    Is it worth it to create a custom icon for each custom control you make, if it will be seen only rarely?  (The exception being a cluster, since, in the later versions of LabVIEW, you can actually represent your cluster on the BD as the icon you made for it, so it definitely IS worth it to make an icon for it.)
    Thanks!
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
    Solved!
    Go to Solution.

    Hooovahh wrote:
    I'd like to add another time that you see the control's icon, is when it is a type def cluster, and you have it as a constant on the block diagram.  Then double click the border to shrink the cluster.  It will shrink to the size of the control's icon.
    I also hardly ever make a control icon.  Only when it is on the palette in a reuse package.
    Yeah,t hat's what I meant in my original post, although you CAN represent a cluster constant on the BD as an icon - but it's just the little thing on the bottom of the typdef'd cluster because it obviously has no actual icon. 
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • How to avoid custom action script link executing for all pages. It should execute for only custom list

    Hello all,
    The below code creates the custom action script link. however this is executing for all the pages.
    I want to execute only to list not on all the pages. How i can acheive this. Please help
    var context =
    new SP.ClientContext.get_current;
    this.oWebsite = context.get_web();
    var collUserCustomAction =
    this.oWebsite.get_userCustomActions();
    var scriptLink = collUserCustomAction.add();
    scriptLink.set_name('Welcome');
    scriptLink.set_title('Welcome');
    scriptLink.set_description('Welcome to new custom script Link');
    scriptLink.set_location('ScriptLink');
    scriptLink.set_scriptSrc('~Site/Scripts/test.js');
    scriptLink.set_group('');
    scriptLink.update();
    Navaneeth

    Then Edit the list page add the script editor web part on the page . Copy the paste the script. Now it will affect the list only. Or else in your script just validate the list id.
    Ravin Singh D

  • Custom icons 'unclickable' in icon view & not shown in coverflow

    Hi,
    I just got off the line with Apple support, who couldn't solve my problem and then just told me that Leopard didn't support what I was doeing and thus that it was not there problem. Very un-apple if you ask me...
    Here's the problem:
    I create custom icons for my movies by pasting images (Jpeg's or what have you) onto the icon in the 'Get info' window of a file. This works fine, however when I view the files in icon view I can't select the file by clicking on the icon, only by clicking on the text below. Strangly enough this problem dissapears when I edit the icon size in the 'View options' to a size equal too or smaller then 116x116. At this point I can select the file without any problem.
    The same sort of happens in coverflow. Here I can't see the icon in coverflow if the icons are fairly large. Once I reduce the size of the coverflow bar too the point where the icons are very small the custom icons reappear.
    The make the matter even more strange this problem only occurs with files where I created a custom icon for since I had Leopard installed. All custon icons created under 10.4 work fine.
    This indicates too me that Leopard has problem with handeling the resolution of icons.
    Note also that Leopard stores icon images in different sizes. Try copying an icon image from the 'Get info' window, then launch Preview, then select 'File' and 'New from Clipboard'. You will see that there are multiple images here.
    Anybody know how to solve this?

    Getting the same stupid behavior here!
    I had a lot of customized Tiger folder icons but now i've got no good tools for customizing these new huge Leopard ones.
    I began using *Icon Composer* from the developer tools after doing the graphics in Photoshop, then using IconDroplet to get them into a form where i can copy and paste them between *Get Info* windows. What a pain.
    Now i discover this bit where they're not clickable once i replace them! I didn't know about the behaviors when making them big in *Cover Flow* and small in Icon view until i read this.
    I've been snooping around but i haven't found what needs to be tweaked where to allow them to behave properly.
    !http://img228.imageshack.us/img228/5186/scottdartve1.png!

  • PDA Custom Icon

    Has anybody sucessfully changed the icon for a pda exe?
    I have followed the instructions here:
    http://digital.ni.com/public.nsf/allkb/AA87B627C42616C48625711A0063FFAF
    But after doing this my application always fails to build (exactly the same source code).
    I saved the original file and then tried to re-use that but still no joy.
    I have had to uninstall the PDA module and then re-install it to get everything working again.
    I want to use a custom icon but I am reluctant to try it again!!
    LV8.20
    evc 4
    Thanks
    ssk
    Message Edited by ssk on 08-08-2007 08:21 AM

    When I wrote this original thread, I had no success trying to compile with a custom icon.
    I am now running LV 8.5 and am at a point in a project where I need to create a custom icon. But, exactly the same thing is happeneing.
    I open up the resource file in evc++ 4, replace all instances of the icon with my custom version and then save the resource file.
    I installed evc after installing LabVIEW.
    When I build my application (which previously built with no problems), the build fails. The last part of the log file is:
    Generating Code...
    Compiling...
    lvCEPDAMain.c
    Generating Code...
    CVTRES : fatal error CVT1100: duplicate resource.  type:MENU, name:105, language:0x0409
    LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
    Any ideas?
    Thanks
    ssk

Maybe you are looking for

  • New Infinity customer, btinternet email not recogn...

    Hi, As with http://community.bt.com/t5/BB-Speed-Connection-Issues/BTinternet-email-address-not-recognised/m-p/96... http://community.bt.com/t5/BB-in-Home/btinternet-email-account-email-not-reconised/m-p/74077#M44042 http://community.bt.com/t5/BB-Spee

  • Passing all values to the child report in OpenDoc - XIR3.1

    Hi all in XIR3.1 iam able to write the open document syntax and also able pass some prompts i wanted like month, year, ID,... etc am able to pass and open a child report based on parameters when i select one value of those fields from dropdown in dri

  • Need to restore but iPod not recognized in iTunes

    I have the black iPod Classic 80GB for over two years and now it's getting some problems: First, after it synced it would automatically eject, then go into "ejected charging mode" if I left it plugged in. I thought nothing of this, really. Second, wh

  • Using HostComponent as target for effect in skin file

    Hi, I am creating a collapsible panel. I have the component file and a skin file. I have declared collapsed and normal states in my skin file. when the state change happens i need to show some animation, so used the transition effects. as below. <s:t

  • FW800-to-FW400 conversion?

    Purchasing new drive, need to be sure of compatibility... -the hard drive in question is fw 800, but that I can use it with my fw400-only-G4 (as well as my laptop with fw400-only spec) by using a *conversion cable*. Is this really true? -some users a