[SOLVED] Using gdm, how to make commands run when x starts?

Hello World!
I am running arch on a Thinkpad T400, and would love to be able to scroll using the middle button and the trackpoint. I found this article: http://www.thinkwiki.org/wiki/How_to_co … TrackPoint
and it says to insert some commands into .xsessionrc. The thing is, I'm not sure where .xsessionrc is, or if arch even uses .xsessionrc. (It said it would depend on the distribution.) I tried putting it in .xinitrc, but apparently that only runs with the command "startx", but I'm using a display manager. (gdm). In this thread:
https://bbs.archlinux.org/viewtopic.php?id=85714
the person was told to put the script in .kdm, since he was using that display manager. Is there a similar place for gdm where these commands will run at startup?
If anyone is curious, here are the commands I need to run:
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 200
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 6 7 4 5
Any thoughts, hints, suggestions, or solutions would be appreciated.
Last edited by TheGuyWithTheFace (2013-07-16 23:22:39)

You should copy the global file to the location cookies indicated, and then modify the local copy.
https://wiki.archlinux.org/index.php/Aw … ation_file
Arch wiki wrote:Whenever compiled, awesome will attempt to use whatever custom settings are contained in ~/.config/awesome/rc.lua. This file is not created by default, so we must copy the template file first:
It's a good idea to leave that template config file alone (the one in /etc/xdg/awesome), so that when you break your local config (and you will, trust me) you have the template file as a backup.
You might want to read the wiki page for awesome, and also consult the awesome wiki.
Last edited by 2ManyDogs (2013-07-16 23:39:56)

