diff --git a/.bin/autostart-manage b/.bin/autostart-manage index 6a15dad..6c99d29 100755 --- a/.bin/autostart-manage +++ b/.bin/autostart-manage @@ -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 () { diff --git a/.config/autostart.toml b/.config/autostart.toml index cd54eff..eeab11f 100644 --- a/.config/autostart.toml +++ b/.config/autostart.toml @@ -87,6 +87,7 @@ hosts = ['portalo'] group = '' [apps.swww] +alias = 'wallpaper' command = 'swww init --no-daemon' hosts = [] group = 'wayland' diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 41a6232..32d223d 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -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