[sway/tray] remove QSyncthingTray & use native syncthing with i3status

This commit is contained in:
Felix Buehler 2020-11-16 18:20:09 +01:00
parent 887c57e5f7
commit 1378145a54
2 changed files with 8 additions and 1 deletions

View file

@ -34,7 +34,7 @@ exec swayidle -w \
resume 'swaymsg "output * dpms on"' \ resume 'swaymsg "output * dpms on"' \
before-sleep '~/.dotfiles/sway/lock.sh' before-sleep '~/.dotfiles/sway/lock.sh'
exec mako exec mako
exec sleep 2 && QSyncthingTray exec syncthing -no-browser
#exec nm-applet --indicator #exec nm-applet --indicator
#exec blueman-applet #exec blueman-applet
exec telegram-desktop -startintray exec telegram-desktop -startintray

View file

@ -62,3 +62,10 @@ device_kind = "source"
block = "time" block = "time"
interval = 1 interval = 1
format = "%a %F %T" 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