1

(132 replies, posted in Tips, Tricks & Scripts)

Well, at first I didn't realize cd went straight to home dir.  Also though, a lot of my aliases aren't really to save typing, but to make it more 'english.'

2

(197 replies, posted in Off Topic / General Chat)

Gutsy Gibbons was my first. :s

3

(19 replies, posted in Off Topic / General Chat)

corenominal wrote:

I started using Twitter about a year ago, but switched to Identi.ca pretty much as soon as it launched. Regardless of the service, I really like the short message format and I think micro-blogging encourages communication which would maybe otherwise not happen. It is all good.

I concur, though I haven't given Indenti.ca a shot.  I like the simplicity of Twitter, and it seems Identi.ca is a bit more.

4

(132 replies, posted in Tips, Tricks & Scripts)

Colorful. big_smile  Mind putting all the code in code tags, helps with page length. wink

Yeah, having a music folder with prepackaged mp3s is totally bloat.  hmm

But, s'not up to me.  You can always bring it up with corenominal.

There was supposed to be a second part to my post, but somehow I forgot to add it. 

There should by some .wav files in /usr/share/sounds/alsa/ if that helps.

That'd be nothing but bloat.

Nah, it just creates a list and uploads the list (http://im.dannytatom.com/pkglist) to an ftp server.  It wouldn't be hard to mod it to download all the packages, tar 'em up, then upload that but didn't have much reason to do that.

So I made my first bash script a few minutes ago and thought I'd share.  It creates a list of installed packages then ups 'em to an ftp server.  You'll need wput (it's small).

I haven't tried it on #! yet, but it works on my Arch box.  Different commands of course, but I think these are the commands to do the same in Ubuntu.  Correct me if I'm wrong. smile

#!/bin/bash

echo "Creating list of installed packages."

# Change 'user' to your username in the next 2 lines
sudo dpkg --get-selections | grep '[[:space:]]install$' | \awk '{print $1}' > /home/user/pkglist

filedir="/home/user/"
targetfile="pkglist"
host="ftp.yoursite.com/"
user="username"
pass="password"

echo "Uploading to $host."

cd $filedir
wput ftp://$user:$pass@$host/$targetfile

echo "Removing pkglist"
rm pkglist

echo "Done"

# After a fresh install, you can reinstall all packages by wget'n this file and running 
# dpkg --set-selections < pkglist
# dselect

Save it as ~/pkgup and run it with ./pkgup or, better yet, set it up as a daily cron job. smile

Requires xdotool, makes the arch logo an ob menu.

http://wstaw.org/images/free/2009/02/15/00a20608672401b4ad92b713878473_300x300.png

#------------------------------------------------------------------------------
#
#                         PyPanel v2.4 Configuration
#
# This configuration file is a Python script that will be executed when
# PyPanel is started.  In order for PyPanel to start properly, make sure that
# this file contains proper Python formatting and no syntax errors.
#------------------------------------------------------------------------------
VERSION         = 2.4           # Config file version

#------------------------------------------------------------------------------
# Colors: Format is hex triplet - 0xrrggbb
#------------------------------------------------------------------------------
BG_COLOR        = "0x262626"    # Panel background and tinting color
TASK_COLOR      = "0x6B6B6B"    # Normal task name color 
FOCUSED_COLOR   = "0xEFEFEF"    # Focused task name color
SHADED_COLOR    = "0x6B6B6B"    # Shaded task name color 
MINIMIZED_COLOR = "0x6B6B6B"    # Minimized task name color 
DESKTOP_COLOR   = "0xEFEFEF"    # Desktop name color
CLOCK_COLOR     = "0x000000"    # Clock text color
LINE_COLOR      = "0x606060"    # Vertical line color

# Text Shadow Colors
TASK_SHADOW_COLOR      = "0xffffff"
FOCUSED_SHADOW_COLOR   = "0xffffff"
SHADED_SHADOW_COLOR    = "0xffffff"
MINIMIZED_SHADOW_COLOR = "0xffffff" 
DESKTOP_SHADOW_COLOR   = "0xffffff"
CLOCK_SHADOW_COLOR     = "0xffffff"

#------------------------------------------------------------------------------
# Panel Spacing and Location Options: Measured in pixels
#------------------------------------------------------------------------------
P_LOCATION      = 0             # Panel placement: 0 = top, 1 = bottom
P_WIDTH         = 0             # Panel width: 0 = Use full screen width
P_START         = 0             # Starting X coordinate of the panel
P_SPACER        = 6             # Spacing between panel objects
P_HEIGHT        = 20            # Panel height

