Add htmlify for WYSIWYG crap

This commit is contained in:
Alexander Bantyev 2022-06-12 00:30:51 +04:00
parent 62d807d81e
commit b132dbe644
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5

View File

@ -6,6 +6,9 @@ let
pkgs.writeShellScript "lock_fork" "sudo /run/current-system/sw/bin/lock all &"; pkgs.writeShellScript "lock_fork" "sudo /run/current-system/sw/bin/lock all &";
lock = pkgs.writeShellScript "lock" lock = pkgs.writeShellScript "lock"
"swaymsg 'output * dpms off'; sudo /run/current-system/sw/bin/lock all; swaymsg 'output * dpms on'"; "swaymsg 'output * dpms off'; sudo /run/current-system/sw/bin/lock all; swaymsg 'output * dpms on'";
htmlify = pkgs.writeShellScript "htmlify" ''
${pkgs.wl-clipboard}/bin/wl-paste -p | ${pkgs.pandoc}/bin/pandoc -t html | ${pkgs.wl-clipboard}/bin/wl-copy -t text/html
'';
in { in {
environment.sessionVariables = { environment.sessionVariables = {
_JAVA_AWT_WM_NONREPARENTING = "1"; _JAVA_AWT_WM_NONREPARENTING = "1";
@ -172,6 +175,7 @@ in {
"${modifier}+l" = "exec ${pkgs.playerctl}/bin/playerctl next"; "${modifier}+l" = "exec ${pkgs.playerctl}/bin/playerctl next";
"${modifier}+Slash" = "exec ${pkgs.copyq}/bin/copyq menu"; "${modifier}+Slash" = "exec ${pkgs.copyq}/bin/copyq menu";
"${modifier}+Shift+Slash" = "exec ${htmlify}";
"${modifier}+Print" = script "screenshot" "${modifier}+Print" = script "screenshot"
"${pkgs.grim}/bin/grim Pictures/$(date +'%Y-%m-%d+%H:%M:%S').png"; "${pkgs.grim}/bin/grim Pictures/$(date +'%Y-%m-%d+%H:%M:%S').png";