Compare commits
2 Commits
90e4234f2a
...
bd1731aae8
Author | SHA1 | Date |
---|---|---|
stupidcomputer | bd1731aae8 | |
stupidcomputer | 1b300b233e |
|
@ -34,6 +34,9 @@
|
||||||
libreoffice
|
libreoffice
|
||||||
texliveMedium
|
texliveMedium
|
||||||
ledger
|
ledger
|
||||||
|
|
||||||
|
unzip
|
||||||
|
imagemagick
|
||||||
];
|
];
|
||||||
|
|
||||||
services.hardware.bolt.enable = true; # thunderbolt support
|
services.hardware.bolt.enable = true; # thunderbolt support
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
, rbw
|
, rbw
|
||||||
, xclip
|
, xclip
|
||||||
, xmessage
|
, xmessage
|
||||||
|
, imagemagick
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -30,7 +31,7 @@ stdenv.mkDerivation rec {
|
||||||
src = ./utils;
|
src = ./utils;
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
buildInputs = [ bash feh xrandr jq curl fzy ytfzf sshuttle svkbd scrcpy rbw xclip ffcast xkbset xmessage ];
|
buildInputs = [ bash feh xrandr jq curl fzy ytfzf sshuttle svkbd scrcpy rbw xclip ffcast xkbset xmessage imagemagick ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
@ -38,7 +39,7 @@ stdenv.mkDerivation rec {
|
||||||
for i in $(ls $src/); do
|
for i in $(ls $src/); do
|
||||||
cp $src/$i $out/bin
|
cp $src/$i $out/bin
|
||||||
ln -sf $out/bin/tmenu_run $out/bin/regenerate
|
ln -sf $out/bin/tmenu_run $out/bin/regenerate
|
||||||
wrapProgram $out/bin/$i --prefix PATH : ${lib.makeBinPath [ sxhkd bash feh xrandr jq figlet curl fzy xkbset ytfzf sshuttle svkbd scrcpy xrectsel ffcast xmessage ]}
|
wrapProgram $out/bin/$i --prefix PATH : ${lib.makeBinPath [ sxhkd bash feh xrandr jq figlet curl fzy xkbset ytfzf sshuttle svkbd scrcpy xrectsel ffcast xmessage imagemagick ]}
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
print_help() {
|
||||||
|
echo "
|
||||||
|
rotate -- a thin wrapper around imagemagick
|
||||||
|
|
||||||
|
$1 - degrees (clockwise)
|
||||||
|
$2 - infile
|
||||||
|
$3 - outfile"
|
||||||
|
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "$1" = "-h" ]; then
|
||||||
|
print_help
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
print_help
|
||||||
|
fi
|
||||||
|
|
||||||
|
[ -z "$3" ] && 3="$2.out"
|
||||||
|
convert "$1" -rotate "$2" "$3"
|
Loading…
Reference in New Issue