mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-11 05:55:29 +00:00
update
This commit is contained in:
@@ -21,6 +21,8 @@ font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
|
|||||||
# chose a FreeType font, such as:
|
# chose a FreeType font, such as:
|
||||||
font pango:Source Code Pro for Powerline, FontAwesome Regular, Icons 12.5
|
font pango:Source Code Pro for Powerline, FontAwesome Regular, Icons 12.5
|
||||||
|
|
||||||
|
new_window 1pixel
|
||||||
|
|
||||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||||
floating_modifier $mod
|
floating_modifier $mod
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ scroll-down = i3wm-wsprev
|
|||||||
|
|
||||||
[bar/example_left]
|
[bar/example_left]
|
||||||
inherit = bar/example
|
inherit = bar/example
|
||||||
monitor = ${env:MONITOR:DVI-D-0}
|
monitor = ${env:MONITOR:DVI-D-1}
|
||||||
modules-left = i3
|
modules-left = i3
|
||||||
modules-center =
|
modules-center =
|
||||||
modules-right = spotify volume filesystem memory cpu gpu date
|
modules-right = spotify volume filesystem memory cpu gpu date
|
||||||
|
|||||||
@@ -6,7 +6,11 @@ try:
|
|||||||
spotify = bus.get_object("org.mpris.MediaPlayer2.spotify", "/org/mpris/MediaPlayer2")
|
spotify = bus.get_object("org.mpris.MediaPlayer2.spotify", "/org/mpris/MediaPlayer2")
|
||||||
spotify_iface = dbus.Interface(spotify, 'org.freedesktop.DBus.Properties')
|
spotify_iface = dbus.Interface(spotify, 'org.freedesktop.DBus.Properties')
|
||||||
props = spotify_iface.Get('org.mpris.MediaPlayer2.Player', 'Metadata')
|
props = spotify_iface.Get('org.mpris.MediaPlayer2.Player', 'Metadata')
|
||||||
print(str(props['xesam:artist'][0]) + " - " + str(props['xesam:title']))
|
try:
|
||||||
|
out = str(props['xesam:artist'][0]) + " - " + str(props['xesam:title'])
|
||||||
|
except IndexError:
|
||||||
|
out = ''
|
||||||
|
print(out)
|
||||||
exit
|
exit
|
||||||
except dbus.exceptions.DBusException:
|
except dbus.exceptions.DBusException:
|
||||||
exit
|
exit
|
||||||
|
|||||||
Reference in New Issue
Block a user