#------------------------------------------------------------------------------
# Icon Size Options: Measured in pixels
#------------------------------------------------------------------------------
I_HEIGHT        = 12            # Panel application icon height
I_WIDTH         = 12            # Panel application icon Width 
APPL_I_HEIGHT   = 14            # Application launcher icon height
APPL_I_WIDTH    = 14            # Application launcher icon width
TRAY_I_HEIGHT   = 16            # System tray icon height (usually 16 or 24)
TRAY_I_WIDTH    = 16            # System tray icon width  (usually 16 or 24)
                                # If TRAY_I_WIDTH is set to 0, then the
                                # width specified by the tray app will be used
                                
#------------------------------------------------------------------------------
# Panel Clock Format: 'man strftime' for detailed formatting options and help
#------------------------------------------------------------------------------
CLOCK_FORMAT    = "%Y-%m-%d %H:%M"    # Ex: 2004-09-25 17:45 

#------------------------------------------------------------------------------
# Clock Delay: Seconds between each clock update during periods of inactivity
#------------------------------------------------------------------------------
CLOCK_DELAY     = 20

#------------------------------------------------------------------------------
# Hidden Application List: Apps listed here will not be display on the panel
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
# Ex: ["xmms", "xine", "gDesklets"]
#------------------------------------------------------------------------------
HIDE_LIST       = []            
                   
#------------------------------------------------------------------------------
# Hidden Panel Size: Size of the panel when it's hidden/minimized
#------------------------------------------------------------------------------
HIDDEN_SIZE     = 2

#------------------------------------------------------------------------------
# Panel Text Font: This option takes either a traditional or Xft font string 
# Ex: "-schumacher-clean-medium-r-normal-*-12-*-*-*-*-*-*-*"
#     "aquafont-8" 
#------------------------------------------------------------------------------
FONT            = "bitstream vera sans-7"

#------------------------------------------------------------------------------
# Show All Applications: Show apps from all desktops or just the current
# 0: Disabled - Only applications on the current desktop will be displayed
# 1: Enabled  - Selected apps are moved to the current desktop
# 2: Enabled  - Current desktop is changed to the selected apps desktop
#------------------------------------------------------------------------------
SHOWALL         = 0             # 0, 1 or 2 - see descriptions above

#------------------------------------------------------------------------------
# Show Minimized/Iconified Applications: Show only minimized apps or all apps
# 0: Disabled - Show all applications on the panel
# 1: Enabled  - Show only minimized apps on the panel
#------------------------------------------------------------------------------
SHOWMINIMIZED   = 0

#------------------------------------------------------------------------------
# Application Icon List: List of custom icons for specific applications
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
#
# The "default" entry is used for applications with no icon.  If left "",
# PyPanel will use the default icon distributed with the source.
#
# Add entries using the following format -
#     "<application name>" : "<full path to icon>",
#------------------------------------------------------------------------------
ICON_LIST       = {
                   "default" : "",
                   "example" : "/usr/share/imlib2/data/images/audio.png",
                  }
                  
#------------------------------------------------------------------------------
# Application Launch List: Ordered list of icons and applications for the
#                          application launcher.
# 
# Add entries using the following format -
#     ("<executable>", "<full path to icon>")
#------------------------------------------------------------------------------
LAUNCH_LIST     = [
                   ("xdotool key ctrl+alt+q", "/home/danny/.icons/arch.png"), 
                  ]

#------------------------------------------------------------------------------
# Background Alpha/Shade Level: 0 (Fully Translucent) -> 255 (Fully Opaque)
# BG_COLOR is used for tinting
#------------------------------------------------------------------------------
SHADE           = 255

#------------------------------------------------------------------------------
# Misc. Options: 1 = Enabled/Yes, 0 = Disabled/No
#------------------------------------------------------------------------------
ABOVE           = 1             # Panel is always above other apps
APPICONS        = 0             # Show application icons
AUTOHIDE        = 0             # Autohide uses the CLOCK_DELAY timer above
SHADOWS         = 0             # Show text shadows
SHOWLINES       = 0             # Show object seperation lines
SHOWBORDER      = 0             # Show a border around the panel

#------------------------------------------------------------------------------
# Desktop Names: Configure the names of your desktops
# If the option is [], PyPanel will attempt to use the desktop name specified
# by the XServer, if that fails it will use the desktop number as its name
# Ex. ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight"]
#------------------------------------------------------------------------------
DESKTOP_NAMES   = []

#------------------------------------------------------------------------------
# Panel Layout:       -----------------------------------
#                     [  1  ][  2  ][  3  ][  4  ][  5  ]
#                     -----------------------------------
#
# The panel layout is split into 5 sections numbered 1, 2, 3, 4 or 5 as shown
# in the diagram above.  Each of the following objects can be enabled by
# assigning it a section number or disabled by assigning it 0:
#------------------------------------------------------------------------------
DESKTOP         = 0             # Desktop name section
TASKS           = 2             # Task names section 
TRAY            = 3             # System tray section
CLOCK           = 0             # Clock section
LAUNCHER        = 1             # Application launcher section

