~q3cpma/dotfiles

e5ad6bdb36174cc3a881b92048554cd5957bbe66 — q3cpma 1 year, 9 months ago bb399ff
Whoops, unescaped backslashes
1 files changed, 1 insertions(+), 1 deletions(-)

M .config/mpv/scripts/redshift_toggle.lua
M .config/mpv/scripts/redshift_toggle.lua => .config/mpv/scripts/redshift_toggle.lua +1 -1
@@ 9,7 9,7 @@ end
rs_enabled = true

function rs_toggle()
	os.execute("pid=$(ps -a -o comm=,pid= | sed -n 's#^redshift[[:blank:]]\{1,\}##p'); [ $pid ] && kill $pid")
	os.execute("pid=$(ps -a -o comm=,pid= | sed -n 's#^redshift[[:blank:]]\\{1,\\}##p'); [ $pid ] && kill $pid")
	mp.msg.log("info", (rs_enabled and "Dis" or "Reen") .. "abling redshift")
	rs_enabled = not rs_enabled
end