How to run containers using systemctl as user even when user is logged out
# In order to enable executing process with logged out shell
loginctl enable-linger user
# Move to user systemd dir
cd ~/.config/systemd/user/
# Generate systemd files for container
podman generate systemd --restart-policy=always -t 1 --name container_name --files
systemctl --user enable container-container_name.service
Move a container image using scp
podman image save 97f3876877e2 -o 97f3876877e2.tgz
podman load --input 97f3876877e2.tgz
Automatically change power profiles on power supply status
$ cat /etc/udev/rules.d/61-onbattery.rules
# Rule for when switching to battery
SUBSYSTEM=="power_supply",ENV{POWER_SUPPLY_ONLINE}=="0",RUN+="/usr/bin/powerprofilesctl set power-saver"
$ cat /etc/udev/rules.d/62-onpower.rules
# Rule for when switching to power supply
SUBSYSTEM=="power_supply",ENV{POWER_SUPPLY_ONLINE}=="1",RUN+="/usr/bin/powerprofilesctl set performance"
$ sudo udevadm control --reload-rules && sudo udevadm trigger