maim fix got merged

This commit is contained in:
Gerg-L 2023-02-16 19:04:31 -05:00
parent 50c3198e03
commit 3f37571642
2 changed files with 14 additions and 15 deletions

18
flake.lock generated
View file

@ -115,11 +115,11 @@
}, },
"master": { "master": {
"locked": { "locked": {
"lastModified": 1676518424, "lastModified": 1676591006,
"narHash": "sha256-OsJSBwl9Hayh/bmxDtUyxm2U6btaBHuLvviE9KpMmwQ=", "narHash": "sha256-pOIGhMOZuo3DRqhV0UIpJuRzVpw5RGrn/+DCov/d4T8=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a592a97fcedae7a06b8506623b25fd38a032ad13", "rev": "e95204260063aa90718a94eaccac3591a5c64469",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -180,11 +180,11 @@
"nixpkgs-regression": "nixpkgs-regression" "nixpkgs-regression": "nixpkgs-regression"
}, },
"locked": { "locked": {
"lastModified": 1676450680, "lastModified": 1676578914,
"narHash": "sha256-wOd+EPkY6VpxeIf+bCuV2lHleSoK0hI/hTsvJ6Ntf6Q=", "narHash": "sha256-nzJuvdc6xRwA94hvDehY9keKiFime6RtTHhBEoKJJHI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nix", "repo": "nix",
"rev": "601849b95afc3d173ea34ff5dba6353f9b71b495", "rev": "a88ae62bc0e404b7f87876bfd0a74afbac4d517d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -334,11 +334,11 @@
}, },
"unstable": { "unstable": {
"locked": { "locked": {
"lastModified": 1676300157, "lastModified": 1676481215,
"narHash": "sha256-1HjRzfp6LOLfcj/HJHdVKWAkX9QRAouoh6AjzJiIerU=", "narHash": "sha256-afma/1RU0EePRyrBPcjBdOt+dV8z1bJH9dtpTN/WXmY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "545c7a31e5dedea4a6d372712a18e00ce097d462", "rev": "28319deb5ab05458d9cd5c7d99e1a24ec2e8fc4b",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,10 +1,9 @@
{master, ...}: { _: {
pkgs, pkgs,
settings,
... ...
}:{ }: {
environment.systemPackages = [ environment.systemPackages = [
master.legacyPackages.${pkgs.system}.maim #screenshooter pkgs.maim #screenshooter
pkgs.brightnessctl #brightness control for laptop pkgs.brightnessctl #brightness control for laptop
pkgs.playerctl #music control pkgs.playerctl #music control
pkgs.xclip pkgs.xclip
@ -26,9 +25,9 @@
"XF86MonBrightnessUp" = "brightnessctl s 20+"; "XF86MonBrightnessUp" = "brightnessctl s 20+";
"XF86MonBrightnessDown" = "brightnessctl s 20-"; "XF86MonBrightnessDown" = "brightnessctl s 20-";
#screenshot stuff #screenshot stuff
"Print" = "maim /home/${settings.username}/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg"; "Print" = "maim $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg";
"Print + shift" = "maim | xclip -selection clipboard -t image/png"; "Print + shift" = "maim | xclip -selection clipboard -t image/png";
"super + Print" = "maim -s /home/${settings.username}/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg"; "super + Print" = "maim -s $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg";
"super + Print + shift" = "maim -s | xclip -selection clipboard -t image/png"; "super + Print + shift" = "maim -s | xclip -selection clipboard -t image/png";
}; };
}; };