summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2019-09-22 16:45:23 +0300
committerYigit Sever2019-09-22 16:45:23 +0300
commit8153ace86a09d2f09607a730633975006dac35f7 (patch)
tree780d7dbd2b2fdce6c2e839245076a549ae5c4060
parent998384c409ea0a4246d41cc2009629ee1a930f3c (diff)
downloaddotfiles-8153ace86a09d2f09607a730633975006dac35f7.tar.gz
dotfiles-8153ace86a09d2f09607a730633975006dac35f7.tar.bz2
dotfiles-8153ace86a09d2f09607a730633975006dac35f7.zip
Migrate work from mpd to spotify
-rw-r--r--.config/i3/config##desktop.Linux.Lowe8
-rw-r--r--.config/polybar/config##desktop.Linux.Lowe32
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
21floating_modifier $alt 21floating_modifier $alt
22 22
23gaps inner 10 23gaps inner 10
24gaps outer 10 24gaps outer 0
25 25
26############## 26##############
27# bindings # 27# bindings #
@@ -52,9 +52,9 @@ bindsym Print exec flameshot gui
52bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+ && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" 52bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+ && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)"
53bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%- && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" 53bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%- && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)"
54bindsym 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" 54bindsym 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"
55bindsym XF86AudioPlay exec mpc toggle 55bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
56bindsym XF86AudioPrev exec /home/yigit/bin/mpcPrevSong.sh 56bindsym XF86AudioPrev exec --no-startup-id playerctl previous
57bindsym XF86AudioNext exec mpc next 57bindsym XF86AudioNext exec --no-startup-id playerctl next
58 58
59# Make the currently focused window a scratchpad 59# Make the currently focused window a scratchpad
60bindsym $mod+Shift+minus move scratchpad 60bindsym $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
52font-2 = Raleway:size=10;1 52font-2 = Raleway:size=10;1
53font-3 = FuraCode Nerd Font:size=11;2 53font-3 = FuraCode Nerd Font:size=11;2
54 54
55modules-left = i3 pulseaudio 55modules-left = i3 pulseaudio spotify
56modules-center = xwindow 56modules-center = xwindow
57modules-right = focus date time xkeyboard 57modules-right = focus date time xkeyboard
58 58
@@ -63,17 +63,29 @@ type = custom/script
63exec = ~/.config/polybar/focus 63exec = ~/.config/polybar/focus
64interval = 10 64interval = 10
65 65
66format-online = <toggle> <label-song> <icon-random> 66[module/spotify]
67label-song = %artist:0:24:...% - %title:0:24:...% 67type = custom/script
68icon-pause =  68interval = 1
69icon-play =  69; format-prefix = ""
70icon-random = 咽 70format = <label>
71exec = python ./spotify_status.py -f '{play_pause} {artist} - {song}' -p 'playing,paused'
72
73; [module/dpmpd]
74; type = internal/mpd
75; host = 127.0.0.1
76; port = 6600
77
78; format-online = <toggle> <label-song> <icon-random>
79; label-song = %artist:0:24:...% - %title:0:24:...%
80; icon-pause = 
81; icon-play = 
82; icon-random = 咽
71 83
72toggle-on-foreground = ${colors.background_modules} 84; toggle-on-foreground = ${colors.background_modules}
73toggle-off-foreground = ${colors.foreground_modules} 85; toggle-off-foreground = ${colors.foreground_modules}
74 86
75format-offline = <label-offline> 87; format-offline = <label-offline>
76label-offline = mpd is offline 88; label-offline = mpd is offline
77 89
78[module/xwindow] 90[module/xwindow]
79type = internal/xwindow 91type = internal/xwindow