• Home
  • Blog
    • Programming
    • Art
    • Recipes
    • Home Automation
    • Life
    • Friday Faves
    • Books
    • Writing
    • Games
    • Web Accessibility
    • Advent of Code
  • Projects
  • GLSL Shader Art
  • Glitch Art

  • Github
  • Bluesky
  • Mastodon
  • Duolingo
  • LinkedIn
  • RSS
  • Bridgy Fed

mary.codes

Web development, art, and tinkering with fun projects. JavaScript, Python, WebGL, GLSL, Rust, Lua, and whatever else I find interesting at the moment.

Spotify Mini From The Command Line

Mary KnizeBlog iconJan 3rd, 2018
1 min read

Programming

How I made a mini Spotify player happen from the MacOS command line.

I like listening to (almost always Disney) Spotify playlists while I work, however, I'm not a huge fan of Spotify's Electron app. I have nothing against Electron apps, but what Spotify doesn't have that I want is a mini mode. I would like to keep a small Spotify window at the bottom of my screen that shows the song name and has playback controls.

After a quick search I found a solution to my problem: create a bash alias for the Mac terminal that will allow me to open up Spotify's web player in an app-like Chrome window.

vim ~/.bash_profile

alias spotify='open -n \/Applications\/Google\ Chrome.app --args --app="https://play.spotify.com"'

Now I can resize the window and put it in the corner of the screen where it's always visible.

I also found a great command line weather service, and gave that an alias as well.

vim ~/.bash_profile

alias weather='curl wttr.in/Orlando'

Other Programming posts

How I'm organizing my work in 2024

Finding the Design Engineer within the Full-Stack Developer

Displaying the current Git branch in my Linux terminal prompt

Generating a 3D map with OpenStreetMap and A-Frame

Translating OpenStreetMap data to HTML5 Canvas with Rust and WebAssembly

Latest posts

I started painting again

100 days of Japanese on Duolingo

How I'm organizing my work in 2024

Watch the documentary 'Good Night Oppy' if you're feeling science-y

Sculpted robo-goldfish, a rainbow office building, and a look inside click farms