teams-for-linux icon indicating copy to clipboard operation
teams-for-linux copied to clipboard

Set status message from command line

Open sarvasana opened this issue 1 year ago • 5 comments

Is your feature request related to a problem? Please describe. No, it is not related to a problem.

Describe the solution you'd like I would like to be able to set my teams status from the command line. This saves me from opening the application. It also allows me to pipe status information from other apps to teams. It would be great if this feature could be used even while teams is already running. If the feature is used when teams is already running, no other visual teams instance will appear. The teams instance used for setting the status will set the status and terminate.

Describe alternatives you've considered There is no alternative found.

Additional context The commands could look like this:

teams --set-status "having lunch" --clear-after 1h teams --set-status "playing: the weeknd - blinding lights" --emoji 1f929

Pseudo Pipe examples: mprisctl current | xargs -I{} teams --set-status "playing: {}" build_status | xargs -I{} teams --set-status "build: {}" task current | xargs -I{} teams --set-status "working on: {}" calendarctl next | xargs -I{} teams --set-status "next meeting: {}" batteryctl status | xargs -I{} teams --set-status "battery: {}" weatherctl current | xargs -I{} teams --set-status "weather: {}" uptime | awk '{print $10}' | xargs -I{} teams --set-status "load average: {}" pomodoroctl status | xargs -I{} teams --set-status "pomodoro: {}" git rev-parse --abbrev-ref HEAD | xargs -I{} teams --set-status "working on branch: {}" docker ps --filter "status=running" --format "{{.Names}}" | xargs -I{} teams --set-status "containers running: {}" vpnctl status | xargs -I{} teams --set-status "VPN: {}"

You get the picture!

sarvasana avatar Jun 13 '24 19:06 sarvasana

can you use the "feature request" template? Thanks

IsmaelMartinez avatar Jun 14 '24 08:06 IsmaelMartinez

I updated the contents.

sarvasana avatar Jun 14 '24 17:06 sarvasana

I had a wee look and it doesn't seem to be that easy. The side effect is an authenticated call to https://presence.teams.microsoft.com/v1/me/publishnote using a jwt.

I suspect this is going to be pretty complex but maybe someone can have a dig around and see if they find something.

IsmaelMartinez avatar Jun 15 '24 07:06 IsmaelMartinez

maybe this could be done by using powerautomate.

IsmaelMartinez avatar Aug 24 '24 08:08 IsmaelMartinez

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Oct 16 '24 08:10 github-actions[bot]

Oh yes, a way to change the status (and status message) of a running TFL from the command-line (and when starting), please!

wwp avatar Mar 25 '25 10:03 wwp

Hi @wwp, extremely difficult for us to add that (as far as I am aware). I would suggest trying powerautomate (or workflows) that are "ok" and should give you this sort of features with a few clicks.

IsmaelMartinez avatar Mar 25 '25 20:03 IsmaelMartinez