This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Place in /etc/systemd/system | |
| ## Service is started by the timer | |
| [Unit] | |
| Description=Custom Universal Blue Update Oneshot Service | |
| StartLimitBurst=3 | |
| StartLimitIntervalSec=600 | |
| [Service] | |
| Type=oneshot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Place somewhere: for example ~/bin/mc-wrapper-homebrew-bash.sh | |
| ## Paste the following in ~/.bashrc: alias mc='. ~/bin/mc-wrapper-homebrew-bash.sh' | |
| if test -n "$MC_TMPDIR"; then | |
| MC_PWD_FILE="`mktemp "${MC_TMPDIR}/mc.pwd.XXXXXX"`" | |
| elif test -n "$TMPDIR"; then | |
| MC_PWD_FILE="`mktemp "${TMPDIR}/mc.pwd.XXXXXX"`" | |
| else | |
| MC_PWD_FILE="`mktemp "/tmp/mc.pwd.XXXXXX"`" | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## mc-wrapper script to exit in the last active directory of Midnight Commander for the fish shell (homebrew version) | |
| ## Place in: ~/.config/fish/functions/mc-wrapper-homebrew-fish.fish | |
| ## Original author: Arkadiusz Halicki (https://github.com/halicki) | |
| ## Adjusted with help from: Azlan Mukhtar (https://github.com/azlan) | |
| function mc | |
| set SHELL_PID %self | |
| if not test -d "/tmp/mc-$USER" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Oneshot systemd service file for the Framework 16 laptop to set batery charge limit | |
| ## Defaults here is to stop charging at 80%. Customize as needed | |
| ## The framework 16 laptop does NOT support a start threshold (charge_control_start_threshold) atm (sept 2026) | |
| ## Place in: /etc/systemd/system/battery-charge-limit.service | |
| ## Reload after making: sudo systemctl daemon-reload | |
| ## Enable and start: sudo systemctl enable --now battery-charge-limit.service | |
| [Unit] | |
| Description=Set battery charge limit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## mc-wrapper script to exit in the last active directory of Midnight Commander for the fish shell (regular version) | |
| ## Place in: ~/.config/fish/functions/mc-wrapper-regular-fish.fish | |
| ## Original author: Arkadiusz Halicki (https://github.com/halicki) | |
| ## Adjusted with help from: Azlan Mukhtar (https://github.com/azlan) | |
| function mc | |
| set SHELL_PID %self | |
| if not test -d "/tmp/mc-$USER" |