Compare commits

...

3 commits

Author SHA1 Message Date
vorboyvo baae4c3a03 Merge remote-tracking branch 'refs/remotes/origin/main' 2025-07-26 11:02:35 -04:00
vorboyvo bd3e08ef0a Systemd resolved. 2025-07-26 11:01:32 -04:00
vorboyvo fc5f1b8a98 Added stuff for screenshots without print screen key. 2025-07-26 11:00:53 -04:00
2 changed files with 10 additions and 1 deletions

View file

@ -61,6 +61,13 @@
]; ];
}; };
services.resolved = {
enable = true;
dnssec = "true";
domains = [ "~." ];
fallbackDns = [ "9.9.9.9" "149.112.112.112" ];
};
# Set your time zone. # Set your time zone.
time.timeZone = "America/Montreal"; time.timeZone = "America/Montreal";

View file

@ -47,7 +47,7 @@ in {
}; };
keybindings = let keybindings = let
screenshotPath = screenshotPath =
"Pictures/Screenshots/screenshot`date +%Y%m%d%H%M%S`.png"; "pictures/Screenshots/screenshot`date +%Y%m%d%H%M%S`.png";
in lib.mkOptionDefault ({ # Screenshot keybinds in lib.mkOptionDefault ({ # Screenshot keybinds
"Print" = "Print" =
"exec grim - | wl-copy && wl-paste > ${screenshotPath}"; # Take screenshot of whole screen, save it, and copy it to clipboard "exec grim - | wl-copy && wl-paste > ${screenshotPath}"; # Take screenshot of whole screen, save it, and copy it to clipboard
@ -55,6 +55,8 @@ in {
exec swaymsg -t get_tree | ${pkgs.lib.getExe pkgs.jq} -r '.. | select(.focused?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | grim -g - | wl-copy && wl-paste > ${screenshotPath}''; # Take screenshot of current window, save it, and copy it to clipboard exec swaymsg -t get_tree | ${pkgs.lib.getExe pkgs.jq} -r '.. | select(.focused?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | grim -g - | wl-copy && wl-paste > ${screenshotPath}''; # Take screenshot of current window, save it, and copy it to clipboard
"Ctrl+Print" = "Ctrl+Print" =
"exec grim -g \"`slurp`\" - | wl-copy && wl-paste > ${screenshotPath}"; "exec grim -g \"`slurp`\" - | wl-copy && wl-paste > ${screenshotPath}";
"${mod}+Shift+s" =
"exec grim -g \"`slurp`\" - | wl-copy && wl-paste > ${screenshotPath}";
} // rec { # Function Media Keys } // rec { # Function Media Keys
XF86MonBrightnessUp = "exec bash ${changebrightness} 1"; XF86MonBrightnessUp = "exec bash ${changebrightness} 1";
XF86MonBrightnessDown = "exec bash ${changebrightness} -1"; XF86MonBrightnessDown = "exec bash ${changebrightness} -1";