mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
- Format all shell scripts using [shfmt] (https://github.com/mvdan/sh). Options used: * `-bn`: binary ops like && and | may start a line * `-sr`: redirect operators will be followed by a space * `-ci`: indent switch cases * `-i 4`: indent 4 spaces * `-s`: simplify the code * `-p`: parse for posix compliance - Add Github action to lint changes to scripts and enforce formatting going forward Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
11 lines
427 B
Bash
Executable File
11 lines
427 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# You might notice all mpv commands are aliased to have this input-ipc-server
|
|
# thing. That's just for this particular command, which allows us to pause
|
|
# every single one of them with one command! This is bound to super + shift + p
|
|
# (with other things) by default and is used in some other places.
|
|
|
|
for i in $(ls /tmp/mpvSockets/*); do
|
|
echo '{ "command": ["set_property", "pause", true] }' | socat - "$i"
|
|
done
|