Attempt to remove sensitive stuff from notifications

This commit is contained in:
Jakob Lechner 2023-11-03 15:43:05 +00:00
parent fbd94fb3f9
commit 385c0c55f9
No known key found for this signature in database
GPG key ID: 996082EFB5906C10
2 changed files with 35 additions and 2 deletions

View file

@ -14,6 +14,37 @@ let
fi
'';
makoInhibitorTest = pkgs.writeShellScript "mako-inhibitor-test" ''
export PATH=${pkgs.lib.makeBinPath (with pkgs; [pkgs.libnotify])}
notify-send "test"
notify-send "bla $1"
'';
setMakoMode = pkgs.writeShellScript "set-mako-mode" ''
export PATH=${pkgs.lib.makeBinPath (with pkgs; [pkgs.mako])}
if [[ "$2" = "toggle" ]]; then
if makoctl mode | grep -Fxq "$1"; then
action = "add"
else
action = "remove"
fi
else
action = "$2"
fi
case "$action" in
add)
makoctl mode -a "$1"
;;
remove)
makoctl mode -d "$1"
;;
*)
exit 1
;;
esac
'';
# for fine-grained control over spacing
thinsp = " ";
@ -75,6 +106,7 @@ in
activated = "󰈈 ";
deactivated = "󰈉 ";
};
on-click = "${makoInhibitorTest} {}";
};
"custom/screencast" = {
exec = pkgs.writeScript "screencast-monitor" /* python */ ''

View file

@ -5,9 +5,10 @@ lib.mkIf config.jalr.gui.enable {
enable = true;
# FIXME: move to home manager
extraPackages = with pkgs; [
grim
mako
gammastep
grim
libnotify # notify-send
mako
slurp
wl-clipboard
xwayland