[PR #844] [MERGED] Add option to set window title to "spt - Spotify TUI" on startup #1051

Closed
opened 2026-02-28 14:54:17 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Rigellute/spotify-tui/pull/844
Author: @diegov
Created: 7/29/2021
Status: Merged
Merged: 10/1/2021
Merged by: @Rigellute

Base: masterHead: set_window_title_on_startup


📝 Commits (1)

  • 2d44ef6 Add option to set window title to "spt - Spotify TUI" on startup

📊 Changes

3 files changed (+18 additions, -2 deletions)

View changed files

📝 README.md (+2 -0)
📝 src/main.rs (+9 -2)
📝 src/user_config.rs (+7 -0)

📄 Description

This adds an option to set the window title to "Spotify TUI" on startup.

This is very handy when switching windows via something like dmenu, since it makes the terminal window where spotify-tui is running easy to find.

There are a few choices that I wasn't sure about though:

  • I've added the configuration option under "behavior", is there a better place for it?
  • I've set it to enabled by default, since it's a very well supported xterm feature so it shouldn't cause problems for most people. Should it default to false to maintain existing behavior on upgrade?
  • Since the binary is called spt, i've set the title to "spt - Spotify TUI", in case people want to locate the window by the name of the command they used to start the application. But just "Spotify TUI" is probably nicer and maybe locating the window by spt is not enough to justify messing with it?

Thanks!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Rigellute/spotify-tui/pull/844 **Author:** [@diegov](https://github.com/diegov) **Created:** 7/29/2021 **Status:** ✅ Merged **Merged:** 10/1/2021 **Merged by:** [@Rigellute](https://github.com/Rigellute) **Base:** `master` ← **Head:** `set_window_title_on_startup` --- ### 📝 Commits (1) - [`2d44ef6`](https://github.com/Rigellute/spotify-tui/commit/2d44ef68653aba47059342cc7ab1e4768562c82b) Add option to set window title to "spt - Spotify TUI" on startup ### 📊 Changes **3 files changed** (+18 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+2 -0) 📝 `src/main.rs` (+9 -2) 📝 `src/user_config.rs` (+7 -0) </details> ### 📄 Description This adds an option to set the window title to "Spotify TUI" on startup. This is very handy when switching windows via something like dmenu, since it makes the terminal window where spotify-tui is running easy to find. There are a few choices that I wasn't sure about though: - I've added the configuration option under "behavior", is there a better place for it? - I've set it to enabled by default, since it's a very well supported xterm feature so it shouldn't cause problems for most people. Should it default to false to maintain existing behavior on upgrade? - Since the binary is called spt, i've set the title to "spt - Spotify TUI", in case people want to locate the window by the name of the command they used to start the application. But just "Spotify TUI" is probably nicer and maybe locating the window by spt is not enough to justify messing with it? Thanks! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 14:54:17 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-tui#1051
No description provided.