diff --git a/sway/config b/sway/config index 1a7c983..159e24e 100644 --- a/sway/config +++ b/sway/config @@ -34,7 +34,7 @@ exec swayidle -w \ resume 'swaymsg "output * dpms on"' \ before-sleep '~/.dotfiles/sway/lock.sh' exec mako -exec sleep 2 && QSyncthingTray +exec syncthing -no-browser #exec nm-applet --indicator #exec blueman-applet exec telegram-desktop -startintray diff --git a/sway/i3status-rust.toml b/sway/i3status-rust.toml index 26f5e69..49a35c4 100644 --- a/sway/i3status-rust.toml +++ b/sway/i3status-rust.toml @@ -62,3 +62,10 @@ device_kind = "source" block = "time" interval = 1 format = "%a %F %T" + +[[block]] +block = "custom" +command = "if pgrep -x \"syncthing\" > /dev/null; then echo '{\"icon\":\"\",\"state\":\"Info\", \"text\": \"\"}'; else echo '{\"icon\":\"\",\"state\":\"Warning\", \"text\": \"\"}'; fi" +json = true +on_click = "xdg-open http://localhost:8384" +interval = 3