Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework config and reload config on file change/creation/deletion #663

Merged
merged 19 commits into from
Apr 30, 2024

Commits on Mar 6, 2024

  1. add config.py and config_event_handler.py

    also introduces the utils folder
    shadeyg56 committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    cfa2c8f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    17522bf View commit details
    Browse the repository at this point in the history
  3. add 'pyinotify' dependency

    shadeyg56 committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    eb31ce3 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2024

  1. Configuration menu
    Copy the full SHA
    84a9855 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d9453a0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    47711ff View commit details
    Browse the repository at this point in the history
  4. fix get_config call

    shadeyg56 committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    6e269d9 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. Configuration menu
    Copy the full SHA
    6cf4a66 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    81536c8 View commit details
    Browse the repository at this point in the history
  3. config: update comments

    shadeyg56 committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    00c9630 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    de03310 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2024

  1. Configuration menu
    Copy the full SHA
    9056d7d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5397ca5 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2024

  1. Add load from user config in XDG_CONFIG_HOME if available (AdnanHodzi…

    …c#672)
    
    * Add load from user config from in XDG_CONFIG_HOME if available
    
    This update introduces the flexibility to load the configuration file from
    multiple locations, prioritizing user preferences and system standards.
    Previously, the configuration was strictly read from a hardcoded
    system path (`/etc/auto-cpufreq.conf`). Now, the application first checks if the
    user has specified a configuration file path via command line arguments. If not,
    it looks for a configuration file in the user's config
    directory (`$XDG_CONFIG_HOME/auto-cpufreq/auto-cpufreq.conf`). If neither is
    found, it defaults to the original system-wide configuration file.
    
    This allows users to add their auto-cpufreq configuration to their dotfiles.
    
    * If --config is set but invalid, exit with error
    
    * Remove redundant empty string check on config file path
    
    * Remove duplicate isfile check for config path
    
    See also: AdnanHodzic#672 (comment)
    
    * Update configuration options in README
    
    See also: AdnanHodzic#672
    braun-steven committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    4cdcf74 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'config-conflict' into config-update

    Co-authored-by: Steven Braun <steven.braun.mz@gmail.com>
    shadeyg56 and braun-steven committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    a8c66be View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bc99a28 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2024

  1. Configuration menu
    Copy the full SHA
    e540121 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. Configuration menu
    Copy the full SHA
    00463b3 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2024

  1. Configuration menu
    Copy the full SHA
    e3678c1 View commit details
    Browse the repository at this point in the history