1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

emacs rustic/lsp configuration, dunst applet for dunst-status and silencing it on click

Signed-off-by: Stefan Ellmauthaler <stefan.ellmauthaler@tu-dresden.de>
This commit is contained in:
Stefan Ellmauthaler 2021-10-19 10:22:16 +02:00
parent 76cda34690
commit 10ee5409bd
2 changed files with 12 additions and 2 deletions

View File

@ -27,7 +27,7 @@
modules = {
left = "i3";
center = "";
right = " xbacklight xkeyboard eth wlan battery date powermenu volume ";
right = " xbacklight xkeyboard eth wlan battery date powermenu dunst volume ";
};
background = background_col;
@ -282,6 +282,13 @@
bar-empty-font = "2";
bar-empty-foreground = foreground_altcol;
};
"module/dunst" = {
type = "custom/script";
exec = "PATH=${pkgs.dbus}/bin/:$PATH ${pkgs.dunst}/bin/dunstctl is-paused | ${pkgs.gnugrep}/bin/grep -q true && echo || echo ";
interval = 10;
click-left = "PATH=${pkgs.dbus}/bin/:$PATH ${pkgs.dunst}/bin/dunstctl set-paused toggle";
};
};
script = ''
for m in $(polybar --list-monitors | ${pkgs.gnugrep}/bin/grep '(primary)' | ${pkgs.coreutils}/bin/cut -d":" -f1); do

View File

@ -326,6 +326,7 @@
(rustic-flycheck-clippy-params "--message-format=json")
:hook
(rustic-mode . company-mode)
(rustic . rust-analyzer-hint-mode)
;;(rustic-mode . flymake-mode)
)
@ -455,7 +456,7 @@
:diminish eldoc-mode
:custom
;(lsp-keymap-prefix "C-c")
(lsp-eldoc-render-all t)
(lsp-eldoc-render-all nil)
(lsp-file-watch-threshold 5000)
(lsp-ui-doc-enable nil)
(lsp-ui-doc-border "#586e75")
@ -472,6 +473,8 @@
:after lsp-mode
:commands lsp-diagnostics-flycheck-enable)
(use-package lsp-ui)
;; misc
(use-package academic-phrases
:defer t