Commit graph

1052 commits

Author SHA1 Message Date
Pig Monkey
86ccff0e37 log illuminanced to syslog 2025-01-24 11:20:46 -08:00
Pig Monkey
f8665fa738 switch to powersave profile sooner 2025-01-16 08:26:29 -08:00
Pig Monkey
15e55abc78 add ambient light sensor support
These illuminanced vars are for the Framework 13 AMD. Other systems will
likely need other paths.
2025-01-15 23:00:52 -08:00
Pig Monkey
cde30883b9 replace inotify with sleep
inotify is unreliable on /sys, so just loop forever and periodically
check the state of things.
2025-01-15 18:05:58 -08:00
Pig Monkey
ea622e65c1 toggle wifi on ethernet via networkmanager
Required only for the brave new post-TLP world.
2025-01-15 18:01:39 -08:00
Pig Monkey
3cab47b5ba replace python-black with ruff 2025-01-14 17:26:01 -08:00
Pig Monkey
3dd640ed31 monitor AC status rather than battery status
If you set a charging threshold on the battery, you may bounce between
charging and discharging while still on AC. The profile only needs to
change when AC is disconnected. If the battery is discharging, but AC is
connected, don't switch to a power-saving profile.

I think.
2025-01-14 09:22:38 -08:00
Pig Monkey
89ee8d7360 install xcalib
https://wiki.archlinux.org/title/ICC_profiles#xcalib
2025-01-14 09:22:19 -08:00
Pig Monkey
69d6368d7e update backitup 2025-01-14 08:39:59 -08:00
Pig Monkey
8ca5bdef5e switch default to tuned
Framework says no TLP on AMD.

https://knowledgebase.frame.work/en_us/optimizing-ubuntu-battery-life-Sye_48Lg3

