Attempt to remove sensitive stuff from notifications
This commit is contained in:
parent
fbd94fb3f9
commit
385c0c55f9
2 changed files with 35 additions and 2 deletions
|
|
@ -14,6 +14,37 @@ let
|
||||||
fi
|
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
|
# for fine-grained control over spacing
|
||||||
thinsp = " ";
|
thinsp = " ";
|
||||||
|
|
||||||
|
|
@ -75,6 +106,7 @@ in
|
||||||
activated = " ";
|
activated = " ";
|
||||||
deactivated = " ";
|
deactivated = " ";
|
||||||
};
|
};
|
||||||
|
on-click = "${makoInhibitorTest} {}";
|
||||||
};
|
};
|
||||||
"custom/screencast" = {
|
"custom/screencast" = {
|
||||||
exec = pkgs.writeScript "screencast-monitor" /* python */ ''
|
exec = pkgs.writeScript "screencast-monitor" /* python */ ''
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,10 @@ lib.mkIf config.jalr.gui.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
# FIXME: move to home manager
|
# FIXME: move to home manager
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
grim
|
|
||||||
mako
|
|
||||||
gammastep
|
gammastep
|
||||||
|
grim
|
||||||
|
libnotify # notify-send
|
||||||
|
mako
|
||||||
slurp
|
slurp
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
xwayland
|
xwayland
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue