Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am pfault on github.
  • I am pfault (https://keybase.io/pfault) on keybase.
  • I have a public key whose fingerprint is 004F BB9E DBFD 8AA7 D8AB 2FA8 2848 8673 711C CD1C

To claim this, I am signing this object:

@pfault
pfault / spotify.lua
Created October 10, 2015 12:42
Spotify control lib for awesome wm
local naughty = require("naughty")
local os = os
module("powerswitch/spotify")
--{{ Spotify control panel
local spotifyid = nil
local function spotifyctl(cmd, title)
os.execute("DISPLAY=:0 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player." .. cmd .. " &")
spotifyid = naughty.notify({ title = "Spotify"

Keybase proof

I hereby claim:

  • I am pfault on github.
  • I am pfault (https://keybase.io/pfault) on keybase.
  • I have a public key whose fingerprint is 2C7F 2357 3430 A537 049F A24C 13E8 8CB7 FDB7 2AB9

To claim this, I am signing this object: