71 lines
2.2 KiB
Bash
71 lines
2.2 KiB
Bash
#!/bin/bash
|
|
#
|
|
# Example config file for cdm(1).
|
|
# Values set here is the default as in cdm(1).
|
|
|
|
# List of programs, commands with whitespaces should be quoted or escaped.
|
|
# If unset, all sessions in /etc/X11/Sessions or /usr/share/xsessions are
|
|
# offered as choices.
|
|
#
|
|
# (An example:)
|
|
binlist=(
|
|
#'~/.config/cdm/dwm-cdm' # Launch dwm,
|
|
'startx ~/.config/cdm/dwm-xinit' # Launch dwm,
|
|
'startx ~/.config/cdm/gnome-cdm' # Launch guh-nome desktop,
|
|
'startx ~/.config/cdm/mate-xinit' # Launch mate desktop,
|
|
'/bin/bash --login' # Execute your Shell,
|
|
'reboot' # Reboot
|
|
'shutdown 0' # Shutdown
|
|
)
|
|
|
|
# List all program display names, one-by-one matched with $binlist.
|
|
# Names with whitespaces should be quoted or escaped.
|
|
#
|
|
# (Continued example:)
|
|
namelist=('dwm' 'gnome' 'MATE' 'Console' 'Reboot' 'Shutdown')
|
|
|
|
# Type of the programs, one-by-one matched with $binlist.
|
|
# `C' for *C*onsole programs, which would be `exec'ed.
|
|
# `X' for *X* programs, which would be run with cdm-xlaunch(1).
|
|
#
|
|
# (Continued example:)
|
|
flaglist=(C C C C C C)
|
|
|
|
# Style for the cdm dialog, which is printed with dialog(1).
|
|
# Default to unset, causing dialog(1) to use the system wide default.
|
|
# See /usr/share/doc/cdm/themes for some nice choices.
|
|
dialogrc=/usr/share/doc/cdm/themes/blackandwhite
|
|
|
|
# Index of the first item in the menu.
|
|
countfrom=0
|
|
|
|
# Set default display.
|
|
display=0
|
|
|
|
# Where should the first X tty be spawned?
|
|
# special value `keep' causes to run X in current tty.
|
|
xtty=1
|
|
|
|
# Should cdm(1) stick to the specified display?
|
|
locktty=no
|
|
|
|
# Use ConsoleKit for X session?
|
|
consolekit=yes
|
|
|
|
# Timeout for waiting for X session to register with ConsoleKit.
|
|
cktimeout=30
|
|
|
|
# Additional arguments to pass to X server, which is usually called as:
|
|
# /usr/bin/X :$display "${serverargs[@]}" vt$((xtty+display))
|
|
# Arguments with whitespaces should be quoted or escaped.
|
|
serverargs=(-nolisten tcp)
|
|
|
|
# Alternative method of calling startx(/setsid). Should only be set if cdm
|
|
# does not start X as expected (bash -x shows call to setsid startx, but for
|
|
# no apparent reason does not start X).
|
|
# Only provided in the hope it may be useful, not a guaranteed fix.
|
|
altstartx=no
|
|
|
|
# Destination for stdout and stderr output from startx.
|
|
startxlog=/dev/null
|