From 9675be0beb82decf37b036b1a12e1a7303a584d6 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 7 Apr 2020 18:33:31 +0300 Subject: focus script uses my name --- .config/polybar/focus | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/polybar') diff --git a/.config/polybar/focus b/.config/polybar/focus index fdf2f30..f375cc3 100755 --- a/.config/polybar/focus +++ b/.config/polybar/focus @@ -1,6 +1,6 @@ #!/usr/bin/env perl # shows active taskwarrior task on polybar -#Copyright © 2019 yourname +#Copyright © 2019 yigit #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by -- cgit v1.2.3-70-g09d2 From b4c2f14d3fc9bae8f45ec8ee3f059c9842cc70b9 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 7 Apr 2020 18:35:58 +0300 Subject: focus can be stopped --- .config/polybar/config##c.desktop,h.Maus | 1 + .taskrc##c.desktop,h.Maus | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to '.config/polybar') diff --git a/.config/polybar/config##c.desktop,h.Maus b/.config/polybar/config##c.desktop,h.Maus index d074d43..46683f3 100644 --- a/.config/polybar/config##c.desktop,h.Maus +++ b/.config/polybar/config##c.desktop,h.Maus @@ -62,6 +62,7 @@ tray-position = right [module/focus] type = custom/script exec = ~/.config/polybar/focus +double-click-left = exec ~/.config/polybar/stop & interval = 10 [module/spotify] diff --git a/.taskrc##c.desktop,h.Maus b/.taskrc##c.desktop,h.Maus index d6e0a23..260d079 100644 --- a/.taskrc##c.desktop,h.Maus +++ b/.taskrc##c.desktop,h.Maus @@ -62,11 +62,17 @@ report.todoConky.filter = status:pending and due.after:now and due.before:l report.todoConky.dateformat = D-M-y H:N (A) ### report for focus script -report.custom_focus.columns = description -report.custom_focus.labels = Description +report.custom_focus.columns = description,start.age +report.custom_focus.labels = Description,active report.custom_focus.description = Task to feed to focus script report.custom_focus.filter = status:pending and +ACTIVE +### report for stopping the focused task +report.custom_stop.columns = id +report.custom_stop.labels = ID +report.custom_stop.description = Task id to feed to stop script +report.custom_stop.filter = status:pending and +ACTIVE + ### contexts context.home = +@home or +@online context.work = +@work or +@online -- cgit v1.2.3-70-g09d2 From 87b1be15d5967c144c2605d9475b1e63f4164aec Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 26 Apr 2020 01:59:55 +0300 Subject: polybar uses scientifica again --- .config/polybar/config##c.desktop,h.Maus | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '.config/polybar') diff --git a/.config/polybar/config##c.desktop,h.Maus b/.config/polybar/config##c.desktop,h.Maus index 46683f3..75d7f6e 100644 --- a/.config/polybar/config##c.desktop,h.Maus +++ b/.config/polybar/config##c.desktop,h.Maus @@ -48,17 +48,20 @@ border-bottom-color = ${colors.background} padding = 2 module-margin = 1 -font-0 = Cozette:antialias=false;2 +font-0 = scientifica:antialias=false;1 font-1 = Lato:size=10;1 font-2 = Raleway:size=10;1 font-3 = FuraCode Nerd Font:size=12;2 modules-left = i3 pulseaudio-control spotify modules-center = xwindow -modules-right = focus date time xkeyboard +modules-right = cpu focus date time xkeyboard tray-position = right +[module/cpu] +type = internal/cpu + [module/focus] type = custom/script exec = ~/.config/polybar/focus -- cgit v1.2.3-70-g09d2 From 9f0c652e8a668782987c68f38bf56b7ff52fea9e Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 6 May 2020 16:27:16 +0300 Subject: using mpd again --- .config/polybar/config##c.desktop,h.Maus | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to '.config/polybar') diff --git a/.config/polybar/config##c.desktop,h.Maus b/.config/polybar/config##c.desktop,h.Maus index 75d7f6e..eca6920 100644 --- a/.config/polybar/config##c.desktop,h.Maus +++ b/.config/polybar/config##c.desktop,h.Maus @@ -53,7 +53,7 @@ font-1 = Lato:size=10;1 font-2 = Raleway:size=10;1 font-3 = FuraCode Nerd Font:size=12;2 -modules-left = i3 pulseaudio-control spotify +modules-left = i3 pulseaudio-control spotify mpd modules-center = xwindow modules-right = cpu focus date time xkeyboard @@ -80,22 +80,20 @@ format-padding = 0 exec = python /home/yigit/.config/polybar/spotify_status.py -f '{play_pause} {artist} - {song}' -p ' , ' ;契 -; [module/mpd] -; type = internal/mpd -; host = 127.0.0.1 -; port = 6600 +[module/mpd] +type = internal/mpd -; format-online = -; label-song = %artist% - %title% -; icon-pause =  -; icon-play =  -; icon-random = 咽 +format-online = +label-song = %artist% - %title% +icon-pause =  +icon-play =  +icon-random = 咽 -; toggle-on-foreground = ${colors.background_modules} -; toggle-off-foreground = ${colors.foreground_modules} +toggle-on-foreground = ${colors.background_modules} +toggle-off-foreground = ${colors.foreground_modules} -; format-offline = -; label-offline = mpd is offline +format-offline = +label-offline = mpd is offline [module/xwindow] type = internal/xwindow @@ -104,7 +102,6 @@ label = %title:0:70:...% y-offset = 10 label-padding = 1 -label-font = 1 label-empty =  label-empty-font = 3 -- cgit v1.2.3-70-g09d2 From 494e73fecbf8b9618085fa03059675b58bee20a9 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 10 May 2020 18:15:34 +0300 Subject: fix polybar sink icon --- .config/polybar/pulseaudio-control.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/polybar') diff --git a/.config/polybar/pulseaudio-control.sh b/.config/polybar/pulseaudio-control.sh index a080d65..51247fd 100755 --- a/.config/polybar/pulseaudio-control.sh +++ b/.config/polybar/pulseaudio-control.sh @@ -14,7 +14,7 @@ VOLUME_ICONS=( " " " " " " ) # Volume icons array, from lower volume t MUTED_ICON=" " # Muted volume icon MUTED_COLOR="%{F#A9AA83}" # Color when the audio is muted DEFAULT_SINK_ICON="" # The default sink icon if a custom one isn't found -CUSTOM_SINK_ICONS=("" "" "") # Custom sink icons in index of sink order +CUSTOM_SINK_ICONS=("" "" "") # Custom sink icons in index of sink order NOTIFICATIONS="yes" # Notifications when switching sinks if enabled SINK_BLACKLIST=( ) # Index blacklist for sinks when switching between them -- cgit v1.2.3-70-g09d2