Giter Club home page Giter Club logo

kodi-openbox's Introduction

kodi-openbox

An xsession that runs Kodi media center on top of an Openbox session

Install

Debian/Ubuntu distros

./build.sh
sudo dpkg -i kodi-openbox.deb

Arch distros

sudo pacman -S fakeroot dpkg debtap
./build.sh
debtap kodi-openbox.deb

This will return an Arch package that can be installed with your favorite package manager, (Pacman, Octopi, Pamac, etc).

Other Linux distros

Note, this command manually copies all files to their intended places in the filesystem, meaning they will need to be uninstalled manually.

sudo cp -r -t /usr kodi-openbox/usr/**/*

Usage

On most systems, you should be able to choose your X session at the login screen. Choose "Kodi Openbox" and log in to start the session.

Commands

  • kodi-openbox-session - runs a kodi-openbox session
  • kodi-openbox-runprogram - closes kodi and runs a command. Kodi will reopen when the command completes. Arguments are the command to run

Openbox background

To set the background color of your openbox session, add the following command to ~/.config/openbox/autostart.sh

xsetroot -solid '#000000'

This will set the openbox background color to black, but you can change the hex value to be any color.

Launching external programs from kodi

There are various kodi addons for launching external programs, but the one I tend to use is Advanced Launcher. If you want kodi to close when launching an external program, use the kodi-openbox-runprogram command as your program, and the command you want to run as its arguments.

Preventing display sleep in external programs

If your display keeps going to sleep outside of kodi, it may be caused by a number of different programs.

To prevent gnome desktop from putting your display to sleep, run the following commands in a terminal while logged in as your kodi user:

# Prevent display from going to sleep
gsettings set org.gnome.desktop.session idle-delay 0
# Prevent session from locking if the display does go to sleep
gsettings set org.gnome.desktop.screensaver lock-enabled false

To prevent X11 from putting your display to sleep, add the following commands to ~/.config/openbox/autostart.sh

# Disable screen saver
xset s off
# Disable screen blanking
xset s noblank
# Disable "Display Power Management Signaling"
xset -dpms

kodi-openbox's People

Contributors

lufinkey avatar strootje avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.