~q3cpma/dotfiles

4ec701db43bbd4a228ea6c9c6e0a6a90beb51026 — q3cpma 1 year, 9 months ago e5ad6bd
Forgot -USR1
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 -USR1 $pid")
	mp.msg.log("info", (rs_enabled and "Dis" or "Reen") .. "abling redshift")
	rs_enabled = not rs_enabled
end