From 8153ace86a09d2f09607a730633975006dac35f7 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 22 Sep 2019 16:45:23 +0300 Subject: Migrate work from mpd to spotify --- .config/i3/config##desktop.Linux.Lowe | 8 ++++---- .config/polybar/config##desktop.Linux.Lowe | 32 ++++++++++++++++++++---------- 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/.config/i3/config##desktop.Linux.Lowe b/.config/i3/config##desktop.Linux.Lowe index 53d9d53..6e0bc8a 100644 --- a/.config/i3/config##desktop.Linux.Lowe +++ b/.config/i3/config##desktop.Linux.Lowe @@ -21,7 +21,7 @@ font pango:Lato 11 floating_modifier $alt gaps inner 10 -gaps outer 10 +gaps outer 0 ############## # bindings # @@ -52,9 +52,9 @@ bindsym Print exec flameshot gui bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+ && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%- && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" bindsym XF86AudioMute exec --no-startup-id "amixer set Master toggle && if amixer get Master | grep -Fq '[off]'; then volnoti-show -m; else volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1); fi" -bindsym XF86AudioPlay exec mpc toggle -bindsym XF86AudioPrev exec /home/yigit/bin/mpcPrevSong.sh -bindsym XF86AudioNext exec mpc next +bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause +bindsym XF86AudioPrev exec --no-startup-id playerctl previous +bindsym XF86AudioNext exec --no-startup-id playerctl next # Make the currently focused window a scratchpad bindsym $mod+Shift+minus move scratchpad diff --git a/.config/polybar/config##desktop.Linux.Lowe b/.config/polybar/config##desktop.Linux.Lowe index 4cc63d7..9251210 100644 --- a/.config/polybar/config##desktop.Linux.Lowe +++ b/.config/polybar/config##desktop.Linux.Lowe @@ -52,7 +52,7 @@ font-1 = Lato:size=10;1 font-2 = Raleway:size=10;1 font-3 = FuraCode Nerd Font:size=11;2 -modules-left = i3 pulseaudio +modules-left = i3 pulseaudio spotify modules-center = xwindow modules-right = focus date time xkeyboard @@ -63,17 +63,29 @@ type = custom/script exec = ~/.config/polybar/focus interval = 10 -format-online = -label-song = %artist:0:24:...% - %title:0:24:...% -icon-pause =  -icon-play =  -icon-random = 咽 +[module/spotify] +type = custom/script +interval = 1 +; format-prefix = "" +format =