1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-02 12:54:39 +00:00
dotfiles/.local/share/qutebrowser/userscripts/switchdark

11 lines
436 B
Plaintext
Raw Normal View History

2020-03-24 18:43:00 +00:00
#!/usr/bin/fish
if test -e $QUTE_DATA_DIR/greasemonkey/discord.js
echo "set qt.args ["blink-settings=darkMode=4"]" >> "$QUTE_FIFO"
mv $QUTE_DATA_DIR/greasemonkey/discord.js $QUTE_DATA_DIR/greasemonkey/discord.js.bak
echo "restart" >> $QUTE_FIFO
else
echo "config-unset qt.args" >> "$QUTE_FIFO"
mv $QUTE_DATA_DIR/greasemonkey/discord.js.bak $QUTE_DATA_DIR/greasemonkey/discord.js
echo "restart" >> $QUTE_FIFO
end