Several things:
- fixed `command-not-found` - trying out `purescript` - fixed screenshot shortcut
This commit is contained in:
parent
7d02c94366
commit
8fe4fdfcbc
3 changed files with 11 additions and 5 deletions
|
@ -15,6 +15,10 @@
|
||||||
yarn
|
yarn
|
||||||
yarn2nix
|
yarn2nix
|
||||||
texlive.combined.scheme-full
|
texlive.combined.scheme-full
|
||||||
|
purescript
|
||||||
|
spago
|
||||||
|
nodePackages.parcel-bundler
|
||||||
|
nodejs
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
keybindings =
|
keybindings =
|
||||||
let
|
let
|
||||||
screenshotScript = pkgs.writeShellScript "screenshot.sh" ''
|
screenshotScript = pkgs.writeShellScript "screenshot.sh" ''
|
||||||
filename="~/shots/$(date --iso-8601=seconds).png"
|
filename="$HOME/shots/$(date --iso-8601=seconds).png"
|
||||||
coords="$(${pkgs.slurp}/bin/slurp)"
|
coords="$(${pkgs.slurp}/bin/slurp)"
|
||||||
${pkgs.grim}/bin/grim -t png -g "$coords" $filename
|
${pkgs.grim}/bin/grim -t png -g "$coords" $filename
|
||||||
wl-copy -t image/png < $filename
|
wl-copy -t image/png < $filename
|
||||||
|
|
|
@ -38,7 +38,6 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
"screenshot" = "scrot '~/shots/%F_%T_$wx$h.png' -e 'xclip -selection clipboard -target image/png -i $f' -s";
|
|
||||||
"pass-clone" = "[ -d .password-store ] && echo 'Password store archive already exists' || git clone git@git.sr.ht:~zrsk/pass ~/.password-store";
|
"pass-clone" = "[ -d .password-store ] && echo 'Password store archive already exists' || git clone git@git.sr.ht:~zrsk/pass ~/.password-store";
|
||||||
"getpass" = "pass show $(find .password-store/ -name \"*.gpg\" | sed \"s/\\.password-store\\/\\(.*\\)\\.gpg$/\\1/g\" | fzf) | wl-copy; ((sleep 60 && wl-copy --clear) &)";
|
"getpass" = "pass show $(find .password-store/ -name \"*.gpg\" | sed \"s/\\.password-store\\/\\(.*\\)\\.gpg$/\\1/g\" | fzf) | wl-copy; ((sleep 60 && wl-copy --clear) &)";
|
||||||
"cat" = "bat";
|
"cat" = "bat";
|
||||||
|
@ -55,8 +54,11 @@
|
||||||
PROMPT = "\\\${IN_NIX_SHELL:+[nix-shell] }$PROMPT";
|
PROMPT = "\\\${IN_NIX_SHELL:+[nix-shell] }$PROMPT";
|
||||||
};
|
};
|
||||||
loginExtra = "[[ -z $DISPLAY && $TTY = /dev/tty1 ]] && exec sway";
|
loginExtra = "[[ -z $DISPLAY && $TTY = /dev/tty1 ]] && exec sway";
|
||||||
initExtra = if pkgs.system == "x86_64-darwin"
|
initExtra =
|
||||||
|
if pkgs.system == "x86_64-darwin"
|
||||||
then "if test -e /etc/static/bashrc; then source /etc/static/bashrc > /dev/null 2>&1; fi"
|
then "if test -e /etc/static/bashrc; then source /etc/static/bashrc > /dev/null 2>&1; fi"
|
||||||
else "";
|
else "";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.command-not-found.enable = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue