add notification toggle
This commit is contained in:
parent
9a659b4580
commit
6991318eb9
5 changed files with 65 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
dunst = "${pkgs.dunst}/bin/dunstctl";
|
||||
pkill = "${pkgs.procps}/bin/pkill";
|
||||
signal = "${toString config.programs.waybar.settings.mainBar."custom/notifications".signal}";
|
||||
in
|
||||
(pkgs.writeShellScriptBin "dunst-toggle" ''
|
||||
${dunst} set-paused toggle
|
||||
${pkill} -RTMIN+${signal} waybar
|
||||
'')
|
||||
Loading…
Add table
Add a link
Reference in a new issue