Linux Mastering Development

How to define wm class for terminal commands in .desktop files

I’m playing around with .desktop files and ended up with this one: [Desktop Entry] Version=1.0 Name=Music Player (cmus) Comment=Command Line Music Player GenericName=Music Player Exec=cmus Terminal=true X-MultipleArgs=false Type=Application StartupNotify=false Everything is working so far. Now I’m also using i3wm and wanna assign the application to a specific workspace. That’s my current configuration: assign [class=”^cmus.*$”] 5: […]