most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
This snippet of code was posted in 2014 and slightly revised in 2016 and 2017. It was more of a quick'n'dirty script than a polished tool. It is made only for Linux and in Python 2, which has since become outdated.
I currently do not use it, and I suggest you avoid it as well. Please do not expect support for using this script.
🔥 If you need an alternative, @glaucocustodio has kindly suggested EasyVPN in this comment.
The rest of the README is left for historical purposed.
-- requires subdl: https://github.com/akexakex/subdl | |
-- default keybinding: b | |
-- add the following to your input.conf to change the default keybinding: | |
-- keyname script_binding subdl_load_subs | |
local utils = require 'mp.utils' | |
local subdl = "/usr/bin/subdl" -- use 'which subdl' to find the real path | |
function subdl_load() | |
mp.msg.info("Searching subtitles...") | |
mp.osd_message("Searching subtitles...") |
-- requires subliminal, version 1.0 or newer | |
-- default keybinding: b | |
-- add the following to your input.conf to change the default keybinding: | |
-- keyname script_binding auto_load_subs | |
local utils = require 'mp.utils' | |
function load_sub_fn() | |
lang_ids = {"en", "es"} | |
subl = "/usr/bin/subliminal" | |
--local path = mp.get_property("working-directory").."/"..mp.get_property("path") | |
local pathfile = mp.get_property("path") |
*~ | |
.vscode | |
tags |
/* | |
Parts of this code is inspired from the following: | |
[1] https://userstyles.org/styles/105000/smart-dark | |
*/ | |
html { | |
background-color: #222 !important; | |
} | |
body { |