From 7f4ad00566a7f0a44d40b288c920350dd65a8c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Czy=C5=BC?= Date: Fri, 1 Mar 2024 15:57:29 +0100 Subject: [PATCH] xset and mpv --- desktop/.xinitrc | 14 +++++++++----- mpv/.config/mpv/input.conf | 5 +++++ mpv/.config/mpv/mpv.conf | 2 ++ mpv/.config/mpv/script_modules/mpvSockets | 1 + mpv/.config/mpv/scripts/modules.lua | 3 +++ 5 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 mpv/.config/mpv/input.conf create mode 100644 mpv/.config/mpv/mpv.conf create mode 160000 mpv/.config/mpv/script_modules/mpvSockets create mode 100644 mpv/.config/mpv/scripts/modules.lua diff --git a/desktop/.xinitrc b/desktop/.xinitrc index a849fa5..10b37d2 100755 --- a/desktop/.xinitrc +++ b/desktop/.xinitrc @@ -58,11 +58,15 @@ xset fp rehash & fc-cache -fv & # powersaving options -xset s off & -xset s noblank & -xset s noexpose & -xset c on & -xset -dpms & +# xset s off & +# xset s noblank & +# xset s noexpose & +# xset s on & +# xset -dpms & +# xset s 900 & +xset +dpms & +xset dpms 1200 1800 2100 & +xset s on & xset s 900 & # auths diff --git a/mpv/.config/mpv/input.conf b/mpv/.config/mpv/input.conf new file mode 100644 index 0000000..d614b15 --- /dev/null +++ b/mpv/.config/mpv/input.conf @@ -0,0 +1,5 @@ +l seek 5 +h seek -5 +j seek -60 +k seek 60 +S cycle sub diff --git a/mpv/.config/mpv/mpv.conf b/mpv/.config/mpv/mpv.conf new file mode 100644 index 0000000..b8247ac --- /dev/null +++ b/mpv/.config/mpv/mpv.conf @@ -0,0 +1,2 @@ +audio-samplerate = 192000 +audio-format = floatp diff --git a/mpv/.config/mpv/script_modules/mpvSockets b/mpv/.config/mpv/script_modules/mpvSockets new file mode 160000 index 0000000..3b3f430 --- /dev/null +++ b/mpv/.config/mpv/script_modules/mpvSockets @@ -0,0 +1 @@ +Subproject commit 3b3f430074a67c63572a582847ed1fa69330c668 diff --git a/mpv/.config/mpv/scripts/modules.lua b/mpv/.config/mpv/scripts/modules.lua new file mode 100644 index 0000000..703f372 --- /dev/null +++ b/mpv/.config/mpv/scripts/modules.lua @@ -0,0 +1,3 @@ +local mpv_config_dir_path = require("mp").command_native({"expand-path", "~~/"}) +function load(relative_path) dofile(mpv_config_dir_path .. "/script_modules/" .. relative_path) end +load("mpvSockets/mpvSockets.lua")