sudo apt-get install xclip
- Configure spectacle to use Rectangular Selection, default save to
/some/path/Screenshot_%Y%M%D_%H%m%S
- Configure PrintScreen for rectangular selection via custom shortcuts
- Try it - once you select the area and hit enter it should show the pop-up notification about saved file.
- On this notification select the settings button
- In the notification settings enable "Run command" and set it as
/usr/bin/xclip -selection clipboard -target image/png -i $(ls -1tr /some/path/Screenshot_*.png | tail -n 1)
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
class Person(models.Model): | |
name = models.CharField(max_length=200) | |
groups = models.ManyToManyField('Group', through='GroupMember', related_name='people') | |
class Meta: | |
ordering = ['name'] | |
def __unicode__(self): |