Commit 0329f6d5eded
Changed files (3)
pkgs
scripts
bin
pkgs/scripts/bin/shot
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+maim -g $(slop; sleep ${2:-0}) | {
+ case $1 in
+ %c) to='clipboard'; xclip -selection clipboard -t image/png ;;
+ %d) to=~/desk/Screenshot_$(date +'%Y-%m-%d_%H:%M:%S').png; cat > "$to" ;;
+ *) to=$1; cat > "$to" ;;
+ esac
+ notify-send -i accessories-screenshot 'Screenshot Taken' "Saved to $to"
+}
pkgs/scripts/default.nix
@@ -1,7 +1,7 @@
{ stdenv }:
stdenv.mkDerivation {
- name = "vde-scripts-0.1";
+ name = "vde-scripts-0.2";
builder = ./builder.sh;
src = ./.;
}
desktop.nix
@@ -64,10 +64,13 @@
gnome3.gnome_themes_standard
i3lock-color
keybase
+ libnotify
+ maim
# pass
peco
- scrot
+ # scrot
spotify
+ slop
xdg-user-dirs
xdg_utils
youtube-dl