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
#!/bin/sh | |
# <https://gist.github.com/01e327e485cadee4c7c50ba191ae9e9f> | |
# Workaround for <https://bugs.chromium.org/p/chromium/issues/detail?id=1087937> | |
# Adapted from /u/ken_duda's comment: | |
# * <https://old.reddit.com/r/Crostini/comments/gsxx7o/userpid_namespaces_broken_in_crostini_83/fsqn1wj/> | |
# * <https://bugs.chromium.org/p/chromium/issues/detail?id=1087937#c6> |
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
[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
Copyright (c) S. Zeid. <https://s.zeid.me/> | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in |
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 | |
# Requires AWS CLI version 1 (`pip3 install awscli`) | |
if ! [ -f "$1" ]; then | |
printf %s " | |
This script should be used as the shebang line in another script that looks like | |
the following (assuming this script is on \$PATH): |
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
#!/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
<?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
[kwin-translucent-hack] | |
# Hack to make the window translucent when there is no video track. | |
# | |
# * Set up 2 KWin window rules: | |
# * class: exact match `mpv`, title: regular expression `\x034f$` | |
# -> active/inactive opacity: force 50% | |
# * class: exact match `mpv`, title: regular expression `^[^\x034f]*$` | |
# -> active/inactive opacity: force 100% | |
# | |
# * U+034F is used because KWin strips non-printable characters and replaces |