71 |
mecho "get fluxbox.autostart" |
mecho "get fluxbox.autostart" |
72 |
mecho " Shows all custom added autostarts of fluxbox." |
mecho " Shows all custom added autostarts of fluxbox." |
73 |
mecho |
mecho |
74 |
mecho "set fluxbox.autostart [action] [name] [exec] [comment]" |
mecho "set fluxbox.autostart [action] [name] [exec]" |
75 |
mecho " Adds or deletes a fluxbox autostart entry." |
mecho " Adds or deletes a fluxbox autostart entry." |
76 |
mecho " Actions:" |
mecho " Actions:" |
77 |
mecho " add - adds an autostart entry" |
mecho " add - adds an autostart entry" |
79 |
mecho |
mecho |
80 |
mecho " name - autostart entry name" |
mecho " name - autostart entry name" |
81 |
mecho " exec - executable to start" |
mecho " exec - executable to start" |
|
mecho " comment - comment about this autostart - optional" |
|
82 |
mecho |
mecho |
83 |
mecho " If no [name] given, all entries will be deleted." |
mecho " If no [name] given, all entries will be deleted." |
84 |
} |
} |
85 |
|
|
86 |
# set_fluxbox_autostart $name $exec $comment |
# set_fluxbox_autostart $name $exec |
87 |
set_fluxbox_autostart() |
set_fluxbox_autostart() |
88 |
{ |
{ |
89 |
local action="${CLASS_ARGV[0]}" |
local action="${CLASS_ARGV[0]}" |
90 |
local name="${CLASS_ARGV[1]}" |
local name="${CLASS_ARGV[1]}" |
91 |
local exec="${CLASS_ARGV[2]}" |
local exec="${CLASS_ARGV[2]}" |
|
local comment="${CLASS_ARGV[3]}" |
|
92 |
local CONFIG |
local CONFIG |
93 |
|
|
94 |
[[ -z ${action} ]] && help_fluxbox_autostart && return 1 |
[[ -z ${action} ]] && help_fluxbox_autostart && return 1 |
97 |
add) |
add) |
98 |
[[ -z ${name} ]] && help_fluxbox_autostart && return 1 |
[[ -z ${name} ]] && help_fluxbox_autostart && return 1 |
99 |
[[ -z ${exec} ]] && help_fluxbox_autostart && return 1 |
[[ -z ${exec} ]] && help_fluxbox_autostart && return 1 |
100 |
${MCORE_LIBDIR}/fluxbox-autostart --add --name "${name}" --exec "${exec}" --comment "${comment}" |
${MCORE_LIBDIR}/fluxbox-autostart --add --name "${name}" --exec "${exec}" |
101 |
;; |
;; |
102 |
del) |
del) |
103 |
if [[ -n ${name} ]] |
if [[ -n ${name} ]] |