TuneD is now the Fedora default, so I guess it is the new hotness
anyway. (It doesn't seem as nice as TLP, but nobody asked me.)
2025-01-14 08:28:56 -08:00
Pig Monkey
1d4dc29b73 set battery idle on framework machines
Apparently changes made via ectool only survive power off if the laptop
remains plugged in, so in practice we have to set this on every boot.

https://wiki.archlinux.org/title/Framework_Laptop_13#Battery_control

Setting the lower and upper charge percentage to the same value causes
the controller to idle the battery at that percentage. This seems like
it would be better for the long term health of the battery than giving
the battery a range to constantly dis/charge between. It also feels more
like what I'm used to from all my years of Thinkpads and TLP.

I have also set the max charge on my battery to 90% in the BIOS, as per:
https://guides.frame.work/Guide/Enabling+Battery+Saver+Functionality+in+BIOS/392
2025-01-14 08:23:17 -08:00
Pig Monkey
35b94beb41 auto-switch tuned profiles on battery
I'm not sure if a looping script like this is the best way to accomplish
this. I don't understand why TuneD doesn't provide this functionality
itself, like TLP does.
2025-01-14 08:19:55 -08:00
Pig Monkey
65d52759b3 install wget 2025-01-13 21:37:59 -08:00
Pig Monkey
37822a2562 support wireless regulatory domain
https://wiki.archlinux.org/title/Network_configuration/Wireless#Respecting_the_regulatory_domain
2025-01-13 18:45:43 -08:00
Pig Monkey
8f688609e1 remove trusted network 2025-01-13 18:39:15 -08:00
Pig Monkey
e0514e7498 disable user ssh key install by default
I use my PGP key on a Yubikey for SSH.
2025-01-13 18:38:46 -08:00
Pig Monkey
df36f166f9 disable dotfiles actions by default
I bring these over as part of my data recovery procedures now.
2025-01-13 18:38:05 -08:00
Pig Monkey
cabd9616f3 drop surfraw 2025-01-13 18:37:14 -08:00
Pig Monkey
6f91ff344c imlib2-heic aur package no longer exists 2025-01-13 18:36:33 -08:00
Pig Monkey
7d06c5b849 make video_drivers var optional 2025-01-13 18:35:33 -08:00
Pig Monkey
d5f369f0f8 remove ansible_processor condition
Intel vs AMD is determined within the role
2025-01-13 18:34:27 -08:00
Pig Monkey
2580286757 install iso ships vim now, not vi 2025-01-13 18:33:48 -08:00
Pig Monkey
5e7631f0a5 expect most systems to use NVME disks these days 2025-01-13 18:33:10 -08:00
Pig Monkey
0126cb6ff2 add option for tuned-ppd 2025-01-11 18:37:04 -08:00
Pig Monkey
aa9255b16e add ansible_facts dump
Useful for seeing what Ansible knows about the system.

    $ ansible-playbook -i localhost facts.yml
    $ less /tmp/ansible_facts.json
2025-01-09 18:08:40 -08:00
Pig Monkey
79e261bd84 drop undertime
I still use this daily, but this is the sort of thing I now prefer to
install via uv rather than as a system package.
2025-01-05 16:34:19 -08:00
Pig Monkey
cf10656a5a drop pipx
uv replaces this completely.
2025-01-05 16:33:58 -08:00
Pig Monkey
9896a6b302 p7zip is now 7zip 2025-01-01 22:52:01 -08:00
Pig Monkey
966b159668 user kewlfft.aur collection
Closes #120 #74
2024-12-01 20:21:53 -08:00
Pig Monkey
b4a56bf343 leave 256MB free for e2scrub
https://man.archlinux.org/man/e2scrub.8
2024-12-01 19:22:43 -08:00
Pig Monkey
9956bf6b5f apparently grub can open luks2 volumes now
But only if it uses PBKDF2.
2024-12-01 19:16:35 -08:00
Pig Monkey
a506a36567 update timew holiday refresh script location 2024-12-01 19:11:52 -08:00
Pig Monkey
f6e178de4d drop radio role by default
I do not use or maintain any of this.
2024-12-01 19:10:01 -08:00
Pig Monkey
b1843b5956 drop old thinkpad battery packages
Modern kernels support Thinkpad battery controls. Additional packages
are no longer required.

https://linrunner.de/tlp/faq/battery.html#which-external-kernel-module-do-i-need-for-my-thinkpad
2024-12-01 18:38:03 -08:00
Pig Monkey
2b3da28aa7 replace youtube-dl with yt-dlp 2024-12-01 18:23:14 -08:00
Pig Monkey
34ae47664a replace abcde with whipper 2024-12-01 18:16:34 -08:00
Pig Monkey
919d40239e drop geteltorito
The AUR package currently has broken checksums. I can't remember the
last time I used this. And it is just a perl script, so there's no value
in having it as a package. Just curl the script if you need it, and add
it to $PATH if you're feeling ambitious.
2024-12-01 18:11:14 -08:00
Pig Monkey
3fade1a9f7 remove autocutsel
This package was dropped down to the AUR, and I don't find it useful
enough to justify a non-official package.
2024-12-01 18:02:58 -08:00
Pig Monkey
66647279ba perform shell tasks after user init
Since the shell tasks now include installing an AUR package, the user
must first exist.
2024-12-01 17:49:13 -08:00
Pig Monkey
cb8db79203 add additional audio packages 2024-12-01 17:45:40 -08:00
Pig Monkey
51db611e40 add new trusted network 2024-11-25 17:16:46 -08:00
Pig Monkey
81e5ce6c82 Merge branch 'brett-reflector_template_fix' 2024-10-25 12:20:49 -07:00
Brett Eisenberg
e32236d76c fix missing brace 2024-10-19 14:09:21 -07:00
Pig Monkey
778400c2db Merge branch 'brett-mirrormagic' 2024-09-18 15:52:41 -07:00
Brett Eisenberg
16813d8e24 allow mirror update to optionally limit sources by country 2024-09-17 13:06:02 -07:00
Pig Monkey
de59ed760b add wait variable for goimapnotify
Previously `wait` could be defined in the user's config file, but in the
new release it appears to only be supported as a flag, so we have to
override the systemd service.
2024-09-16 15:56:35 -07:00
Pig Monkey
6e81116824 Merge branch 'brett-mail-oauth2' 2024-08-22 15:49:14 -07:00
Brett Eisenberg
01f7075c32 add oauth2 support for msmtp and mbsync 2024-08-21 12:14:01 -07:00
Pig Monkey
169af63185 add uv 2024-08-20 16:39:10 -07:00
Pig Monkey
83d9fc07ca replace lowbatt.sh with poweralertd
Existing users can remove the old cruft:

    $ sudo systemctl disable lowbatt.timer
    $ sudo rm /usr/local/bin/lowbatt /etc/systemd/system/lowbatt.*
    $ sudo systemctl daemon-reload
2024-07-18 20:09:50 -07:00