printer & openscad

add indent for openscad and fix printer
This commit is contained in:
2026-03-27 14:42:39 +01:00
parent eb67cd011d
commit 234e6c0813
3 changed files with 27 additions and 13 deletions

View File

@@ -3,17 +3,18 @@
{ {
services.printing.drivers = [ pkgs.epson-escpr ]; services.printing.drivers = [ pkgs.epson-escpr ];
hardware.printers = { hardware.printers = {
ensurePrinters = [{ ensurePrinters = [
name = "Epson-XP-520"; {
location = "Home"; name = "Epson-XP-520";
deviceUri = "http://192.168.178.34:631/ipp/print"; location = "Home";
model = deviceUri = "usb://EPSON/XP-520%20Series?serial=554656593133323698&interface=1";
"epson-inkjet-printer-escpr/Epson-XP-520_Series-epson-escpr-en.ppd"; model = "epson-inkjet-printer-escpr/Epson-XP-520_Series-epson-escpr-en.ppd";
ppdOptions = { ppdOptions = {
PageSize = "A4"; PageSize = "A4";
Ink = "Color"; Ink = "Color";
}; };
}]; }
];
ensureDefaultPrinter = "Epson-XP-520"; ensureDefaultPrinter = "Epson-XP-520";
}; };
} }

View File

@@ -50,6 +50,12 @@
tex = [ tex = [
"tex-fmt" "tex-fmt"
]; ];
openscad = [
"squeeze_blanks"
"trim_whitespace"
"trim_newlines"
"scadstyle"
];
"_" = [ "_" = [
"squeeze_blanks" "squeeze_blanks"
"trim_whitespace" "trim_whitespace"
@@ -97,6 +103,15 @@
tex-fmt = { tex-fmt = {
command = "tex-fmt"; command = "tex-fmt";
}; };
scadstyle = {
"inherit" = true;
prepend_args = [
"--indent-type"
"Spaces"
"--indent-width"
"2"
];
};
}; };
}; };
}; };

View File

@@ -67,8 +67,6 @@
map = { map = {
normal = { normal = {
"Super+Shift Return" = "spawn alacritty"; "Super+Shift Return" = "spawn alacritty";
# Messages
"Control+Super W" = "spawn 'printf \"Hello from Wayland!\" | dunstify -'";
# System # System
"Super P" = "spawn 'rofi -show drun'"; "Super P" = "spawn 'rofi -show drun'";
"Super+Shift C" = "close"; "Super+Shift C" = "close";