Run:
gsettings set org.gnome.shell.keybindings show-screenshot-ui "['Print', '<Shift><Super>s']"| #! /bin/env python3 | |
| from dataclasses import dataclass | |
| import argparse | |
| from subprocess import run, check_output | |
| from pathlib import Path | |
| from typing import Optional | |
| import logging | |
| from os import environ |
| # Trashing implementation is based on https://github.com/arsenetar/send2trash | |
| # Requries pyobjc-library to be installed ("python3 -m pip install pyobjc") | |
| import os | |
| import time | |
| from pathlib import Path | |
| from subprocess import run | |
| from Foundation import NSFileManager, NSURL | |
| def notify(title, text): |
Simple utility function that can transform the values in a dictionary into a new dictionary using multiple threads, if used with Python Multiprocessing.
Copy the content of the attached dict_pool_map.py-file. A non-typed version is also attached to showcase an easy-to-read implementation (dict_pool_map_no_typing.py).
| { | |
| "description": "FL Studio", | |
| "manipulators": [ | |
| { | |
| "conditions": [ | |
| { | |
| "bundle_identifiers": [ | |
| "^com\\.image-line\\.flstudio$" | |
| ], | |
| "type": "frontmost_application_if" |
| from functional import Functional | |
| import numpy as np | |
| # Results in a NDArray[int_] | |
| out = ( | |
| Functional[str](["hei", "boo", "1", "2", "4"]) | |
| .filter(lambda x: x.isnumeric()) | |
| .map(lambda x: int(x)) | |
| .enumerate() | |
| .map(lambda v: v[0] + v[1]) |
/etc/logid.cfg: