From 8fe4fdfcbc43b645821a4088b8396f63fab8293d Mon Sep 17 00:00:00 2001 From: aciceri Date: Tue, 2 Nov 2021 00:08:59 +0100 Subject: [PATCH] Several things: - fixed `command-not-found` - trying out `purescript` - fixed screenshot shortcut --- users/ccr/default.nix | 4 ++++ users/profiles/sway/default.nix | 2 +- users/profiles/zsh/default.nix | 10 ++++++---- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/users/ccr/default.nix b/users/ccr/default.nix index 8b871d7..f9486ae 100644 --- a/users/ccr/default.nix +++ b/users/ccr/default.nix @@ -15,6 +15,10 @@ yarn yarn2nix texlive.combined.scheme-full + purescript + spago + nodePackages.parcel-bundler + nodejs ]; }; diff --git a/users/profiles/sway/default.nix b/users/profiles/sway/default.nix index 7701911..e5d608c 100644 --- a/users/profiles/sway/default.nix +++ b/users/profiles/sway/default.nix @@ -50,7 +50,7 @@ keybindings = let 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)" ${pkgs.grim}/bin/grim -t png -g "$coords" $filename wl-copy -t image/png < $filename diff --git a/users/profiles/zsh/default.nix b/users/profiles/zsh/default.nix index 9fc4aae..2b38e29 100644 --- a/users/profiles/zsh/default.nix +++ b/users/profiles/zsh/default.nix @@ -38,7 +38,6 @@ ]; }; 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"; "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"; @@ -55,8 +54,11 @@ PROMPT = "\\\${IN_NIX_SHELL:+[nix-shell] }$PROMPT"; }; loginExtra = "[[ -z $DISPLAY && $TTY = /dev/tty1 ]] && exec sway"; - initExtra = if pkgs.system == "x86_64-darwin" - then "if test -e /etc/static/bashrc; then source /etc/static/bashrc > /dev/null 2>&1; fi" - else ""; + initExtra = + if pkgs.system == "x86_64-darwin" + then "if test -e /etc/static/bashrc; then source /etc/static/bashrc > /dev/null 2>&1; fi" + else ""; }; + + programs.command-not-found.enable = true; }