#------------------------------------------------------------------------------
#                       Button Event Function Definitions
#------------------------------------------------------------------------------
# Left click   - button 1 
# Middle click - button 2
# Right click  - button 3
# Wheel up     - button 4
# Wheel down   - button 5 
#
# changeDesktop(x)
# - Change Desktop: Increase or decrease the current desktop by 'x' amount
# 
# toggleShade(task)
# - Shade or Unshade an application
#
# toggleHidden()
# - Minimize the panel to the top or bottom depending on its start location
#
# toggleMinimize(task, traise=1)
# - Minimize or Unminimize an application and optionally raise it
#
# taskRaise(task, focus=1)
# - Raise an application to the top of the window list and optionally focus it 
#
# taskLower(task, focus=0)
# - Lower an app to the bottom of the window list and optionally focus it
#
# taskFocus(task)
# - Give focus to the selected application, if it has focus then minimize it
#
# showDesktop()
# - Toggle between hiding and unhiding ALL applications
#------------------------------------------------------------------------------

#----------------------------------
def desktopButtonEvent(pp, button):
#----------------------------------
    """ Button event handler for the panel's desktop object """
        
    if button == 1:
        pp.changeDesktop(-1)
    elif button == 2:
        pp.changeDesktop(2)
    elif button == 3:
        pp.changeDesktop(1)
    elif button == 4:
        pp.changeDesktop(1)
    elif button == 5:
        pp.changeDesktop(-1)
        
#--------------------------------
def clockButtonEvent(pp, button):
#--------------------------------
    """ Button event handler for the panel's clock object """
    
    if button == 1:
        os.system("xclock &")
    elif button == 2:
        pass
    elif button == 3:
        pp.toggleHidden()  
    elif button == 4:
        pp.showDesktop()
    elif button == 5:
        pp.showDesktop()
        
#--------------------------------
def panelButtonEvent(pp, button):
#--------------------------------
    """ Button event handler for the panel with no active tasks """
    
    if button == 1:
        pass
    elif button == 2:
        pass
    elif button == 3:
        pass
    elif button == 4:
        pass
    elif button == 5:
        pass
        
#-------------------------------------
def taskButtonEvent(pp, button, task):
#-------------------------------------
    """ Button event handler for the panel's tasks """
    
    if button == 1:
        pp.taskFocus(task)
    elif button == 2:
        # Destroy the application
        task.obj.destroy()
    elif button == 3:
        # Ex. - XMMS doesn't shade, so we want to minimize it instead and
        #       still use button 3 to shade other applications
        #       task.tclass is the tasks class name (WM_CLASS)
        if "xmms" in task.tclass:
            pp.toggleMinimize(task)
        else:
            pp.toggleShade(task)
    elif button == 4:
        pp.taskRaise(task, focus=1)
    elif button == 5:
        pp.taskLower(task, focus=0)

lady gaga - just dance. :x

http://wstaw.org/images/free/2009/02/15/00a20608672401b4ad92b713878473_300x300.png

Oh my, fun game. yikes

My first gtk theme, still fixin' it up.  Anyone know how to get rid of the ugly borders around textareas and frames, or at least color 'em? hmm

http://www.picamatic.com/show/2009/02/14/01/18/2153365_bigthumb.jpg

15

(5 replies, posted in Help & Support (Stable))

That seems like a waste of HD space, why not add the #! repos to your sources list and make #! a different session?

16

(3 replies, posted in Help & Support (Stable))

Doesn't do that to me. :s

hahaha, yakko's world is good stuff.

To get your rc.xml back to default, open up a terminal and type:

cp /etc/xdg/openbox/rc.xml ~/.config/openbox/rc.xml 

Not sure 'bout your other question.

http://www.picamatic.com/show/2009/02/11/01/06/2107187_bigthumb.jpg

@Nik_Doof: Is that irssi?  And, if so, can I get your layout config?  Also, stop spying on us!

Battle of Mice - At the Base of the Giant's Throat

22

(7 replies, posted in CrunchBang Talk)

They should work/install with no problem, but beware of a mass amount of dependencies being installed for even the smallest app.

23

(132 replies, posted in Tips, Tricks & Scripts)

@pitje Wrong thread.  tongue  You can post your .conkyrc + screenshot here

This threads for your .bashrc (located in your home dir).  smile

24

(7 replies, posted in Introductions)

Hey there, hope you enjoy #!. big_smile

The wiki has some good articles on getting it all set up to fit your needs. smile

25

(7 replies, posted in Introductions)

'elo there, hope ya do less lurking and more hangin' out. ;D

also, only three years?