Similar Messages

  • I have downloaded OS X Mountain Lion from the App Store. It took two hours to download but now its not running and I have no idea how to make it run!

    I have downloaded OS X Mountain Lion from the App Store. It took two hours to download but now its not running and I have no idea how to make it run!
    Download was complete and I accepted everything and restarted computer but its still running 10.7.5
    Any idea how to get OS X Mountain Lion to run?

    What you donwloaded was the OS installer. You still have to do the installation.
    To get started, double click on the download, then double click again and follow instructions.

  • How to make iMac run less hot when in Bootcamp?

    When I play a game in win7 trough bootcamp, my iMac gets real hot.
    How to make it run cooler?
    It sounds like fans could be running faster; but I want it to do it automaticly.

    Download Lubbo Fancontrol for MacBook Pro to help with the fans.
    Lubbo FanControl for MacBook Prohttp://sourceforge.net/projects/lubbofancontrol/
    Also these
    AIDA64 Extreme Editionhttp://www.aida64.com
    http://www.aida64.com/product/aida64-extreme-edition/overview
    CCleaner
    http://www.piriform.com/ccleaner

  • CS6 Fluid Grids - how to make images resize when page is resized? [was: Hello]

    I am new to fluid grid layouts in Dreamweaver cs6, I want to insert a GIF file on my index page but I do not know how to make it so when the page shrinks the GIF or image shrinks as well. The only code that I have found is
    img, {
        max-width: 100%;
    But this code already exists in the css file when you create a new fluid grid based layout
    img, object, embed, video {
        max-width: 100%;
    can anyone help a newbie please..

    this is my source code
    <!doctype html>
    <!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
    <!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
    <!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
    <!--[if gt IE 8]><!-->
    <html class="">
    <!--<![endif]-->
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Kyle Childress Foundation</title>
    <link href="boilerplate.css" rel="stylesheet" type="text/css">
    <link href="/layout.css" rel="stylesheet" type="text/css">
    <!--
    To learn more about the conditional comments around the html tags at the top of the file:
    paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
    Do the following if you're using your customized build of modernizr (http://www.modernizr.com/):
    * insert the link to your js here
    * remove the link below to the html5shiv
    * add the "no-js" class to the html tags at the top
    * you can also remove the link to respond.min.js if you included the MQ Polyfill in your modernizr build
    -->
    <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script src="respond.min.js"></script>
    </head>
    <body>
    <div class="gridContainer clearfix">
      <div id="animation"><img src="images/images/kyleanimation2014gif2.gif" alt="kylechildressfoundationanimation"></div>
    </div>
    </body>
    </html>
    this is my css
    @charset "UTF-8";
    @import url("/kyle.css");
    /* Simple fluid media
       Note: Fluid media requires that you remove the media's height and width attributes from the HTML
       http://www.alistapart.com/articles/fluid-images/
    img, object, embed, video {
        max-width: 100%;
    /* IE 6 does not support max-width so default to width 100% */
    .ie6 img {
        width:100%;
        Dreamweaver Fluid Grid Properties
        dw-num-cols-mobile:        5;
        dw-num-cols-tablet:        8;
        dw-num-cols-desktop:    10;
        dw-gutter-percentage:    25;
        Inspiration from "Responsive Web Design" by Ethan Marcotte
        http://www.alistapart.com/articles/responsive-web-design
        and Golden Grid System by Joni Korpi
        http://goldengridsystem.com/
    /* Mobile Layout: 480px and below. */
    .gridContainer {
        margin-left: auto;
        margin-right: auto;
        width: 87.36%;
        padding-left: 1.82%;
        padding-right: 1.82%;
    #LayoutDiv1 {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #animation {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #image {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    /* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout. */
    @media only screen and (min-width: 481px) {
    .gridContainer {
        width: 90.675%;
        padding-left: 1.1625%;
        padding-right: 1.1625%;
    #LayoutDiv1 {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #animation {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #image {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    /* Desktop Layout: 769px to a max of 1232px.  Inherits styles from: Mobile Layout and Tablet Layout. */
    @media only screen and (min-width: 769px) {
    .gridContainer {
        width: 88.2%;
        max-width: 1232px;
        padding-left: 0.9%;
        padding-right: 0.9%;
        margin: auto;
    #LayoutDiv1 {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #animation {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    #image {
        clear: both;
        float: left;
        margin-left: 0;
        width: 100%;
        display: block;
    the animation GIF is 700 x 908
    I changed the code from max-width to just width 100% but it still did not work ,, please help

  • How to make it selected when clicked and open popup

    Hi,
    I 've a form in the parent page with many form elements.
    I've 2 radio buttons with values "Yes" and "No". I am opening a modal popup when clicked on "Yes" radio button. The modal popup is opening fine.
    But when I click "Yes", it' s not selected. After modal popup is closed, when I return to parent page, the option "Yes" is still not selected.
    How to make it selected when clicked and open popup?

    Perhaps try moving the application to your preferred desktop and then right-click it's dock icon > options > Assign to This Desktop.

  • How to make session invalid when user refresh the page?

    How to make session invalid when user refresh the page?

    I have a <form> in a JSP file that has another JSP file as an action.
    I have main.jsp that has <form> with action.jsp file as an action.
    Now when I submit the <form>, request forwarded to action.jsp and it will take the action. But this file is taking so long, hence user refresh the page again and again, hence duplicate request processing is occuring.
    I want to prevent this.

  • How do i stop programs from automatically running when i start up my macbook?

    how do i stop programs from automatically running when i start up my macbook?
    programs such as.. email and Skype.
    When i go to system preferences, then users & groups, then to my name, log in items ....this box is clear, i have unchecked everything, yet things still start up......

    sometimes these applications will have a setting in the preferences to not open on login of computer. If you see none of that, you can go into:
    system preferences> Users & Groups > Select your user>Login Items.
    unlock the settings by hitting the lock icon on the bottom left of the window then youll be able to uncheck these things from opening when you log in.
    Hope this is helpful or answers the question.

  • HT1338 how can make a room from my start up disk in in mac pro

    how can make a room from my start up disk in in mac pro

    Only you can decide what you want to delete to free up space on your PB, Personally I think you'll find 17 GB won't go very far when you start to add video.
    Consider an external drive. Don't forget if you let your free space fall below 10% of the total size of the drive you will risk corrupting your directory structure or causing other damage which may result in a loss of data.

  • I am using I Photo 4.0.3. When I start it, loading pictures never ends and I cannot use I Photo; What can I do?

    I am using I Photo 4.0.3. When I start it, loading pictures never ends and I cannot use I Photo; What can I do?

    When did this begin?  Did you run any updaters just before this began and, if so, what were they? 
    That's a very old iPhoto version so give this a try:
    1 - launch iPhoto with the Command+Option keys held down.
    2 - select Options #3 and #4.
    4 - Rebuild the library. 
    If that fails to help continue with this:
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, 
    navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments. However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Hi, l authorized my computer using iTunes and it said successful, but when l start syncing my applications l get this error: "The iPhone "My name" could not be synced because this computer is no longer authorized for purchased items that are on this phone

    hi, l authorized my computer using iTunes and it said successful, but when l start syncing my applications l get this error: "The iPhone "My name" could not be synced because this computer is no longer authorized for purchased items that are on this phone".
    May you help
    Thanks

    Try TS1389: iTunes repeatedly prompts to authorize computer to play iTunes Store purchases.
    tt2

  • How to deselect the text when I start the program?

    how to deselect the text when I start the program?
    photo:

    wants the blue background could not be seen:
    Code Form:
    Public Class Form2
        Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        End Sub
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            If ComboBox1.SelectedItem = "The Sims 4" Then
                Form3.Show()
            Else
            End If
            If ComboBox1.SelectedItem = "The Sims 3" Then
                Form4.Show()
            Else
            End If
        End Sub
    End Class
    There's a lot wrong with all of that.
    I'm sorry that I won't be able to help...
    Still lost in code, just at a little higher level.

  • I installed windows 7 using Boot camp, Then i wanted to install the support software using boot camp and it always stops at 50% i tried installing the software using internet it always gives me error when i start installing it on windows, What to do?

    I installed windows 7 using Boot camp, Then i wanted to install the support software using boot camp and it always stops at 50% i tried installing the software using internet it always gives me error when i start installing it on windows, What to do?

    What is the error? Are you following the Bootcamp instructions? Where on the "internet" are you trying to install from? Did you try downloading from here http://www.apple.com/support/bootcamp/downloads/?

  • How to make Robocopy run in the foreground using Scheduled Tasks

    Hello everyone! 
    I am doing a daily backup using Robocopy and Scheduled Tasks running Windows 2012 Server. When it runs, robocopy runs in the background and does not write to log that I am pointing to. How can I make it run in the foreground? Also, is there anyway to write to log only those records that have been copied or purged? what are the best practices for robocopy use?
    Here is the script:
    date /t >> log.txt
    time /t >> log.txt
    ROBOCOPY \\CENTURY1\d$\ f:\  /MIR /R:0 
    time /t >> log.txt
    This topic first appeared in the Spiceworks Community

    Hello everyone! 
    I am doing a daily backup using Robocopy and Scheduled Tasks running Windows 2012 Server. When it runs, robocopy runs in the background and does not write to log that I am pointing to. How can I make it run in the foreground? Also, is there anyway to write to log only those records that have been copied or purged? what are the best practices for robocopy use?
    Here is the script:
    date /t >> log.txt
    time /t >> log.txt
    ROBOCOPY \\CENTURY1\d$\ f:\  /MIR /R:0 
    time /t >> log.txt
    This topic first appeared in the Spiceworks Community

  • How to make WebLogic run as a service in Sun Solaris

    I have a WebLogic Server 10.3.1 run on Solaris 10. I use oracle user to start WebLogic. But when I logout, the server also down. How to make it still run when user oracle logout the server or the session is disconected automaticly?

    you can put the same command in .profile file (hidden file) .. when the user logs in .profile will be executed and so do your startup sommand.

  • How to make silverlight run on my mac

    I have to download microsoft silverlight on my mac. Once I do how do I make it run?

    Microsoft Silverlight IS a Plugin
    If your iMac is an Intel iMac and running, at least  OS X 10.5.7 then you can install this plugin.
    If you are running OS X 10.5.7 on an older PowerPC iMac, Silverlight cannot be downloaded and won't work.
    Are you using this plugin to view Netflix videos on your computer?
    You just download it , it will automatically install itself and it works in the background within the web browsers listed in the page I have linked.
    Here's the download link
    http://www.microsoft.com/getsilverlight/Get-Started/Install/Default.aspx

Maybe you are looking for

  • ORA-06531 reference to uninitialized collection in oracle 6i form

    Hello, I am importing data from excel to database table with column mapping (oracle 6i forms)using ole2 package, then calling package which is having a procedure. while executing the package procedure, I am getting error 'ora-06531 reference to unini

  • Can 't connect old iMac to new Mac Mini

    I'm trying to connect an older iMac (450MHz, cherry red OS 9.2.1) to a new Mac Mini (OS X 10.4.3). I don't have a Frewire cable, so I'm trying to do it with an ethernet router. I seem to be doing it incorrectly. File Sharing is turned on for the iMac

  • Bridge CS4 cannot view or edit G10 CR2 files

    Hi, I have searched for this and come up with a few pointers but so far none has worked for me. Running PS CS4 11.0.1 Got latest CR 5.5 and it is in the correct place. Have run CameraProfiles exe file. Have deleted and rebuilt icon cache for folder(s

  • 16:10 with a Intel 900GMA

    Hi !   I have a desktop with an onboard Intel 900GMA graphic card and a 16:10 LCD Flat Panel.  I want to have a 1280:800 resolution (or anything 16:10 would do actually), but when I set it and run X, I got a different resolution and most of all, I ha

  • 3G when on then no signal

    Settings:General:Network:3G If 3G is set to on then I get no signal in Tampa / Clearwater FLorida. I thought it was the area but recently went to Chicago and tried turning on 3G. It didn't work in Chicago either. Is there a way to see if it's the net