Compare commits
2 Commits
ceabbe3c92
...
62d9753cfc
| Author | SHA1 | Date | |
|---|---|---|---|
| 62d9753cfc | |||
| 1fc336f258 |
@ -80,6 +80,10 @@ in
|
|||||||
${builtins.readFile ./shared/ghostty.config}
|
${builtins.readFile ./shared/ghostty.config}
|
||||||
|
|
||||||
font-size = 11
|
font-size = 11
|
||||||
|
|
||||||
|
keybind = super+c=copy_to_clipboard
|
||||||
|
keybind = super+v=paste_from_clipboard
|
||||||
|
keybind = super+t=new_tab
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -177,6 +181,10 @@ in
|
|||||||
_launch = "Ctrl+Alt+T";
|
_launch = "Ctrl+Alt+T";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"KDE Keyboard Layout Switcher" = {
|
||||||
|
"Switch to Next Keyboard Layout" = "none";
|
||||||
|
};
|
||||||
|
|
||||||
kded5 = {
|
kded5 = {
|
||||||
display = [
|
display = [
|
||||||
"none"
|
"none"
|
||||||
@ -207,6 +215,8 @@ in
|
|||||||
|
|
||||||
"Switch One Desktop to the Right" = "none";
|
"Switch One Desktop to the Right" = "none";
|
||||||
"Switch One Desktop to the Left" = "none";
|
"Switch One Desktop to the Left" = "none";
|
||||||
|
|
||||||
|
"Edit Tiles" = "none";
|
||||||
};
|
};
|
||||||
|
|
||||||
plasmashell = {
|
plasmashell = {
|
||||||
@ -306,7 +316,7 @@ in
|
|||||||
echo "Starting sync"
|
echo "Starting sync"
|
||||||
${pkgs.inotify-tools}/bin/inotifywait --monitor --recursive --quiet -e modify -e moved_to -e moved_from -e create -e delete /mnt/storage/.hardware/3d-print/v2-red-V2-2201270017/files | ${pkgs.writeShellScript "voron2-red-sync" ''
|
${pkgs.inotify-tools}/bin/inotifywait --monitor --recursive --quiet -e modify -e moved_to -e moved_from -e create -e delete /mnt/storage/.hardware/3d-print/v2-red-V2-2201270017/files | ${pkgs.writeShellScript "voron2-red-sync" ''
|
||||||
function sync() {
|
function sync() {
|
||||||
rsync -avz --delete --exclude='.thumbs' /mnt/storage/.hardware/3d-print/v2-red-V2-2201270017/files/ pi@voron2-red:~/printer_data/gcodes/
|
rsync -avz -e "ssh -i /home/becky/.ssh/voron2-red" --delete --exclude='.thumbs' /mnt/storage/.hardware/3d-print/v2-red-V2-2201270017/files/ pi@voron2-red:~/printer_data/gcodes/
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
echo "Sync failed"
|
echo "Sync failed"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -117,6 +117,15 @@ in
|
|||||||
${pkgs.awscli2}/bin/aws s3 cp --acl "public-read" --expires "$(${pkgs.coreutils}/bin/date '+%a, %d %b %Y 00:00:00 GMT' -d "$(${pkgs.coreutils}/bin/date +%Y-%m-%d) + 365 day")" --cache-control "max-age=31536000" --metadata-directive REPLACE
|
${pkgs.awscli2}/bin/aws s3 cp --acl "public-read" --expires "$(${pkgs.coreutils}/bin/date '+%a, %d %b %Y 00:00:00 GMT' -d "$(${pkgs.coreutils}/bin/date +%Y-%m-%d) + 365 day")" --cache-control "max-age=31536000" --metadata-directive REPLACE
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
bcrypt = lib.mkDefault "${pkgs.writeShellScript "bcrypt" ''
|
||||||
|
if [[ -z "$1" ]]; then
|
||||||
|
echo "Usage: bcrypt <password> [cost]"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -n "$1" | ${pkgs.apacheHttpd}/bin/htpasswd -i -nB -C ''${2:-12} "" | tr -d ':'
|
||||||
|
''}";
|
||||||
|
|
||||||
cat = lib.mkDefault "${pkgs.bat}/bin/bat --paging=never";
|
cat = lib.mkDefault "${pkgs.bat}/bin/bat --paging=never";
|
||||||
|
|
||||||
# use curl-aws --aws-sigv4 "aws:amz:region:service"
|
# use curl-aws --aws-sigv4 "aws:amz:region:service"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user