Skip to content

Instantly share code, notes, and snippets.

@Arty2
Arty2 / proton-tweaks.userchrome.css
Last active February 21, 2024 14:44
proton-tweaks
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/*----------------------------------------------------------
Firefox proton theme tweaks
references: https://gist.github.com/tung/439935f55cc83af20defd7867ec89c82;
*/
/* remove radius from buttons and tabs */
*|*:root {
--toolbarbutton-border-radius: 0 !important;
--tab-border-radius: 0 !important;
@Arty2
Arty2 / vscode_settings.json
Last active February 21, 2024 14:31
Visual Studio Code Markdown styles inspired from iAWriter
"editor.tokenColorCustomizations": {
"[Material Theme Darker]": { // replace with your dark theme
"textMateRules":[
{
"scope": [
"markup.italic.markdown",
"punctuation.definition.italic.markdown",
"punctuation.definition.bold.markdown",
"markup.bold.markdown",
"string.other.link.title.markdown",
@Arty2
Arty2 / bettertypography.ahk
Last active January 3, 2024 17:37
AutoHotkey script for easier access to uncommon typographical characters.
#NoEnv
#persistent
#KeyHistory 0
;BETTER TYPOGRAPHY - shortcuts
$^!-:: SendUnicode("2014") ;— em dash
$^!+-:: SendUnicode("2013") ;– en dash
$^!.:: SendUnicode("2026") ;…
$^!+.:: SendUnicode("2022") ;•
$^+.:: SendUnicode("2E0C") ;⸌ “list character” (left raised omission bracket)
@Arty2
Arty2 / fixedsearch.js
Last active December 14, 2023 17:10 — forked from cmod/hugofastsearch.md
Super fast, client side search for Hugo.io with Fusejs.io
// static/scripts/fixedsearch/fixedsearch.js
/*--------------------------------------------------------------
fixedsearch — Super fast, client side search for Hugo.io with Fusejs.io
based on https://gist.github.com/cmod/5410eae147e4318164258742dd053993
--------------------------------------------------------------*/
if (typeof variable !== 'undefined') {
console.log('fixedsearch.js already loaded');
} else {
fixedsearch = function(){
@Arty2
Arty2 / tabs_to_bottom.css
Last active November 5, 2023 19:58
Firefox CSS to move tabs and adress bar to bottom of window. Use with userChrome.css (works with Firefox 71+)
This script has moved to https://github.com/Arty2/userstyles
@Arty2
Arty2 / stachybotrys.qownnotes.qcss
Created August 20, 2023 13:48
A rough #QOwnNotes theme based on https://github.com/Arty2/stachybotrys color-scheme
/*
* test stachybotrys for QOwnNotes
* how to style the UI https://github.com/pbek/QOwnNotes/issues/2187
* styles and icons https://github.com/pbek/QOwnNotes/tree/develop/src/libraries/qdarkstyle
* how to make a plugin: https://github.com/qownnotes/scripts/tree/master/black-mode
* https://het.as.utexas.edu/HET/Software/html/stylesheet-examples.html
* https://doc.qt.io/qt-6/stylesheet-reference.html
*/
/*
@Arty2
Arty2 / ktimatologio.js
Last active March 12, 2023 18:59
A technique to capture large screenshots from http://gis.ktimanet.gr/
/*
Instructions for Firefox:
1. On Firefox, open http://gis.ktimanet.gr/wms/ktbasemap/default.aspx and zoom to your area of interest
2. Hit Shift + F4 to open the Scratchpad and paste the code below, then click on “Run” (Ctrl + R).
You may close the Scratchpad. There’s no need to save anything.
3. Input your desired image size on the prompt window (height equals width)
4. Refine your position, eg: zoom with the scrollbar or pad by click and drag
5. Capture a screenshot of the full page with Firefox’s built-in tools: https://screenshots.firefox.com/
Also works in Chrome but there’s no built-in way to capture the screenshot.
@Arty2
Arty2 / airtable-dark-theme.css
Created August 29, 2019 16:20
User Style for airtable.com that introduces a Dark theme and other visual tweaks. To be used with Stylus or similar extention
/*
Makes text a bit blurry due to ClearType being disabled when CSS Filters are used. Should probably use a less *naive* way.
*/
#hyperbaseContainer {
filter: invert(100%);
}
#hyperbaseContainer img,
#hyperbaseContainer button { /* revert images back to normal */
@Arty2
Arty2 / input.conf
Created March 20, 2022 15:43
mpv portable_config
ESC quit
r cycle_values video-rotate 90 180 270 0
l cycle_values loop-file inf yes
@Arty2
Arty2 / mic-toggle.ahk
Created April 16, 2020 06:19
An AutoHotKey script to mute/unmute all microphones on a system level. Works with Windows 10.
; An AutoHotKey script to mute/unmute all microphones on a system level. Toggle with Caps Lock.
; Emits a single beep on mute, double on unmute. Tray icon changes accordingly.
; Requires https://www.nirsoft.net/articles/mute_microphone_command_line.html
; Note: SoundSet doesn't work as intented
; TODO: detect tap and hold to speak, based on https://github.com/YoYo-Pete/AutoHotKeys/blob/master/PushToTalk.ahk
; https://www.howtogeek.com/446418/how-to-use-caps-lock-as-a-modifier-key-on-windows/
; also https://stackoverflow.com/questions/1794258/detect-a-double-key-press-in-autohotkey
$Capslock::