Skip to content

Commit

Permalink
discord: add Wayland wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
dezeroku committed Dec 29, 2023
1 parent 2b7b3f1 commit 193107d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
14 changes: 14 additions & 0 deletions roles/discord/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,17 @@
community.general.pacman:
name:
- discord

- name: Template the desktop file
become: true
become_user: root
ansible.builtin.template:
src: discord-wayland.desktop
dest: /usr/share/applications/discord-wayland.desktop
mode: 0644

- name: Template sway plugin
ansible.builtin.include_role:
name: helper_sway_plugin
vars:
helper_sway_plugin_template_name: discord-plugin
1 change: 1 addition & 0 deletions roles/discord/templates/discord-plugin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
assign [app_id="(?i)discord"] $ws8
11 changes: 11 additions & 0 deletions roles/discord/templates/discord-wayland.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Name=Discord (Wayland)
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
# Enable wayland
Exec=/usr/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland
Icon=discord
Type=Application
Categories=Network;InstantMessaging;
Path=/usr/bin
1 change: 0 additions & 1 deletion roles/sway/templates/config
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ assign [class="(?i)mellowPlayer"] $ws5
assign [class="(?i)virtualBox Manager"] $ws6
assign [class="(?i)zoom"] $ws6

assign [class="(?i)discord"] $ws8
assign [class="(?i)steam"] $ws8
assign [class="(?i)slack"] $ws8

Expand Down

0 comments on commit 193107d

Please sign in to comment.