SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-01-26 06:08:24

toro-terco
Member
From: Everywhere
Registered: 2011-01-24
Posts: 16

[SOLVED] Need copy of autostart.sh

I'm an idiot.  I was attempting to set up dual-monitors and botched my autostart.sh, but not thinking, I forgot to make a back-up.  Anyone mind posting what is in their autostart.sh?

Last edited by toro-terco (2011-01-28 00:58:39)

Offline

Help fund CrunchBang, donate to the project!

#2 2011-01-26 06:16:37

mahatman2
#! Die Hard
From: Chattanooga TN
Registered: 2009-09-13
Posts: 550

Re: [SOLVED] Need copy of autostart.sh

sure, here:

## Openbox autostart.sh
## ====================
## When you login to your CrunchBang Openbox session, this autostart script 
## will be executed to set-up your environment and launch any applications
## you want to run at startup.
##
## More information about this can be found at:
## http://openbox.org/wiki/Help:Autostart
##
## If you do something cool with your autostart script and you think others
## could benefit from your hack, please consider sharing it at:
## http://crunchbanglinux.org/forums/
##
## Have fun! :)

## Start session manager
lxsession &

## Enable power management
xfce4-power-manager &

## Start Thunar Daemon
thunar --daemon &

## Set desktop wallpaper
nitrogen --restore &

## Launch panel
tint2 -c /home/case/.config/tint2/sidepanel.tint2rc &

##Launch "wingpanel"
tint2 -c /home/case/.config/tint2/wingpanel.tint2rc &

## Enable Eyecandy - off by default, uncomment one of the commands below.
## Note: cairo-compmgr prefers a sleep delay, else it tends to produce
## odd shadows/quirks around tint2 & Conky.
#(sleep 10s && cb-compmgr --cairo-compmgr) &
cb-compmgr --xcompmgr & 

## Launch network manager applet
(sleep 4s && nm-applet) &

## Detect and configure touchpad. See 'man synclient' for more info.
if egrep -iq 'touchpad' /proc/bus/input/devices; then
    synclient VertEdgeScroll=1 &
    synclient TapButton1=1 &
fi

## Start xscreensaver
xscreensaver -no-splash &

## Start Conky after a slight delay
(sleep 3s && conky -q) &

## Start volumeicon after a slight delay
(sleep 3s && volumeicon) &

## Bad Nautilus, minimises the impact of running Nautilus under
## an Openbox session by applying some gconf settings. Safe to delete.
cb-bad-nautilus &

## The following command will set-up a keyboard map selection tool when
## running in a live session.
cb-setxkbmap-live &

## cb-fortune - have Statler say a little adage
(sleep 120s && cb-fortune) &

# Autostart the Dropbox deamon
(sleep 60s && ~/.dropbox-dist/dropboxd) &

Punch all your friends.

Offline

#3 2011-01-26 06:17:53

toro-terco
Member
From: Everywhere
Registered: 2011-01-24
Posts: 16

Re: [SOLVED] Need copy of autostart.sh

thanks!

Offline

#4 2011-01-26 12:23:00

yorick
#! Member
Registered: 2010-12-13
Posts: 96

Re: [SOLVED] Need copy of autostart.sh

Somebody correct me if I'm wrong, but I think all of the main config files like autostart.sh, menu.xml, etc, are backed up in their original version in some directory like /something/skel?

I'm not at my #! computer, but I seem to remember seeing them there after installing the "locate" terminal program and typing: "locate autostart" in the terminal.

I think it can also be found by typing something like "find -iname *autostart*" in the terminal.

Last edited by yorick (2011-01-26 12:23:35)

Offline

#5 2011-01-26 12:39:20

slapfish
#! Die Hard
From: Athens, Greece
Registered: 2009-10-22
Posts: 601

Re: [SOLVED] Need copy of autostart.sh

^ /etc/skel

Offline

#6 2011-01-26 15:46:12

toro-terco
Member
From: Everywhere
Registered: 2011-01-24
Posts: 16

Re: [SOLVED] Need copy of autostart.sh

Good to know.  Thanks guys.

Offline

#7 2011-01-26 15:51:16

toro-terco
Member
From: Everywhere
Registered: 2011-01-24
Posts: 16

Re: [SOLVED] Need copy of autostart.sh

And for anyone who is here looking for help setting up dual monitors,  I switched over to arandr instead of grandr.  Arandr worked, but grandr kept cutting my second screen in half.

Offline

#8 2011-01-26 19:52:23

benj1
Wiki Wizard
From: Yorkshire, England
Registered: 2009-09-05
Posts: 1,084

Re: [SOLVED] Need copy of autostart.sh

toro-terco wrote:

And for anyone who is here looking for help setting up dual monitors,  I switched over to arandr instead of grandr.  Arandr worked, but grandr kept cutting my second screen in half.

is arandr missing any grandr features? it may be worth suggesting arandr as the distro default


- - - - - - - - Wiki Pages - - - - - - -
#! install guide           *autostart programs, modify the menu & keybindings
configuring Conky       *installing scripts

Offline

#9 2011-01-27 04:52:47

toro-terco
Member
From: Everywhere
Registered: 2011-01-24
Posts: 16

Re: [SOLVED] Need copy of autostart.sh

I didn't notice anything.  Both allow you to choose resolutions for each screen, position the extended screen on any side of the primary screen you want to, and rotate the screens.  The thing that made is so easy is that Arandr actually allows you to save the settings to a #!/bin/bash shell.  I just copied that script into the autostart.sh that Mahatman2 posted for me, and everything worked perfectly.  I should check to see if everything would still be the same without editing the autostart.sh.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo