Because I don't want to go out with people whose desktops are dirty

Can you organize your desktop?

S__43335687.jpg When I take a screenshot on my Macbook Pro or Macbook Air, it is saved on my desktop for some reason. In particular, with the online lessons of university students, I think the number of screenshots has increased dramatically. At least I'm not the only one to sort out the bunch of screenshots that fill my desktop when I'm busy just before the final exams.

In such a poor situation, it is not like us who are touted as digital natives. I'm sure he will do something about it. Yes, with our Python!

tl;dr --I made a tool for Mac that can automatically sort screenshots according to the lesson with Python! --It's a daemon, so once you start it, it will work as long as you don't turn off the power! ――It can be installed with pip and it is easy to operate, so everyone can put it in!

Introduction

Once again, hello. It's delicious. This time, I made an automatic screenshot organizing tool using Python. Since it was originally made for my personal computer, it is only compatible with mac. Please note.

I want as many people as possible to use it, so I'll talk about how to use it in the first half of the article and how to implement it in the second half. If you are busy or just want to use it for the time being, please see github for a brief explanation.

Installation method

pip3 install Sukusho  

Enter with. As soon as a bug is found, we will update the fixed version, so sometimes

pip3 install Sukusho -U  

I would be happy if you could do it.

How to use

First, open the terminal,

sukushoinit  

please. Then first,

[now:~/Desktop]:press enter or input savedir path

You will be asked where you want to save the file. By default, it is saved on the desktop. If you don't mind, type enter, and if you want to change it, type the absolute path to that folder.

Next, Excel should come out like this. SCR 2020-10-29 at 21.31.18.png

Let's type in the classes we are taking here like this. SCR 2020-10-29 at 21.35.24.png

Please leave empty frames blank. The time in jigen 01:23~04:56 You can change it as long as you match the format of!

Now let's run the test.

sukusho -t  

here,

Your sukusho is ready!

Is OK when it comes out! It's finally up and running. If you want to move it only once

sukusho -e

When you want to make it a daemon

sukusho -start  

And the system will start running! If you want to stop the daemonized system,

sukusho -kill  

Let's type. If you want to change the save destination

sukusho -es  

If you want to change the timetable,

sukusho -ej  

You can do it with.

Implementation

This implementation is roughly divided

-Creation and editing part of configuration file -File operation part --Daemonized part

It consists of three parts. @ KosukeJin's article is very nice for the daemonization part, so please read it! I have a separate article about the other two. Please see if you are interested.

At the end

Thank you for reading to the end! If you have any reports of errors or bugs, please contact us on github issue or twitter!

Recommended Posts

Because I don't want to go out with people whose desktops are dirty
I don't want to use -inf with np.log
I want to do ○○ with Pandas
I want to debug with Python
I want to detect objects with OpenCV
I want to blog with Jupyter Notebook
I want to pip install with PythonAnywhere
I want to analyze logs with Python
I want to play with aws with python
I want to visualize where and how many people are in the factory
I want to send Gmail with Python, but I can't because of an error
I want to use MATLAB feval with python
I want to analyze songs with Spotify API 2
I want to display multiple images with matplotlib.
I want to make a game with Python
I want to be an OREMO with setParam!
I don't want to take a coding test
I want to analyze songs with Spotify API 1
I want to use Temporary Directory with Python2
#Unresolved I want to compile gobject-introspection with Python3
I want to use ip vrf with SONiC
I want to solve APG4b with Python (Chapter 2)
I want to start over with Django's Migrate
I want to write to a file with Python
I want to tell people who want to import from a higher directory with Python direnv
I want to convert an image to WebP with lollipop
I want to handle optimization with python and cplex
I want to climb a mountain with reinforcement learning
Don't ask "Are you sure you want to continue connecting"
I want to inherit to the back with python dataclass
I want to work with a robot in python.
I want to split a character string with hiragana
I want to AWS Lambda with Python on Mac!
I want to manually create a legend with matplotlib
[TensorFlow] I want to process windows with Ragged Tensor
[ML Ops] I want to do multi-project with Python
I want to run a quantum computer with Python
I want to bind a local variable with lambda
I wrote you to watch the signal with Go
I ... I don't have emotions ... ← Try to analyze whether there are really emotions with various emotion estimators
I don't want to search for high para because it is IQ1 (how to use lightgbm_tuner)
I want to be able to analyze data with Python (Part 3)
I want to remove Python's Unresolved Import Warning with vsCode
I want to use R functions easily with ipython notebook
I want to specify another version of Python with pyvenv
I want to be able to analyze data with Python (Part 1)
I want to make a blog editor with django admin
I want to start a jupyter environment with one command
[NetworkX] I want to search for nodes with specific attributes
I want to make a click macro with pyautogui (desire)
I want to change the Japanese flag to the Palau flag with Numpy
I want to be able to analyze data with Python (Part 4)
I want to color black-and-white photos of memories with GAN
I want to be able to analyze data with Python (Part 2)
I want to automatically attend online classes with Python + Selenium!
I want to make a click macro with pyautogui (outlook)
[Python] I want to use the -h option with argparse
[Go] I want to separate endpoints by Read / Write to DB
I want to use a virtual environment with jupyter notebook!
I want to install a package from requirements.txt with poetry
[Visualization] I want to draw a beautiful graph with Plotly