SEARCH

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

You are not logged in.

#1 2011-09-27 17:12:36

siknik
Member
From: Rocky Mount, NC US
Registered: 2011-09-22
Posts: 21

[Resolved]help with autostart in scrotwm

don't know if this is the right place to be posting this but here we go.

looked over the forum might have missed it, if i did hopefully someone can point me in the right direction. i want this to start when i login to scrotwm: feh --bg-scale images/wallpapers/Firefox-Anime-4-4-2.jpg

tried a few different things with no success, i have feh installed. tried a script can't figure out how to auto start it. bout to just give up and type that command every time i login, which if i use scrotwm as my main wm won't be often but would like it to auto start.

kinda sat up all night playing on psn with friends then started messing with scrotwm, so i might have missed something, sry if i posted this for no reason.

Last edited by siknik (2011-09-28 00:41:46)

Offline

Be excellent to each other!

#2 2011-09-27 17:42:14

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: [Resolved]help with autostart in scrotwm

how are you starting scrotwm, with GDM or .xinitrc?

Offline

#3 2011-09-27 18:02:04

siknik
Member
From: Rocky Mount, NC US
Registered: 2011-09-22
Posts: 21

Re: [Resolved]help with autostart in scrotwm

gdm as for as i know, thats the default crunchbang login right?

Offline

#4 2011-09-27 18:21:12

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: [Resolved]help with autostart in scrotwm

sudo -i

enter password

touch /usr/local/bin/scrotwm.sh
cd /usr/local/bin/
<editor of choice> scrotwm.sh

add to file

feh --bg-scale /home/YOURUSERNAME/images/wallpapers/Firefox-Anime-4-4-2.jpg &
sleep .2
scrotwm

Save, exit, run

chmod +x scrotwm.sh

then

<editor of choice> /usr/share/xsessions/scrotwm.desktop

make it look like this

[Desktop Entry]
Comment=This session runs the scrotwm window manager
Encoding=UTF-8
Type=XSession
Exec=/usr/local//bin/scrotwm.sh
TryExec=scrotwm
Name=Scrotwm

Save, exit, go to GDM, you should be good to go. If you're using network-manager for connections, you will want to add

nm-applet &

to the scrotwm.sh file

Return for troubleshooting.

Offline

#5 2011-09-27 21:49:48

siknik
Member
From: Rocky Mount, NC US
Registered: 2011-09-22
Posts: 21

Re: [Resolved]help with autostart in scrotwm

thanx man this worked perfect!!! i feel like i owe you money or something!:D

Offline

#6 2011-09-27 22:02:24

siknik
Member
From: Rocky Mount, NC US
Registered: 2011-09-22
Posts: 21

Re: [Resolved]help with autostart in scrotwm

maybe you could answer one more ?. this one isn't as important to me but could you possibly explain how to add key-bindings. i followed the example at the bottom of the scrotwm.conf file but it doesn't seem to be working. only thing i managed to do was change the mod-key from alt to super. but i tried to add in the shortcuts from open-box and they don't wanna work. so far i tried super-e for gedit and super-w for chromium, neither have worked so i have settled for using super-p for the run app deal, not ever sure what it's called?

Last edited by siknik (2011-09-27 22:15:26)

Offline

#7 2011-09-27 23:17:03

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: [Resolved]help with autostart in scrotwm

Did you restart scrot (MOD + Shift + q)?
Take a look at my shortcuts:

program[firefox]        = firefox
bind[firefox]           = MOD+w
program[thunar]         = thunar
bind[thunar]            = MOD+f
program[lowriter]       = lowriter
bind[lowriter]          = MOD+o
program[synaptic]       = gksudo synaptic
bind[synaptic]          = MOD+s

Offline

#8 2011-09-27 23:35:20

siknik
Member
From: Rocky Mount, NC US
Registered: 2011-09-22
Posts: 21

Re: [Resolved]help with autostart in scrotwm

i restarted with mod+q, so i would have to quit with mod+shift+q then log back in?

are you placing them in the .conf just like that? if so where? i was placing them separately in the spawn-app and key-bindings  sections, that may be my problem.

and with that autostart you help me with, could i add other stuff to it if i decided i wanted something else to start at login? i don't at the moment, but it would be helpful to know for future reference.

Offline

#9 2011-09-28 00:12:41

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: [Resolved]help with autostart in scrotwm

My bad, MOD +q should do it. I added the shortcuts to the end of the scrotwm.conf file. Restart and it works.
Follow the syntax. For gedit, it would be

program[gedit]  = gedit
bind[gedit]  = MOD+e

You add what you want to start to /usr/local/bin/scrotwm.sh

Offline

#10 2011-09-28 00:28:02

siknik
Member
From: Rocky Mount, NC US
Registered: 2011-09-22
Posts: 21

Re: [Resolved]help with autostart in scrotwm

thank you so much, you saved me such a headache in figuring all this out. smile

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