update microbin, add sxhkdrc command to paste clipboard to my bin

This commit is contained in:
Anish Lakhwara 2023-05-12 21:23:45 +10:00
parent 110ba17935
commit 2a1f956227
5 changed files with 10 additions and 9 deletions

View file

@ -0,0 +1 @@
curl -F "content=$(xclip -o)" -X POST https://bin.sealight.xyz/upload

View file

@ -113,6 +113,7 @@ in
'';
# TODO hardcoded
".local/bin/passmenu".source = ./bin/passmenu;
".local/bin/paste".source = ./bin/paste;
".local/bin/bluetoothmenu".source = ./bin/bluetoothmenu;
".local/bin/wifimenu".source = ./bin/wifimenu;
".local/bin/powermenu".source = ./bin/powermenu;

View file

@ -27,6 +27,9 @@ super + Tab
super + e
rofimoji --selector-args "-theme theme/emojimenu.rasi" --skin-tone moderate --action copy
super + e
paste
super + p
passmenu

View file

@ -7,11 +7,14 @@
services.nginx.virtualHosts."bin.sealight.xyz" = {
enableACME = true;
forceSSL = true;
extraConfig = "client_max_body_size 20M;";
locations."/" = {
extraConfig = ''
proxy_pass http://localhost:4949/;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
'';
};
};

View file

@ -45,14 +45,7 @@ in
after = [ "remote-fs.target" "network.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = ''${pkgs.microbin}/bin/microbin --port ${builtins.toString cfg.port}
--public-path ${cfg.hostname}
--editable
--enable-burn-after
--private
--qr
--title=sealight
--highlightsyntax'';
ExecStart = "${pkgs.microbin}/bin/microbin -- --port ${builtins.toString cfg.port} --public-path ${cfg.hostname} --editable --enable-burn-after --private --qr --title=sealight --highlightsyntax";
WorkingDirectory = dataFolder;
TimeoutStopSec = " 20 ";
KillMode = " process ";