Implemented in https://github.com/AvengeMedia/DankMaterialShell/commit/335c5b4ac55382c2077ab2a18129c03dafb9558b
This file contains hidden or 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
| [ids] | |
| * | |
| [main] | |
| meta = overload(meta, M-space) |
Tested on Windows 11 / mpv.exe is in user path.
Running mpv via Electron on Windows, assuming the goal is to run MPV as a standalone so the Electron app can close without affecting mpv.
As opposed to exec, we use spawn as the method to fork the process, spawn returns a stream of io, in this example, we 'ignore' stdio.
This file contains hidden or 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
| import { useState, useCallback } from 'react'; | |
| interface History<T> { | |
| history: T[]; | |
| head: T | undefined; | |
| previous: T | undefined; | |
| next: T | undefined; | |
| addItem: (item: T) => void; | |
| previousItem: () => void; | |
| nextItem: () => void; |
| Emacs defface | htmlfontify css class |
|---|---|
| font-lock-warning-face | warning |
| font-lock-function-name-face | function-name |
| font-lock-function-call-face | function-call |
| font-lock-variable-name-face | variable-name |
| font-lock-variable-use-face | variable-use |
| font-lock-keyword-face | keyword |
| font-lock-comment-face | comment |
| font-lock-comment-delimiter-face | comment-delimiter |
This file contains hidden or 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
| import sqlite3 | |
| import os | |
| import json | |
| import argparse | |
| import datetime | |
| import sys # For sys.platform | |
| import shutil # For copying database, if enabled | |
| import configparser # For parsing profiles.ini | |
| def get_firefox_profile_path(profile_name=None, newest=False): |
Sync a Tab to a Directory with copyq, not setable from the cli tool, but is possible in the config.
(linux/macos: ~/.config/copyq/copyq.conf | windows: %APPDATA%\copyq\copyq.conf )
Config will default to 1 tab called &clipboard. The & marks the letter to activate with Alt
NewerOlder