Add systemd based autostart system
This commit is contained in:
parent
0c17b6454a
commit
e1ef91b696
5 changed files with 87 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
_dote_completions()
|
||||
{
|
||||
if [ "${#COMP_WORDS[@]}" != "2" ]; then
|
||||
if [ "${#COMP_WORDS[@]}" == "1" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
|
@ -13,3 +13,17 @@ _dote_completions()
|
|||
done < <(compgen -W "$(.e -l)" "${COMP_WORDS[1]}")
|
||||
}
|
||||
complete -F _dote_completions ".e"
|
||||
|
||||
_autostart_manage_completions()
|
||||
{
|
||||
if [ "${#COMP_WORDS[@]}" == "2" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
COMPREPLY=()
|
||||
while IFS='' read -r line
|
||||
do
|
||||
COMPREPLY+=("$line")
|
||||
done < <(compgen -W "$(autostart-manage list)" "${COMP_WORDS[1]}")
|
||||
}
|
||||
complete -F _autostart_manage_completions "autostart-manage"
|
||||
|
|
5
.config/systemd/user/autostart.target
Normal file
5
.config/systemd/user/autostart.target
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Unit]
|
||||
Description=Current graphical user session
|
||||
Documentation=man:systemd.special(7)
|
||||
RefuseManualStart=no
|
||||
StopWhenUnneeded=no
|
Loading…
Add table
Add a link
Reference in a new issue