This file contains 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
-- When using the version under development, the image sometimes | |
-- freezes during seek. Restarting mpv cures it, but it is | |
-- troublesome, so I wrote a script to solve the problem. | |
local function restart_mpv() | |
mp.command("quit-watch-later") | |
local cmds = {"run", "mpv"} | |
-- local opts = mp.get_property_native("property-list") |
This file contains 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
if [ $# -eq 0 ]; then | |
man pw-jack | |
else | |
man $1 | |
fi |
This file contains 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
#compdef pw-jack | |
setopt localoptions extended_glob | |
local environ e cmd | |
local -a args | |
local -a _comp_priv_prefix | |
zstyle -a ":completion:${curcontext}:" environ environ |
This file contains 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
-- Save this file in ~/.config/mpv/scripts/ | |
if os.getenv('WAYLAND_DISPLAY') then | |
mp.set_property('gpu-context', 'wayland') | |
end |
This file contains 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
-- save this file to $XDG_CONFIG_HOME/mpv/scripts/ | |
local dpms_mod = nil | |
-- local function dpms_mod_start(event) | |
-- print("RUN dpms mod start", dpms_mod) | |
-- if dpms_mod == nil then | |
-- -- This code was checked on xset 1.2.3 | |
-- if os.execute("[ `xset q | sed -n '/^DPMS/,${/^ DPMS/s/^ DPMS is //p}'` == Enabled ]") == 0 then | |
-- dpms_mod = true |
This file contains 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
(use-modules (srfi srfi-19)) | |
;; 100000000 nano seconds -> 0.1s | |
;; 200000000 nano seconds -> 0.2s | |
;; 300000000 nano seconds -> 0.3s | |
;; 400000000 nano seconds -> 0.4s | |
;; 500000000 nano seconds -> 0.5s | |
;; 1000000000 nano seconds -> 1s | |
;; This value is used for judge `clicking are continuously or not' |
This file contains 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
diff -u -ru ladspa-bs2b-0.9.1.orig/src/plugin.c ladspa-bs2b-0.9.1/src/plugin.c | |
--- ladspa-bs2b-0.9.1.orig/src/plugin.c 2009-06-05 03:44:25.000000000 +0900 | |
+++ ladspa-bs2b-0.9.1/src/plugin.c 2016-04-01 15:28:18.282931019 +0900 | |
@@ -89,13 +89,13 @@ | |
LADSPA_Handle | |
instantiateBs2bLine(const LADSPA_Descriptor * Descriptor, | |
unsigned long SampleRate) { | |
- Bs2bLine * psBs2bLine = (Bs2bLine *)malloc(sizeof(Bs2bLine)); | |
- if (psBs2bLine == NULL) { | |
+ /* Sample rate supported? */ |