From 732c2b0240260be9cb34157cda7fba411ec77fc9 Mon Sep 17 00:00:00 2001 From: Hunter Jozwiak Date: Wed, 25 Sep 2024 15:57:46 -0400 Subject: [PATCH 1/2] Sway: when reloading the configuration, don't run the sound script always. I don't think Sway's IPC works the same as it does under I38. It must be running a different one per each reload, but not sure. Regardless, you won't get extra sounds on reload now. --- i38.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/i38.sh b/i38.sh index 4f1c3f6..950b315 100755 --- a/i38.sh +++ b/i38.sh @@ -651,8 +651,12 @@ fi cat << EOF >> ${i3Path}/config # Auto start section -$(if [[ $sounds -eq 0 ]]; then - echo "exec_always --no-startup-id ${i3Path}/scripts/sound.py" +$(if [[ $sounzzds -eq 0 ]]; then + if [[ $usingSway -eq 0 ]]; then + echo "exec --no-startup-id ${i3Path}/scripts/sound.py" + else + echo "exec_always --no-startup-id ${i3Path}/scripts/sound.py" + fi fi if [[ $loginSound -eq 0 ]]; then echo 'exec --no-startup-id canberra-gtk-play -i desktop-login' From 13ba2b6deeec087887f9d39e1db39dd10f3dcc3e Mon Sep 17 00:00:00 2001 From: Hunter Jozwiak Date: Wed, 25 Sep 2024 17:32:52 -0400 Subject: [PATCH 2/2] Support the Flatpak path. Now you can launch your Flatpaks from the I38 menu. --- scripts/menu.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/menu.py b/scripts/menu.py index 3af5f47..31f1268 100755 --- a/scripts/menu.py +++ b/scripts/menu.py @@ -29,8 +29,9 @@ def read_desktop_files(paths): userApplicationsPath = Path.home() / '.local/share/applications' systemApplicationsPath = Path('/usr/share/applications') - -desktopEntries = read_desktop_files([userApplicationsPath, systemApplicationsPath]) +userFlatpakApplicationsPath = Path.home() / '.local/share/flatpak/exports/share/applications' +systemFlatpakApplicationsPath = Path('/var/lib/flatpak/exports/share/applications') +desktopEntries = read_desktop_files([userApplicationsPath, systemApplicationsPath, userFlatpakApplicationsPath, systemFlatpakApplicationsPath]) # Combine some of the categories categoryMap = {