From 1d2b1286b3c78ed8a38e4f72852f4e3e2099692d Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 3 Mar 2025 11:10:04 +0100 Subject: [PATCH] force apps to run on native wayland --- .config/hypr/conf.d/windowrules.conf | 8 ++++---- .config/hypr/hyprland.conf | 4 ++-- .local/share/applications/discord.desktop | 11 +++++++++++ .local/share/applications/signal-desktop.desktop | 13 +++++++++++++ 4 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 .local/share/applications/discord.desktop create mode 100644 .local/share/applications/signal-desktop.desktop diff --git a/.config/hypr/conf.d/windowrules.conf b/.config/hypr/conf.d/windowrules.conf index f59540a..3952218 100644 --- a/.config/hypr/conf.d/windowrules.conf +++ b/.config/hypr/conf.d/windowrules.conf @@ -1,9 +1,9 @@ windowrulev2 = float,class:(org.gnome.Nautilus) windowrulev2 = float,class:(org.gnome.Calculator) -windowrulev2 = float,class:(org.telegram.desktop|Signal) -windowrulev2 = pin,class:(org.telegram.desktop|Signal) -windowrulev2 = size 15% 70%,class:(org.telegram.desktop|Signal) -windowrulev2 = move 83% 15%,class:(org.telegram.desktop|Signal) +windowrulev2 = float,class:(org.telegram.desktop|signal) +windowrulev2 = pin,class:(org.telegram.desktop|signal) +windowrulev2 = size 15% 70%,class:(org.telegram.desktop|signal) +windowrulev2 = move 83% 15%,class:(org.telegram.desktop|signal) windowrulev2 = float,title:(DevTools) windowrulev2 = size 35% 50%,title:(DevTools) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 0493b48..981a885 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -23,7 +23,7 @@ source = ~/.config/hypr/conf.d/theme.conf ################ # See https://wiki.hyprland.org/Configuring/Monitors/ -monitor=DP-3,3440x1440@144, 0x0, 1 +monitor=DP-3,3440x1440@144, 0x0, auto, bitdepth, 10 ################### ### MY PROGRAMS ### @@ -52,7 +52,7 @@ exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CUR exec-once = hyprpaper & hyprpanel exec-once = flatpak run com.core447.StreamController -b #steam-deck app -exec-once = discord & thunderbird +exec-once = thunderbird & discord --enable-features=UseOzonePlatform --ozone-platform=wayland # Source a file (multi-file configs) diff --git a/.local/share/applications/discord.desktop b/.local/share/applications/discord.desktop new file mode 100644 index 0000000..5ad6d75 --- /dev/null +++ b/.local/share/applications/discord.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=Discord +StartupWMClass=discord +Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone. +GenericName=Internet Messenger +Exec=/usr/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland +Icon=discord +Type=Application +Categories=Network;InstantMessaging; +Path=/usr/bin +MimeType=x-scheme-handler/betterdiscord; diff --git a/.local/share/applications/signal-desktop.desktop b/.local/share/applications/signal-desktop.desktop new file mode 100644 index 0000000..4fc5e05 --- /dev/null +++ b/.local/share/applications/signal-desktop.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Type=Application +Name=Signal +Comment=Signal - Private Messenger +Comment[de]=Signal - Sicherer Messenger +Icon=signal-desktop +Exec=signal-desktop --enable-features=UseOzonePlatform --ozone-platform=wayland -- %u +Terminal=false +Categories=Network;InstantMessaging; +StartupWMClass=signal +MimeType=x-scheme-handler/sgnl;x-scheme-handler/signalcaptcha; +Keywords=sgnl;chat;im;messaging;messenger;security;privat; +X-GNOME-UsesNotifications=true