SEARCH

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

You are not logged in.

#1 2014-03-25 17:19:24

0day
#! CrunchBanger
Registered: 2010-02-06
Posts: 190

menu text file autostart

I created a text file, I would put it in autostart for wm2 to open with nano to have a command to paste on the terminal, how can I do?

wicd-gtk
firefox
midori
transmission-gtk
thunar
sudo synaptic
simple-scan
scrot
bleachbit
sudo bleachbit
unetbootin
nano
abiword
gnumeric
evince
sudo shutdown -h now

Offline

Help fund CrunchBang, donate to the project!

#2 2014-03-25 17:55:05

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: menu text file autostart

Are you trying to make a menu for wm2?

If so, you're probably better off using dmenu and setting up a key binding.


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#3 2014-03-25 19:36:30

0day
#! CrunchBanger
Registered: 2010-02-06
Posts: 190

Re: menu text file autostart

Last edited by 0day (2014-03-25 19:42:11)

Offline

#4 2014-03-25 20:15:15

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: menu text file autostart


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#5 2014-03-26 14:25:48

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: menu text file autostart

Last edited by PackRat (2014-03-26 15:04:17)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#6 2014-03-28 13:33:13

0day
#! CrunchBanger
Registered: 2010-02-06
Posts: 190

Re: menu text file autostart

Offline

#7 2014-03-28 14:22:45

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: menu text file autostart

Offline

#8 2014-03-28 14:36:48

0day
#! CrunchBanger
Registered: 2010-02-06
Posts: 190

Re: menu text file autostart

What happens if you try to run it from the command line?  9menu appear with empty menu

Offline

#9 2014-03-28 15:04:26

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: menu text file autostart

Offline

#10 2014-03-28 18:08:14

0day
#! CrunchBanger
Registered: 2010-02-06
Posts: 190

Re: menu text file autostart

solved, add:
9menu -popdown -label 'wm2 menu' thunar wicd-gtk firefox midori transmission-gtk simple-scan scrot bleachbit unetbootin geany abiword gnumeric evince &
wm2

in wm2-start

but sudo shutdown -h now and nano don't work

Last edited by 0day (2014-03-28 18:42:11)

Offline

#11 2014-03-28 18:57:03

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: menu text file autostart

xterm -e nano

Last edited by PackRat (2014-03-28 18:57:58)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#12 2014-03-28 21:21:04

xero
#! Junkie
From: 0x000000
Registered: 2013-09-30
Posts: 382
Website

Re: menu text file autostart

xterm -e nano

Offline

#13 2014-03-29 07:36:29

0day
#! CrunchBanger
Registered: 2010-02-06
Posts: 190

Re: menu text file autostart

does not accept spaces, for example: gksu bleachbit
opens gksu

Offline

#14 2014-03-29 08:37:31

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: menu text file autostart

Last edited by pvsage (2014-03-29 08:45:39)

Offline

#15 2014-03-29 09:27:17

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2012-03-22
Posts: 1,026
Website

Re: menu text file autostart

$ xterm <options> -e nano .bashrc

Offline

#16 2014-03-29 13:53:17

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: menu text file autostart

gksu '<command>'

i.e to shutdown

gksudo 'shutdown -h now'

Last edited by PackRat (2014-03-29 13:54:10)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#17 2014-03-31 16:33:44

0day
#! CrunchBanger
Registered: 2010-02-06
Posts: 190

Re: menu text file autostart

don't work, 9menu do not accept space only single command: e.g. :  firefox bleachbit but not sudo or gksu bleachbit

Offline

#18 2014-03-31 19:00:05

porkpiehat
#! Die Hard
Registered: 2012-10-02
Posts: 1,007

Re: menu text file autostart

9menu "gksu bleachbit" "urxvt -e mocp" pcmanfm audacious

Offline

#19 2014-04-02 17:01:19

0day
#! CrunchBanger
Registered: 2010-02-06
Posts: 190

Re: menu text file autostart

thanks, works fine:

my autostart:
#!/bin/bash

# script to "autostart" wm2

## GNOME PolicyKit and Keyring
eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh,gpg) &

## 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

nitrogen --restore &
conky &
9menu -popdown -label 'wm2 menu' thunar wicd-gtk firefox midori transmission-gtk simple-scan scrot bleachbit "gksu bleachbit" unetbootin "gksu synaptic" geany "terminator -x nano" abiword gnumeric evince "xterm -e sudo halt" &
wm2

Last edited by 0day (2014-04-03 13:48:46)

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.
Server: bleh

Debian Logo