Commit Graph

22 Commits

Author SHA1 Message Date
расходный материал 41081a5bdf
nix: fix prevent-install-and-copy.patch (#787) 2024-11-03 17:21:17 +01:00
Adnan Hodzic a42e8fb51e v2.4.0 release 2024-09-05 07:35:37 +02:00
shadeyg56 c6a4580e85
Unpin psutil and requests (#759) 2024-08-04 10:34:19 +02:00
Svenum c7bab0e36f
update flake + remove patch from newer pyinotify version in nixpkgs (#747) 2024-07-23 13:36:50 -05:00
Angel 6f7e469e66
Code refactoring, more readable and easier to modify (#736)
* Add global variables

* Add global variables

* Code refactoring

* Refactoring
2024-07-16 16:37:04 +02:00
shadeyg56 1e44c8031c Nix: fix module 2024-06-04 08:11:33 -05:00
Isabel 7313ec9b8c
nix: add overlay; use best practices (#718)
* feat(nix): add overlay

* refactor(nix): use best practices

* chore: update flake inputs

* refactor(nix): remove unused replace
2024-06-03 16:56:10 -05:00
shadeyg56 487c344da3
Nix: fix duplicated package (#701) 2024-05-25 17:02:57 +02:00
shadeyg56 a5ffa5730b Nix: add 'getent' package
Fixes #704
2024-05-21 22:49:41 -05:00
Svenum e878dd51fe
fix build (#708) 2024-05-21 18:43:05 -05:00
Adnan Hodzic 78c3f71438 v2.3.0 release 2024-05-09 10:07:52 +02:00
shadeyg56 0815e7eb96
Rework config and reload config on file change/creation/deletion (#663)
* add config.py and config_event_handler.py
also introduces the utils folder

* update config imports and variables

* add 'pyinotify' dependency

* config: check for changes using threading

* config: handle errors and new eventsx

* config: set_path even if file doesn't exist and make new ConfigParser on every update

* fix get_config call

* config: check for changes on moved file

* call notifier.start() manually to prevent hanging

* config: update comments

* battery: fix config imports

* config: fix config deletion detection

* Add load from user config in XDG_CONFIG_HOME if available (#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: https://github.com/AdnanHodzic/auto-cpufreq/pull/672#discussion_r1548003119

* Update configuration options in README

See also: #672

* config: move find_config_file function and fix finding home directory

* auto_cpufreq: fix hanging on --daemon, --live, and --monitor

* swap pyinotify for patched version

---------

Co-authored-by: Steven Braun <steven.braun.mz@gmail.com>
2024-04-30 08:35:53 +02:00
shadeyg56 5e17ee31b1 update psutil to patched Git version
Fixes #654
2024-04-09 23:57:05 -05:00
Adnan Hodzic 7afd192ff9 v2.2.0 release 2024-02-14 17:47:37 +01:00
shadeyg56 4dbad5539a
nix: bump version to 2.1.0 and update lock file (#609)
* Update flake.lock

* nix: bump version to 2.1.0
2023-11-25 00:27:58 -06:00
shadeyg56 78a86a1126 Nix: inherit system in module 2023-10-13 16:47:47 -05:00
shadeyg56 a79b3be822 Nix: remove darwin and fix icon 2023-10-13 16:47:16 -05:00
isabel 4165f9483b
revert: changes to module 2023-10-13 15:39:10 +01:00
isabel d710518c61
refactor(nix): reorganise files 2023-10-13 15:31:59 +01:00
Lab Rat 37e12a4266
Support for pyproject.toml (#576)
* feat: support for pyproject.toml

* Nix: Fix package to work with pyproject.toml

---------

Co-authored-by: shadeyg56 <shadeyg56@gmail.com>
2023-10-13 08:04:49 +02:00
shadeyg56 7f9ced7bfd
nix: replace local derivation with nixpkgs derivation (#572) 2023-10-04 11:51:54 +02:00
shadeyg56 3e2b779406
add Nix flake and documentation (#553) 2023-09-16 11:36:01 +02:00