flake testing

This commit is contained in:
Matt Nish-Lapidus 2025-05-18 02:14:43 -04:00
parent 48a13da8fb
commit 84d7e6f154
6 changed files with 43 additions and 26 deletions

24
flake.lock generated
View file

@ -784,11 +784,11 @@
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
},
"locked": {
"lastModified": 1747304844,
"narHash": "sha256-aLS9HqdtAtioT2JJSWQ7cgWKozBmCtxzYWIEZb1RzkA=",
"lastModified": 1747491150,
"narHash": "sha256-UpHzUfmxpKko/4f/Nw971wfw+0EgHEJHkoJ3mGQKDkg=",
"owner": "sodiboo",
"repo": "niri-flake",
"rev": "b8326b5bfb204d7b57802a218de1ebbb743bf8dc",
"rev": "ea61079b4d48031087c0c994782c24c846d4b95e",
"type": "github"
},
"original": {
@ -817,11 +817,11 @@
"niri-unstable": {
"flake": false,
"locked": {
"lastModified": 1747289333,
"narHash": "sha256-S2xNTAo0e87rK+sNDQCxOsBKtQEBAAVwgkzdpnWoQC0=",
"lastModified": 1747486745,
"narHash": "sha256-ngQ+iTHmBJkEbsjYfCWTJdV8gHhOCTkV8K0at6Y+YHI=",
"owner": "YaLTeR",
"repo": "niri",
"rev": "46a8f81160708d05e9609c318cce64e3e5ac2538",
"rev": "ae89cb6017668f3a81ccd92461cbbc70ab8377d0",
"type": "github"
},
"original": {
@ -1003,11 +1003,11 @@
},
"nixpkgs-stable_2": {
"locked": {
"lastModified": 1747209494,
"narHash": "sha256-fLise+ys+bpyjuUUkbwqo5W/UyIELvRz9lPBPoB0fbM=",
"lastModified": 1747335874,
"narHash": "sha256-IKKIXTSYJMmUtE+Kav5Rob8SgLPnfnq4Qu8LyT4gdqQ=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5d736263df906c5da72ab0f372427814de2f52f8",
"rev": "ba8b70ee098bc5654c459d6a95dfc498b91ff858",
"type": "github"
},
"original": {
@ -1637,11 +1637,11 @@
"rust-overlay": "rust-overlay_3"
},
"locked": {
"lastModified": 1747385703,
"narHash": "sha256-dbpR9AKGBtlAKRPujwH0RrJnGxkDrd9ok7rwHnaWdcI=",
"lastModified": 1747477505,
"narHash": "sha256-BGsRqVCDr4dVbnDYQOQC7kSXDPnd8/SaJRv72tBBXhg=",
"owner": "sxyazi",
"repo": "yazi",
"rev": "746c7f5ce9840d583f52cdf24b9250668a12a445",
"rev": "70e459a0111f55a3f1be3746baf64cbf68a68fce",
"type": "github"
},
"original": {

View file

@ -0,0 +1,2 @@
#!/bin/sh
niri msg action screenshot-window --id="$(niri msg --json pick-window | jq .id)"

View file

@ -51,7 +51,7 @@
# gdtoolkit_4
epsonscan2
sane-airscan
# sane-airscan
xsane
bitwarden-cli

View file

@ -13,6 +13,11 @@ in
programs = {
niri = {
settings = {
# debug = {
# honor-xdg-activation-with-invalid-serial = true;
# };
screenshot-path = "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png";
prefer-no-csd = true;
@ -66,6 +71,7 @@ in
outputs = {
"eDP-1" = {
# focus-at-startup = true;
mode = {
width = 2560;
height = 1600;
@ -75,12 +81,8 @@ in
variable-refresh-rate = true;
};
"HDMI-A-1" = {
background-color = strPalette.normal.background;
scale = 1;
};
"PNP(BNQ) BenQ PD2725U N2N00414019" = {
# focus-at-startup = true;
mode = {
width = 3840;
height = 2160;
@ -88,6 +90,12 @@ in
background-color = strPalette.normal.background;
scale = 1;
};
"HDMI-A-1" = {
background-color = strPalette.normal.background;
scale = 1;
};
};
environment = {
@ -266,7 +274,7 @@ in
{
# shows a list of important hotkeys.
"Mod+Shift+Slash".action = show-hotkey-overlay;
"Mod+Shift+Space".action = toggle-overview;
"Mod+Space" = {
hotkey-overlay.title = "Launcher";
action = wezlaunch "sway-launcher-desktop";
@ -488,8 +496,7 @@ in
"Mod+S".action = focus-workspace "scratchpad";
"Mod+Print".action = screenshot;
# "Mod+Ctrl+Print".action = screenshot-screen "false";
# "Mod+Alt+Print".action = screenshot-window "false";
"Mod+Shift+Print".action = spawn "/home/emenel/.local/bin/niri-screenshot-window";
# The quit action will show a confirmation dialog to avoid accidental exits.
"Mod+Shift+E".action = quit;

View file

@ -3,8 +3,8 @@ let
k-vars = ''
(defvar
tap-timeout 100
hold-timeout 200)
tap-timeout 150
hold-timeout 150)
'';
in
@ -122,9 +122,14 @@ ${k-vars}
# '';
# }
razer = {
razer = {
devices = [ "/dev/input/by-id/usb-Razer_Razer_Blade-event-kbd"
"/dev/input/by-id/usb-Razer_Razer_Blade-if01-event-kbd" ];
extraDefCfg = ''
process-unmapped-keys yes
concurrent-tap-hold yes
allow-hardware-repeat false
'';
config = ''
(defsrc
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
@ -135,6 +140,9 @@ ${k-vars}
${k-vars}
(defchordsv2
(lctrl lalt h) left 200 all-released ())
(defalias
supesc (tap-hold-press $tap-timeout $hold-timeout esc lmet)
sp-lsft (tap-hold-press $tap-timeout $hold-timeout S-9 lsft)

View file

@ -15,11 +15,11 @@ rustPlatform.buildRustPackage rec {
owner = "mierak";
repo = "rmpc";
rev = "master";
hash = "sha256-Lxu9x+LBnNOxEFE2CcQ3yiji4t2B9OIy1TW4jPDTJBk=";
hash = "sha256-TwJKoLcJlqRtBs3lV7kfT/gyOs23V4Yp4xE7zz1fFXI=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-RQ0ibBFkVq7KgYrbMeIgTBSDJbCLCea/ThhbJgOuKxk=";
cargoHash = "sha256-Je9xYnRmS45ZW81ym1Y53L6sxqJzKutRhTzcSPJ1lDI=";
checkFlags = [
# Test currently broken, needs to be removed. See https://github.com/mierak/rmpc/issues/254