From 7d02d49ee5dd8c43b72cd50cd00a6e9de79f74ed Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 31 Oct 2021 16:29:10 +0300 Subject: polybar: iss tracker (spaaaace) --- .config/polybar/config##h.maus | 62 +++++++++++------------------------------- .config/polybar/launch.sh | 15 +++++----- .config/polybar/scripts/space | 31 +++++++++++++++++++++ 3 files changed, 54 insertions(+), 54 deletions(-) create mode 100755 .config/polybar/scripts/space (limited to '.config/polybar') diff --git a/.config/polybar/config##h.maus b/.config/polybar/config##h.maus index cf390c7..15e98ac 100644 --- a/.config/polybar/config##h.maus +++ b/.config/polybar/config##h.maus @@ -23,20 +23,6 @@ purple = #7F21AD aqua = #4CC9BE orange = #C24049 -; [colors] -; background = #080808 -; background_modules = #eeeeee -; foreground = #b2b2b2 -; foreground_modules = #080808 -; red = #ff5454 -; green = #8cc85f -; sold_out_green = #1DB954 -; yellow = #e3c78a -; blue = #80a0ff -; purple = #d183e8 -; aqua = #79dac8 -; orange = #ff5189 - [bar/top] monitor = DP-0 width = 100% @@ -45,6 +31,7 @@ offset-x = 0 offset-y = 0 radius = 0 fixed-center = true +enable-ipc = true background = ${colors.background} foreground = ${colors.foreground} @@ -55,7 +42,7 @@ module-margin = 1 font-0 = scientifica:antialias=false;1 font-1 = Siji:size=20;1 -modules-left = i3 pulseaudio-control spotify mpd github +modules-left = i3 pulseaudio-control spotify mpd github iss modules-center = xwindow modules-right = focus notification_pause memory cpu download upload date time @@ -87,15 +74,20 @@ format-prefix-padding = 1 format-offline = label-offline = Github offline +[module/iss] +type = custom/script +exec = /home/yigit/.config/polybar/scripts/space +interval = 5 + [module/focus] type = custom/script -exec = ~/.config/polybar/scripts/focus -double-click-left = exec ~/.config/polybar/scripts/stop & -interval = 1 +exec = /home/yigit/.config/polybar/scripts/focus +double-click-left = exec /home/yigit/.config/polybar/scripts/stop & +interval = 10 [module/notification_pause] type = custom/script -exec = ~/.config/polybar/scripts/notification_pause +exec = /home/yigit/.config/polybar/scripts/notification_pause interval = 5 [module/spotify] @@ -109,7 +101,6 @@ format-prefix-foreground = ${colors.foreground_modules} format =