An Ambxst shell themed On-Screen Controller (OSC) for mpv.
axosc replaces the default stock mpv OSC with a modern, and funky OSC that fits with Ambxst shell.
To use axosc, the default OSC and native window dragging behaviors must be disabled.
Add the following lines to your mpv.conf file (typically located at ~/.config/mpv/mpv.conf):
# Required settings for axosc
osc=no
window-dragging=no
osd-bar=noaxosc provides a native package exposed through an overlay which can be used in Home Manager configuration.
- Add this repo as a flake input:
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
axosc = {
url = "github:Passeriform/axosc";
inputs.nixpkgs.follows = "nixpkgs";
}
};- Pass the overlay provided by the flake into your
nixpkgsconfiguration:
outputs = { self, nixpkgs, axosc, ... }: {
nixosConfigurations.yourHostname = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{
nixpkgs.overlays = [ axosc.overlays.default ];
}
...
];
};
};- Apply the overlay and use overlaid
pkgs.mpvScriptsinprograms.mpvmodule:
programs.mpv = {
enable = true;
scripts = with pkgs.mpvScripts; [ axosc ];
config = {
osc = "no";
window-dragging = "no";
osd-bar = "no";
};
};To install axosc on other Linux distributions, clone the repository and link or copy the source scripts directly into your mpv scripts directory:
-
Clone the repository:
git clone https://github.com/Passeriform/axosc.git cd axosc -
Create the mpv scripts directory:
mkdir -p ~/.config/mpv/scripts/ -
Symlink or copy the contents of
src/into your mpv scripts folder:# Using symlinks (recommended for upstream version) ln -s src/* ~/.config/mpv/scripts/ # Alternative: Direct copy # cp -r src/* ~/.config/mpv/scripts/
-
Update mpv configuration to disable conflicting options:
osc=no
window-dragging=no
osd-bar=noConfiguration parameters can be tweaked under Config table in main.lua.
Until I add script-opts support (>﹏<)...
This project is licensed under the MIT License - see the LICENSE file for details.