File: pdmenurc

package info (click to toggle)
pdmenu 1.2.85
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 828 kB
  • ctags: 244
  • sloc: sh: 2,770; ansic: 2,032; makefile: 138; perl: 58
file content (26 lines) | stat: -rw-r--r-- 837 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/pdmenu

#Note that the above bang-path isn't required, but it lets you run this
#file directly as a sort of pdmenu script.

#Define the main menu:
menu:main:Main Menu
	# This ties in with Debian's autogenerated Apps menu.
	show:_Debian Menus..::/Debian
	exec:_Change your password:p:passwd
	exec:_Directory listing:display:ls -l
	exec:_Change directory:edit,setenv:echo PWD=~set to?:~
	exec:_Who's online?:truncate:echo "These users are online:";w
	nop
	exit:E_xit

# If you edit this file, you will probably not want to remove the following 
# section, which makes menus of Debian apps available.
preproc: \
	if tty|egrep -q "tty[0-9]|vc/[0-9]|console"; then 	\
		cat /var/lib/pdmenu/pdmenurc.vc;		\
	elif [ "$DISPLAY" ]; then				\
		cat /var/lib/pdmenu/pdmenurc.x11;		\
	else							\
		cat /var/lib/pdmenu/pdmenurc;			\
	fi