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
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<match target="pattern"> | |
<test name="family"> | |
<string>Ubuntu Light</string> | |
</test> | |
<edit name="family" binding="same" mode="prepend"> | |
<string>Ubuntu</string> | |
</edit> |
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
#!/bin/sh | |
# no exec in order to allow checking if the script is running | |
paplay --raw /dev/zero >/dev/null 2>&1 |
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
#!/bin/sh | |
NAME=media | |
ACCENT_COLOR='#ab7fcc' | |
pane_cmd() { echo "echo '\$' $@; $@; PS1='\$ ' exec bash --posix"; } | |
setup_tmux() { |
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
[Service] | |
TimeoutStopSec=5 |
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
#!/bin/sh | |
if [ $# -ne 1 ]; then | |
echo "Usage: $(basename -- "$0") <image-file>" >&2 | |
exit 2 | |
fi | |
7z -so e "$1" usr/lib/opkg/status \ | |
| grep '^Package:' | cut -d' ' -f 2 | sort |
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
-- input.conf usage: <key> script-message show-script-opt <opt-name> <default> | |
-- Example: t script-message show-script-opt osc-title "${media-title}" | |
mp.register_script_message("show-script-opt", function(name, default) | |
local value = mp.get_opt(name) | |
if not (value == nil or value == "") then | |
value = mp.command_native({"expand-text", value}) | |
else | |
value = default or "(unavailable)" | |
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
MBTN_LEFT set pause no | |
MBTN_RIGHT cycle fullscreen | |
MBTN_RIGHT_DBL cycle fullscreen | |
WHEEL_UP add volume 2 | |
WHEEL_DOWN add volume -2 | |
WHEEL_LEFT ignore | |
WHEEL_RIGHT ignore | |
- add volume -2 | |
= add volume 2 | |
+ add volume 2 |
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
// Imports {{{1 | |
use std::io; | |
extern crate byteorder; // 1 | |
use byteorder::{/*ReadBytesExt,*/ LittleEndian}; | |
extern crate num_traits; // 0.2 | |
use num_traits::ToPrimitive; |
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 strict"; | |
//export default | |
class EmojiFavicon { | |
static DEFAULT_ATTRIBUTE_NAME() { return "data-emoji-favicon"; } | |
static set(emoji, shadowColor, size) { | |
shadowColor = (typeof shadowColor === "string") ? shadowColor : null; |