Add alias to autostart script
This commit is contained in:
parent
f3b67ca2e9
commit
de0663730c
3 changed files with 4 additions and 2 deletions
|
@ -16,7 +16,7 @@ _query_autostart_toml() {
|
|||
}
|
||||
|
||||
_list () {
|
||||
_query_autostart_toml '.key'
|
||||
_query_autostart_toml '.value.alias // .key'
|
||||
}
|
||||
|
||||
_echo_table () {
|
||||
|
@ -64,7 +64,7 @@ _autostart_manage_sync () {
|
|||
}
|
||||
|
||||
_get_autostart_cmd () {
|
||||
_query_autostart_toml 'select(.key == "'"$1"'") | .value.command'
|
||||
_query_autostart_toml 'select((.key == "'"$1"'") or (.value.alias == "'"$1"'")) | .value.command'
|
||||
}
|
||||
|
||||
_autostart_manage_exec () {
|
||||
|
|
|
@ -87,6 +87,7 @@ hosts = ['portalo']
|
|||
group = ''
|
||||
|
||||
[apps.swww]
|
||||
alias = 'wallpaper'
|
||||
command = 'swww init --no-daemon'
|
||||
hosts = []
|
||||
group = 'wayland'
|
||||
|
|
|
@ -9,4 +9,5 @@ source = ~/.config/hypr/vars.conf
|
|||
source = ~/.config/hypr/binds.conf
|
||||
source = ~/.config/hypr/rules.conf
|
||||
|
||||
exec-once = autostart-manage start wallpaper
|
||||
exec-once = autostart-manage run-wayland
|
||||
|
|
Loading…
Reference in a new issue