mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-23 04:14:33 +02:00
spotify: try to support the new version of Spotify
Use dbus-mediakeys to get an appropriate DBus interface. In future versions, this should not be needed anymore. See: https://github.com/vincentbernat/dbus-mediakeys
This commit is contained in:
parent
86c36c91c6
commit
e3747d1b9f
3 changed files with 66 additions and 46 deletions
|
@ -17,7 +17,9 @@ local execute = {
|
|||
"text/html",
|
||||
-- Default MIME types
|
||||
"xdg-mime default evince.desktop application/pdf",
|
||||
"xdg-mime default gpicview.desktop image/png image/x-apple-ios-png image/jpeg image/jpg image/gif"
|
||||
"xdg-mime default gpicview.desktop image/png image/x-apple-ios-png image/jpeg image/jpg image/gif",
|
||||
-- dbus-mediakeys
|
||||
"dbus-mediakeys &"
|
||||
}
|
||||
|
||||
os.execute(table.concat(execute, ";"))
|
||||
|
|
|
@ -43,6 +43,10 @@ shifty.config.tags = {
|
|||
screen = math.max(screen.count(), 2),
|
||||
icon = tagicon("im"),
|
||||
nopopup = true, -- don't give focus on creation
|
||||
},
|
||||
spotify = {
|
||||
screen = 1,
|
||||
exclusive = true
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -60,6 +64,10 @@ shifty.config.apps = {
|
|||
match = { class = { "Skype", "Pidgin" } },
|
||||
tag = "im",
|
||||
},
|
||||
{
|
||||
match = { class = { "Spotify" } },
|
||||
tag = "spotify"
|
||||
},
|
||||
{
|
||||
match = { config.termclass },
|
||||
startup = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue