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:π΅ Unfortunately the class is not set, as it is not defined yet.
It is working pretty well for other applications which accept an argument, e.g. Firefox:
[Desktop Entry] Version=1.0 Name=Twitter Profile - Firefox Comment=Browse the World Wide Web GenericName=Web Browser Keywords=Internet;WWW;Browser;Web;Explorer Exec=firefox --class="Firefox Social Media" -P "Social Media" %u Terminal=false X-MultipleArgs=false Type=Application Icon=firefox With i3wm config:
assign [class="^Firefox Social Media$"] 10:π Can someone tell me how to define the wm class for .desktop entries starting in a terminal? I couldn't find anything.