fix: SwayFX and Syncthingtray

Circumvents an upstream error that fails the sandbox for SwayFX due to
always requiring DRM device

Fix floating syncthingtray windows not showing due to recent versions
not setting app_id correctly
This commit is contained in:
Swarsel 2024-05-28 23:43:11 +02:00
parent ca08aef2ad
commit 85c3c8b69f
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
10 changed files with 259 additions and 94 deletions

View file

@ -128,7 +128,8 @@
{ command = "nextcloud --background";}
# { command = "spotify";}
{ command = "discord --start-minimized";}
{ command = "element-desktop --hidden";}
# { command = "element-desktop --hidden";}
{ command = "element-desktop --hidden -enable-features=UseOzonePlatform -ozone-platform=wayland --disable-gpu-driver-bug-workarounds";}
{ command = "ANKI_WAYLAND=1 anki";}
{ command = "OBSIDIAN_USE_WAYLAND=1 obsidian";}
{ command = "nm-applet";}

View file

@ -44,6 +44,7 @@
transmission
mktorrent
hexchat
hugo
# kyria
qmk
@ -483,7 +484,7 @@ xdg.desktopEntries = {
element = {
name = "Element Matrix Client";
genericName = "Element";
exec = "element-desktop";
exec = "element-desktop -enable-features=UseOzonePlatform -ozone-platform=wayland --disable-gpu-driver-bug-workarounds";
terminal = false;
categories = [ "Application"];
};
@ -1518,8 +1519,9 @@ group-by=category
wayland.windowManager.sway = {
enable = true;
# package = pkgs.swayfx;
package = pkgs.sway;
checkConfig = false; # delete this line once SwayFX is fixed upstream
package = pkgs.swayfx;
# package = pkgs.sway;
systemd.enable = true;
systemd.xdgAutostart = true;
wrapperFeatures.gtk = true;
@ -1647,6 +1649,7 @@ wayland.windowManager.sway = {
{app_id = "blueman";}
{app_id = "pavucontrol";}
{app_id = "syncthingtray";}
{title = "Syncthing Tray";}
{app_id = "SchildiChat";}
{app_id = "Element";}
{app_id = "com.nextcloud.desktopclient.nextcloud";}
@ -1708,13 +1711,13 @@ wayland.windowManager.sway = {
title="spotifytui";
};
}
{
command = "resize set width 60 ppt height 60 ppt, sticky enable, move container to scratchpad";
criteria = {
app_id="^$";
class="^$";
};
}
# {
# command = "resize set width 60 ppt height 60 ppt, sticky enable, move container to scratchpad";
# criteria = {
# app_id="^$";
# class="^$";
# };
# }
{
command = "resize set width 60 ppt height 60 ppt, sticky enable, move container to scratchpad";
@ -1793,7 +1796,7 @@ wayland.windowManager.sway = {
exec systemctl --user import-environment
${swayfxSettingsOff}
${swayfxSettings}
";
};

View file

@ -104,7 +104,8 @@
{ command = "nextcloud --background";}
# { command = "spotify";}
{ command = "discord --start-minimized";}
{ command = "element-desktop --hidden";}
# { command = "element-desktop --hidden";}
{ command = "element-desktop --hidden -enable-features=UseOzonePlatform -ozone-platform=wayland --disable-gpu-driver-bug-workarounds";}
{ command = "ANKI_WAYLAND=1 anki";}
{ command = "OBSIDIAN_USE_WAYLAND=1 obsidian";}
{ command = "nm-applet";}

View file

@ -117,7 +117,8 @@
{ command = "nextcloud --background";}
# { command = "spotify";}
{ command = "discord --start-minimized";}
{ command = "element-desktop --hidden";}
# { command = "element-desktop --hidden";}
{ command = "element-desktop --hidden -enable-features=UseOzonePlatform -ozone-platform=wayland --disable-gpu-driver-bug-workarounds";}
{ command = "ANKI_WAYLAND=1 anki";}
{ command = "OBSIDIAN_USE_WAYLAND=1 obsidian";}
{ command = "nm-applet";}

View file

@ -84,7 +84,8 @@
{ command = "nextcloud --background";}
# { command = "spotify";}
{ command = "discord --start-minimized";}
{ command = "element-desktop --hidden";}
# { command = "element-desktop --hidden";}
{ command = "element-desktop --hidden -enable-features=UseOzonePlatform -ozone-platform=wayland --disable-gpu-driver-bug-workarounds";}
{ command = "ANKI_WAYLAND=1 anki";}
{ command = "OBSIDIAN_USE_WAYLAND=1 obsidian";}
{ command = "nm-applet";}

View file

@ -91,7 +91,8 @@
{ command = "nextcloud --background";}
# { command = "spotify";}
{ command = "discord --start-minimized";}
{ command = "element-desktop --hidden";}
# { command = "element-desktop --hidden";}
{ command = "element-desktop --hidden -enable-features=UseOzonePlatform -ozone-platform=wayland --disable-gpu-driver-bug-workarounds";}
{ command = "ANKI_WAYLAND=1 anki";}
{ command = "OBSIDIAN_USE_WAYLAND=1 obsidian";}
{ command = "nm-applet";}

View file

@ -117,7 +117,8 @@
{ command = "nextcloud --background";}
# { command = "spotify";}
{ command = "discord --start-minimized";}
{ command = "element-desktop --hidden";}
# { command = "element-desktop --hidden";}
{ command = "element-desktop --hidden -enable-features=UseOzonePlatform -ozone-platform=wayland --disable-gpu-driver-bug-workarounds";}
{ command = "ANKI_WAYLAND=1 anki";}
{ command = "OBSIDIAN_USE_WAYLAND=1 obsidian";}
{ command = "nm-applet";}