All Projects → akshat46 → spawtify

akshat46 / spawtify

Licence: other
A spotify widget for awesome-wm.

Programming Languages

lua
6591 projects
shell
77523 projects

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].