From 97523556858b01cdbbe4ace506c4bf135ee5204d Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Tue, 20 May 2025 20:40:31 +0200 Subject: [PATCH] feat: add autostart configurations and ignition delay scripts for various applications --- config/ansible/tasks/global/symlinks.yml | 1 + config/autostart/1password.desktop | 11 +++++++++ config/autostart/1password.ignition_delay.sh | 2 ++ config/autostart/com.rtosta.zapzap.desktop | 18 +++++++++++++++ .../com.rtosta.zapzap.ignition_delay.sh | 2 ++ config/autostart/com.spotify.Client.desktop | 15 ++++++++++++ .../com.spotify.Client.ignition_delay.sh | 2 ++ .../io.github.equicord.equibop.desktop | 16 +++++++++++++ ....github.equicord.equibop.ignition_delay.sh | 2 ++ .../autostart/org.fkoehler.KTailctl.desktop | 11 +++++++++ .../org.fkoehler.KTailctl.ignition_delay.sh | 2 ++ config/autostart/org.signal.Signal.desktop | 14 +++++++++++ .../org.signal.Signal.ignition_delay.sh | 2 ++ config/autostart/org.telegram.desktop.desktop | 23 +++++++++++++++++++ .../org.telegram.ignition_delay.sh.desktop | 2 ++ 15 files changed, 123 insertions(+) create mode 100644 config/autostart/1password.desktop create mode 100755 config/autostart/1password.ignition_delay.sh create mode 100644 config/autostart/com.rtosta.zapzap.desktop create mode 100755 config/autostart/com.rtosta.zapzap.ignition_delay.sh create mode 100644 config/autostart/com.spotify.Client.desktop create mode 100755 config/autostart/com.spotify.Client.ignition_delay.sh create mode 100644 config/autostart/io.github.equicord.equibop.desktop create mode 100755 config/autostart/io.github.equicord.equibop.ignition_delay.sh create mode 100644 config/autostart/org.fkoehler.KTailctl.desktop create mode 100755 config/autostart/org.fkoehler.KTailctl.ignition_delay.sh create mode 100644 config/autostart/org.signal.Signal.desktop create mode 100755 config/autostart/org.signal.Signal.ignition_delay.sh create mode 100644 config/autostart/org.telegram.desktop.desktop create mode 100755 config/autostart/org.telegram.ignition_delay.sh.desktop diff --git a/config/ansible/tasks/global/symlinks.yml b/config/ansible/tasks/global/symlinks.yml index de68da8..01ce476 100644 --- a/config/ansible/tasks/global/symlinks.yml +++ b/config/ansible/tasks/global/symlinks.yml @@ -16,6 +16,7 @@ - { src: "$DOTFILES_PATH/config/ssh/config.d", dest: "~/.ssh/config.d" } - { src: "$DOTFILES_PATH/config/starship.toml", dest: "~/.config/starship.toml" } - { src: "$DOTFILES_PATH/.bashrc", dest: "~/.bashrc.extra" } + - { src: "$DOTFILES_PATH/config/autostart", dest: "~/.config/autostart" } - name: Create gitconfig symlink ansible.builtin.file: diff --git a/config/autostart/1password.desktop b/config/autostart/1password.desktop new file mode 100644 index 0000000..1473349 --- /dev/null +++ b/config/autostart/1password.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=1Password +Exec=/home/menno/.config/autostart/1password.ignition_delay.sh +Terminal=false +Type=Application +Icon=1password +StartupWMClass=1Password +Comment=Password manager and secure wallet +MimeType=x-scheme-handler/onepassword;x-scheme-handler/onepassword8; +Categories=Office; +Hidden=false diff --git a/config/autostart/1password.ignition_delay.sh b/config/autostart/1password.ignition_delay.sh new file mode 100755 index 0000000..75e278d --- /dev/null +++ b/config/autostart/1password.ignition_delay.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +sleep 3 && /opt/1Password/1password %U diff --git a/config/autostart/com.rtosta.zapzap.desktop b/config/autostart/com.rtosta.zapzap.desktop new file mode 100644 index 0000000..69773f3 --- /dev/null +++ b/config/autostart/com.rtosta.zapzap.desktop @@ -0,0 +1,18 @@ +[Desktop Entry] +Version=1.0 +Name=ZapZap +Comment[pt_BR]=Whatsapp Desktop para Linux +Comment=Whatsapp Desktop for Linux +Exec=/home/menno/.config/autostart/com.rtosta.zapzap.ignition_delay.sh +Icon=com.rtosta.zapzap +Type=Application +Categories=Chat;Network;InstantMessaging;Qt; +Keywords=Whatsapp;Chat;ZapZap; +StartupWMClass=zapzap +MimeType=x-scheme-handler/whatsapp +Terminal=false +SingleMainWindow=true +X-GNOME-UsesNotifications=true +X-GNOME-SingleWindow=true +X-Flatpak=com.rtosta.zapzap +Hidden=false diff --git a/config/autostart/com.rtosta.zapzap.ignition_delay.sh b/config/autostart/com.rtosta.zapzap.ignition_delay.sh new file mode 100755 index 0000000..549ff4b --- /dev/null +++ b/config/autostart/com.rtosta.zapzap.ignition_delay.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +sleep 7 && /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=zapzap --file-forwarding com.rtosta.zapzap @@u %u @@ diff --git a/config/autostart/com.spotify.Client.desktop b/config/autostart/com.spotify.Client.desktop new file mode 100644 index 0000000..e0781aa --- /dev/null +++ b/config/autostart/com.spotify.Client.desktop @@ -0,0 +1,15 @@ +[Desktop Entry] +Type=Application +Name=Spotify +GenericName=Music Player +Icon=com.spotify.Client +Exec=/home/menno/.config/autostart/com.spotify.Client.ignition_delay.sh +Terminal=false +MimeType=x-scheme-handler/spotify; +Categories=Audio;Music;Player;AudioVideo; +StartupWMClass=spotify +X-GNOME-UsesNotifications=true +X-Flatpak-Tags=proprietary; +X-Flatpak=com.spotify.Client +Hidden=false +Comment= diff --git a/config/autostart/com.spotify.Client.ignition_delay.sh b/config/autostart/com.spotify.Client.ignition_delay.sh new file mode 100755 index 0000000..1fe443e --- /dev/null +++ b/config/autostart/com.spotify.Client.ignition_delay.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +sleep 6 && /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=spotify --file-forwarding com.spotify.Client @@u %U @@ diff --git a/config/autostart/io.github.equicord.equibop.desktop b/config/autostart/io.github.equicord.equibop.desktop new file mode 100644 index 0000000..0b189f8 --- /dev/null +++ b/config/autostart/io.github.equicord.equibop.desktop @@ -0,0 +1,16 @@ +[Desktop Entry] +Name=Equibop +Exec=/home/menno/.config/autostart/io.github.equicord.equibop.ignition_delay.sh +Terminal=false +Type=Application +Icon=io.github.equicord.equibop +StartupWMClass=Equibop +X-AppImage-Version=2.1.4 +GenericName=Internet Messenger +Categories=Network; +Keywords=discord;equibop;vesktop;vencord;equicord;electron;chat; +MimeType=x-scheme-handler/discord; +Comment=A fork of Vesktop pre-packaged with Equicord +X-Desktop-File-Install-Version=0.28 +X-Flatpak=io.github.equicord.equibop +Hidden=false diff --git a/config/autostart/io.github.equicord.equibop.ignition_delay.sh b/config/autostart/io.github.equicord.equibop.ignition_delay.sh new file mode 100755 index 0000000..57fab3f --- /dev/null +++ b/config/autostart/io.github.equicord.equibop.ignition_delay.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +sleep 4 && /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=startequibop io.github.equicord.equibop diff --git a/config/autostart/org.fkoehler.KTailctl.desktop b/config/autostart/org.fkoehler.KTailctl.desktop new file mode 100644 index 0000000..4690af0 --- /dev/null +++ b/config/autostart/org.fkoehler.KTailctl.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=KTailctl +Comment=GUI for tailscale on the KDE Plasma desktop +Version=1.5 +Exec=/home/menno/.config/autostart/org.fkoehler.KTailctl.ignition_delay.sh +Icon=org.fkoehler.KTailctl +Type=Application +Terminal=false +Categories=Qt;KDE;System; +X-Flatpak=org.fkoehler.KTailctl +Hidden=false diff --git a/config/autostart/org.fkoehler.KTailctl.ignition_delay.sh b/config/autostart/org.fkoehler.KTailctl.ignition_delay.sh new file mode 100755 index 0000000..ee33c27 --- /dev/null +++ b/config/autostart/org.fkoehler.KTailctl.ignition_delay.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +sleep 5 && /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=ktailctl org.fkoehler.KTailctl diff --git a/config/autostart/org.signal.Signal.desktop b/config/autostart/org.signal.Signal.desktop new file mode 100644 index 0000000..986eec7 --- /dev/null +++ b/config/autostart/org.signal.Signal.desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +Name=Signal +Exec=/home/menno/.config/autostart/org.signal.Signal.ignition_delay.sh +Terminal=false +Type=Application +Icon=org.signal.Signal +StartupWMClass=Signal +Comment=Private messaging from your desktop +MimeType=x-scheme-handler/sgnl;x-scheme-handler/signalcaptcha; +Categories=Network;InstantMessaging;Chat; +X-Desktop-File-Install-Version=0.28 +X-Flatpak-RenamedFrom=signal-desktop.desktop; +X-Flatpak=org.signal.Signal +Hidden=false diff --git a/config/autostart/org.signal.Signal.ignition_delay.sh b/config/autostart/org.signal.Signal.ignition_delay.sh new file mode 100755 index 0000000..306f802 --- /dev/null +++ b/config/autostart/org.signal.Signal.ignition_delay.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +sleep 2 && /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=signal-desktop --file-forwarding org.signal.Signal @@u %U @@ diff --git a/config/autostart/org.telegram.desktop.desktop b/config/autostart/org.telegram.desktop.desktop new file mode 100644 index 0000000..3e546f8 --- /dev/null +++ b/config/autostart/org.telegram.desktop.desktop @@ -0,0 +1,23 @@ +[Desktop Entry] +Name=Telegram +Comment=New era of messaging +Exec=/home/menno/.config/autostart/org.telegram.ignition_delay.sh.desktop +Icon=org.telegram.desktop +Terminal=false +StartupWMClass=TelegramDesktop +Type=Application +Categories=Chat;Network;InstantMessaging;Qt; +MimeType=x-scheme-handler/tg;x-scheme-handler/tonsite; +Keywords=tg;chat;im;messaging;messenger;sms;tdesktop; +Actions=quit; +DBusActivatable=false +SingleMainWindow=true +X-GNOME-UsesNotifications=true +X-GNOME-SingleWindow=true +X-Flatpak=org.telegram.desktop +Hidden=false + +[Desktop Action quit] +Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=telegram-desktop org.telegram.desktop -quit +Name=Quit Telegram +Icon=application-exit diff --git a/config/autostart/org.telegram.ignition_delay.sh.desktop b/config/autostart/org.telegram.ignition_delay.sh.desktop new file mode 100755 index 0000000..ceb25b4 --- /dev/null +++ b/config/autostart/org.telegram.ignition_delay.sh.desktop @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +sleep 1 && /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=telegram-desktop --file-forwarding org.telegram.desktop -- @@u %u @@