Add alias to autostart script

This commit is contained in:
Tobias Reisinger 2023-07-27 16:05:15 +02:00
parent f3b67ca2e9
commit de0663730c
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 4 additions and 2 deletions

View file

@ -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 () {

View file

@ -87,6 +87,7 @@ hosts = ['portalo']
group = ''
[apps.swww]
alias = 'wallpaper'
command = 'swww init --no-daemon'
hosts = []
group = 'wayland'

View file

@ -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