Browse Source

more on screenshots and drawing

Brennen Bearnes 4 years ago
parent
commit
b18c7344ad
2 changed files with 121 additions and 14 deletions
  1. 34
    9
      image_video/index.md
  2. 87
    5
      index.html

+ 34
- 9
image_video/index.md View File

@@ -6,7 +6,7 @@ screencast gifs - thursday, december 18, 2014
6 6
 
7 7
 Looking to make some GIFs of things that happen on my screen, found `byzanz`.
8 8
 
9
-    sudo apt-get install byzanz
9
+    $ sudo apt-get install byzanz
10 10
     byzanz-record -x 1 -y 1 --delay=4 -h 150 -w 700 hello_world.gif
11 11
 
12 12
 Options:
@@ -24,18 +24,39 @@ return x, y, height, and width, then I'd let byzanz handle the capture.
24 24
 
25 25
 That can't be the _hardest_ thing in the world to do.
26 26
 
27
-<p class=centerpiece> * </p>
27
+-> ☆ <-
28 28
 
29
-- `xdotool getmouselocation`
30
-- https://www.gnu.org/software/xnee/
29
+[xdotool](http://www.semicomplete.com/projects/xdotool/) seems like kind of a
30
+swiss army knife, and has a `getmouselocation` command.  Theoretically, at
31
+least, you can have it respond to events, including a mouse click.  I can't
32
+quite wrap my head around how this is supposed to work, and my first few
33
+attempts fall flat.
31 34
 
32
-After more searching than I feel like it should have taken, I find this:
35
+[GNU xnee](https://www.gnu.org/software/xnee/) might also be promising, but I
36
+don't really get anywhere with it.
33 37
 
34
-http://askubuntu.com/questions/107726/how-to-create-animated-gif-images-of-a-screencast
38
+Eventually I find an [Ask Ubuntu]
39
+(http://askubuntu.com/questions/107726/how-to-create-animated-gif-images-of-a-screencast)
40
+thread on creating screencast gifs, which points to
41
+[xrectsel](https://github.com/lolilolicon/xrectsel), a tool for
42
+returning the coordinates and size of a screen region selected with the mouse:
35 43
 
36
-Which points to this:
44
+    brennen@desiderata 22:06:28 /var/www/workings-book (master) ★  xrectsel "%x %y %w %h"
45
+    432 130 718 575%
37 46
 
38
-https://github.com/lolilolicon/xrectsel
47
+I wind up with [`gif_sel`](https://github.com/brennen/bpb-kit/blob/master/bin/gif_sel):
48
+
49
+    #!/usr/bin/env bash
50
+
51
+    # requires:
52
+    # https://github.com/lolilolicon/xrectsel.git
53
+
54
+    eval `xrectsel "BYZANZ_X=%x; BYZANZ_Y=%y; BYZANZ_WIDTH=%w; BYZANZ_HEIGHT=%h"`
55
+    byzanz-record -x $BYZANZ_X -y $BYZANZ_Y --delay=4 -h $BYZANZ_HEIGHT -w $BYZANZ_WIDTH ~/screenshots/screencast-`date +"%Y-%m-%d-%T"`.gif
56
+
57
+I'll probably wind up with a couple of wrappers for this for different lengths
58
+of recording (for starting with dmenu), though it would be nice if I could just
59
+have it record until I press some hotkey.
39 60
 
40 61
 drawing tools - friday, december 19, 2014
41 62
 -----------------------------------------
@@ -68,7 +89,11 @@ that --- they're obviously trying to do a certain kind of thing, and constraints
68 89
 often make for great art --- but I'm wondering if I can't get some of the same
69 90
 vibe with a tool that also lets me easily cut/copy/scale stuff.
70 91
 
71
-I'm giving [Krita](https://krita.org/) a shot with that in mind.
92
+I'm giving [Krita](https://krita.org/) a shot with that in mind.  It has a real
93
+KDE vibe to it.  Lots of modular GUI widgets, menus, etc.  A little
94
+bureaucratic.  It doesn't feel as fluid or immediate as MyPaint right out of
95
+the gate, but it's definitely got more in the way of features.  Could grow on
96
+me.
72 97
 
73 98
 screenshots - tuesday, december 23, 2014
74 99
 ----------------------------------------

+ 87
- 5
index.html View File

@@ -86,6 +86,7 @@ that inspired this one.  Go Bears.</p>
86 86
 <ul>
87 87
 <li><a href="#screencast-gifs-thursday-december-18-2014">screencast gifs - thursday, december 18, 2014</a></li>
88 88
 <li><a href="#drawing-tools-friday-december-19-2014">drawing tools - friday, december 19, 2014</a></li>
89
+<li><a href="#screenshots-tuesday-december-23-2014">screenshots - tuesday, december 23, 2014</a></li>
89 90
 </ul>
90 91
 </li>
91 92
 <li><a href="#tools-amp-toolchains-for-data-munging-amp-analysis">tools &amp; toolchains for data munging &amp; analysis</a>
@@ -95,6 +96,12 @@ that inspired this one.  Go Bears.</p>
95 96
 <li><a href="#jq">jq</a></li>
96 97
 </ul>
97 98
 </li>
99
+<li><a href="#candles-amp-candlemaking">candles &amp; candlemaking</a>
100
+
101
+<ul>
102
+<li><a href="#sunday-december-28-2014">sunday, december 28, 2014</a></li>
103
+</ul>
104
+</li>
98 105
 <li><a href="#conceptual-framing">conceptual framing</a>
99 106
 
100 107
 <ul>
@@ -701,15 +708,15 @@ going to have to give it a look sooner rather than later.</p>
701 708
 
702 709
 <p>Looking to make some GIFs of things that happen on my screen, found <code>byzanz</code>.</p>
703 710
 
704
-<pre><code>sudo apt-get install byzanz
711
+<pre><code>$ sudo apt-get install byzanz
705 712
 byzanz-record -x 1 -y 1 --delay=4 -h 150 -w 700 hello_world.gif
706 713
 </code></pre>
707 714
 
708 715
 <p>Options:</p>
709 716
 
710 717
 <ul>
711
-<li><code>-x</code>, <code>-y</code> set origin of capture on screen</li>
712
-<li><code>-h</code> &amp; <code>-w</code> set height and width to capture</li>
718
+<li><code>-x</code> and <code>-y</code> set origin of capture on screen</li>
719
+<li><code>-h</code> and <code>-w</code> set height and width to capture</li>
713 720
 </ul>
714 721
 
715 722
 
@@ -723,6 +730,42 @@ return x, y, height, and width, then I&rsquo;d let byzanz handle the capture.</p
723 730
 
724 731
 <p>That can&rsquo;t be the <em>hardest</em> thing in the world to do.</p>
725 732
 
733
+<p style="text-align:center;"> ☆</p>
734
+
735
+<p><a href="http://www.semicomplete.com/projects/xdotool/">xdotool</a> seems like kind of a
736
+swiss army knife, and has a <code>getmouselocation</code> command.  Theoretically, at
737
+least, you can have it respond to events, including a mouse click.  I can&rsquo;t
738
+quite wrap my head around how this is supposed to work, and my first few
739
+attempts fall flat.</p>
740
+
741
+<p><a href="https://www.gnu.org/software/xnee/">GNU xnee</a> might also be promising, but I
742
+don&rsquo;t really get anywhere with it.</p>
743
+
744
+<p>Eventually I find an [Ask Ubuntu]
745
+(http://askubuntu.com/questions/107726/how-to-create-animated-gif-images-of-a-screencast)
746
+thread on creating screencast gifs, which points to
747
+<a href="https://github.com/lolilolicon/xrectsel">xrectsel</a>, a tool for
748
+returning the coordinates and size of a screen region selected with the mouse:</p>
749
+
750
+<pre><code>brennen@desiderata 22:06:28 /var/www/workings-book (master) ★  xrectsel "%x %y %w %h"
751
+432 130 718 575%
752
+</code></pre>
753
+
754
+<p>I wind up with <a href="https://github.com/brennen/bpb-kit/blob/master/bin/gif_sel"><code>gif_sel</code></a>:</p>
755
+
756
+<pre><code>#!/usr/bin/env bash
757
+
758
+# requires:
759
+# https://github.com/lolilolicon/xrectsel.git
760
+
761
+eval `xrectsel "BYZANZ_X=%x; BYZANZ_Y=%y; BYZANZ_WIDTH=%w; BYZANZ_HEIGHT=%h"`
762
+byzanz-record -x $BYZANZ_X -y $BYZANZ_Y --delay=4 -h $BYZANZ_HEIGHT -w $BYZANZ_WIDTH ~/screenshots/screencast-`date +"%Y-%m-%d-%T"`.gif
763
+</code></pre>
764
+
765
+<p>I&rsquo;ll probably wind up with a couple of wrappers for this for different lengths
766
+of recording (for starting with dmenu), though it would be nice if I could just
767
+have it record until I press some hotkey.</p>
768
+
726 769
 <h2><a name=drawing-tools-friday-december-19-2014 href=#drawing-tools-friday-december-19-2014>#</a> drawing tools - friday, december 19, 2014</h2>
727 770
 
728 771
 <p>Ok, so because I&rsquo;m starting to poke at drawing again for the first time in
@@ -731,7 +774,7 @@ includes cartoon graphics, despite having <em>no</em> idea what I&rsquo;m doing)
731 774
 I&rsquo;d take some rough notes on where I&rsquo;m at with toolset.</p>
732 775
 
733 776
 <p>The first thing is that I&rsquo;m not using any Adobe tools, or indeed any
734
-proprietary anything (unless you count the firmware on my cameras and maybe
777
+proprietary software (unless you count the firmware on my cameras and maybe
735 778
 Flickr) to work with images.  I am fully aware that this is a <em>ridiculous</em>
736 779
 limitation to self-impose, but I want to stick with it as best I can.</p>
737 780
 
@@ -753,7 +796,28 @@ that &mdash; they&rsquo;re obviously trying to do a certain kind of thing, and c
753 796
 often make for great art &mdash; but I&rsquo;m wondering if I can&rsquo;t get some of the same
754 797
 vibe with a tool that also lets me easily cut/copy/scale stuff.</p>
755 798
 
756
-<p>I&rsquo;m giving <a href="https://krita.org/">Krita</a> a shot with that in mind.</p>
799
+<p>I&rsquo;m giving <a href="https://krita.org/">Krita</a> a shot with that in mind.  It has a real
800
+KDE vibe to it.  Lots of modular GUI widgets, menus, etc.  A little
801
+bureaucratic.  It doesn&rsquo;t feel as fluid or immediate as MyPaint right out of
802
+the gate, but it&rsquo;s definitely got more in the way of features.  Could grow on
803
+me.</p>
804
+
805
+<h2><a name=screenshots-tuesday-december-23-2014 href=#screenshots-tuesday-december-23-2014>#</a> screenshots - tuesday, december 23, 2014</h2>
806
+
807
+<p>Looking to streamline capture of static screenshots a bit.  Options:</p>
808
+
809
+<ul>
810
+<li><code>gnome-screenshot</code> - use this already, it&rsquo;s fine, whatever.</li>
811
+<li><code>shutter</code> - weirdness with my xmonad setup?  Errors and I don&rsquo;t feel like taking
812
+the time to find out why.</li>
813
+<li><code>scrot</code> - buncha nice command line options</li>
814
+</ul>
815
+
816
+
817
+<p>I wind up forking Tyler&rsquo;s <a href="https://github.com/thcipriani/dotfiles/blob/master/bin/grab">grab</a>,
818
+a nice wrapper for <code>scrot</code>, which is pretty much what I was going to write anyway.</p>
819
+
820
+<p>This is pretty good at defining a region for a static screenshot.</p>
757 821
 
758 822
 
759 823
 </article>
@@ -808,6 +872,24 @@ filter for working with JSON records at the command line.</p>
808 872
 
809 873
 <article>
810 874
 
875
+<h1><a name=candles-amp-candlemaking href=#candles-amp-candlemaking>#</a> candles &amp; candlemaking</h1>
876
+
877
+<h2><a name=sunday-december-28-2014 href=#sunday-december-28-2014>#</a> sunday, december 28, 2014</h2>
878
+
879
+<p>A year ago at Christmastime, I decided to see what kind of candlemaking
880
+supplies were still at my parents' house, and wound up digging a couple of big
881
+Rubbermaid tubs worth of molds, dyes, additives, wick, wax, &amp;c out of the
882
+basement.</p>
883
+
884
+<p>I used to do this a lot, but I&rsquo;ve mostly forgotten the details of technique.</p>
885
+
886
+
887
+</article>
888
+
889
+
890
+
891
+<article>
892
+
811 893
 <h1><a name=conceptual-framing href=#conceptual-framing>#</a> conceptual framing</h1>
812 894
 
813 895
 <h2><a name=namespaces-scope href=#namespaces-scope>#</a> namespaces / scope</h2>

Loading…
Cancel
Save