Coder Social home page Coder Social logo

Support for systemd about autorandr HOT 10 CLOSED

phillipberndt avatar phillipberndt commented on June 4, 2024
Support for systemd

from autorandr.

Comments (10)

blueyed avatar blueyed commented on June 4, 2024

Would it be preferred to use the user's systemd instance (via the user's config), or is it meant to be installed system-wide?

(When installing it system-wide, it could also be put into /etc/systemd/user though (as a user service, for all users).

from autorandr.

blueyed avatar blueyed commented on June 4, 2024

An alternative might be to install a script/symlink into /usr/lib/systemd/system-sleep (https://wiki.archlinux.org/index.php/Power_management#Hooks_in_.2Fusr.2Flib.2Fsystemd.2Fsystem-sleep), running autoranrd when the "post" argument is used.

from autorandr.

phillipberndt avatar phillipberndt commented on June 4, 2024

I use autorandr from my user home and frankly never put too much thought into this.. just go ahead and create a pull request with your start scripts, I'll merge it.

However I'd like to organize the additional scripts/files a bit better. How about moving

  • bash_completion -> contrib/bash_completion
  • pm-utils -> contrib/pm-utils
  • udev -> contrib/udev
  • your systemd stuff -> contrib/systemd

and adjusting the makefile to auto-detect the system type and adjust the hotplug-target accordingly?! (We could rename $INSTALL_PATH to $PREFIX while we're at it..)

from autorandr.

blueyed avatar blueyed commented on June 4, 2024

👍

from autorandr.

blueyed avatar blueyed commented on June 4, 2024

I use autorandr from my user home

Are you using udev rules then? AFAIK these cannot be configured in local/user config?
(but you can call a user's script of course)

from autorandr.

phillipberndt avatar phillipberndt commented on June 4, 2024

I have my own udev rule in place, that calls a script from my home, just not the one from the repo ☺

from autorandr.

kepi avatar kepi commented on June 4, 2024

👍

from autorandr.

phillipberndt avatar phillipberndt commented on June 4, 2024

I've included the service file from this bug now.

from autorandr.

Konfekt avatar Konfekt commented on June 4, 2024

Just curious why there is no

After=sleep.target suspend.target

? Does sleep.target include the suspend.target?

from autorandr.

blueyed avatar blueyed commented on June 4, 2024

@Konfekt
IIRC that's the case, but I could not easily find it in the man pages now.

from autorandr.

Related Issues (20)

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.