Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 1.22 KB

README.md

File metadata and controls

57 lines (44 loc) · 1.22 KB

Spawtify

A spotify widget for awesome-wm.

screenshot

Usage

Clone the repository in your config file with:

git clone https://github.com/akshat46/spawtify.git

And add following code to your rc.lua:

local spawtify = require("spawtify/spotify_widget")

awful.screen.connect_for_each_screen(function(s)
  ...
  spawtify.widget({
        screen = s, --required
        artwork = true,
    })
  ...
end

Customization

Screen parameter is required. Rest optional parameters are:

spawtify.widget({
  screen = s, --required
  artwork = true, --show artwork
  width = 460, 
  height = 600,
  bg = "#000000", -- background color
  bottom_margin = 225, --[[widget's margin from the bottom edge of 
  the screen (will definitely change later on) ]]--
})

Note: Currently the widget can only be moved to right edge of the screen. Will add more options once I get time.

Icons

All the icons can be changed using following theme variables.

theme.spotify_play_button_icon
theme.spotify_pause_button_icon
theme.spotify_prev_button_icon
theme.spotify_next_button_icon
theme.spotify_icon
theme.spotify_error_icon