ootput burst!

the lively meanderings of an idle mind

RSS

 1 2 3  23 Next →

  • A New Direction for My Blog

    Mar 04, 2012 0 Comments

    I will strive to learn how to cultivate the resilience to deal with change, the agility to explore different aspects of myself, and the vision to use change to forge empowering new perspectives on the future.”
    - Joseph LP (ootput)

    Henceforth, I will start using this site as a staging area for other aspects of my life: ex. health, interests etc.

    Expect to see even shorter posts.

    ↑ Back to Top
     
  • Disable Mouse Acceleration in Xorg

    Mar 03, 2012 0 Comments

    You first need to identify the device number of the mouse you’d like to configure:

    $ xinput list

    Logitech USB Gaming Mouse id=10 [slave pointer (2)]

    To list the properties of the mouse:

    $ xinput list-props 10

    Device ‘Logitech USB Gaming Mouse’:

    Device Accel Profile (252): 0

    The value given determines how the driver handles the acceleration:

    -1: none no velocity-dependent pointer acceleration or deceleration. If constant deceleration is also unused, motion processing is suppressed, saving some cycles.

    0: classic (the default) similar to old behaviour, but more predictable [1]

    Setting this property to -1 it will disable mouse acceleration entirely.

    $ xinput set-prop 10 252 -1

    After confirming that the above command works, you can create a shell script to be executed at boot. You may choose to replace the index numbers, eg. 10 and 252 with the more meaningful property names "Logitech USB Gaming Mouse" and "Device Accel Profile" respectively.

    My $HOME/bin/macceloff.sh script contains:

    #!/bin/bash
    
    sleep 05
    xinput set-prop "Logitech USB Gaming Mouse" "Device Accel Profile" -1
    exit 0
    
      References:
    1. 1. Xorg Wiki - Development/Documentation/PointerAcceleration 
    ↑ Back to Top
     
  • Parse /Usr/Ports/UPDATING for Relevant Issues

    Jan 19, 2012 0 Comments

    Tired of sifting through /usr/ports/UPDATING for notes that affect only those packages installed on your system?

    Tired of grepping for issues that may have arisen from/to certain dates?

    pkg_updating(1) analyses /usr/ports/UPDATING and does the heavy lifting for you.

    To obtain the relevant entries from, say, two weeks ago, do:

    # /usr/sbin/pkg_updating -d $(/bin/date -v-2w +%Y%m%d)

    Use:

    • -v-1d for a day;
    • -v-1m for a month;
    • -v-1y for a year, and so on.
    ↑ Back to Top
     
 1 2 3  23 Next →