Use emacsclient to update mu index to make sure the db isn't locked

This commit is contained in:
Charlotte Van Petegem 2021-03-22 13:46:31 +01:00
parent 2808ce7436
commit 8e1b901372
No known key found for this signature in database
GPG key ID: 019E764B7184435A
6 changed files with 401 additions and 377 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ config, pkgs, ... }:
let
mic-status = pkgs.writeShellScript "mic-status" ''
if [ "$(${pkgs.pulseaudio}/bin/pactl list sources | grep -o 'Mute: yes')" = "Mute: yes" ]
@ -95,7 +95,7 @@ pkgs.writeText "configuration.toml" ''
json = true
command = "${mail-status}"
interval = 1
on_click = "${pkgs.isync}/bin/mbsync -a"
on_click = "${pkgs.isync}/bin/mbsync -a && ${config.chvp.emacs.package}/bin/emacsclient --eval \"(mu4e-update-index)\""
[[block]]
block = "time"