add lazy autostarting journalctl in footclient

This commit is contained in:
Aminda Suomalainen 2025-09-18 11:02:57 +03:00
parent 4fbdcc3e40
commit b62b2ad6b5
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
4 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Exec=footclient -T DNS journalctl --no-hostname --follow -u unbound -u systemd-resolved
Icon=foot
Terminal=false
Name=DNS log
Comment=sysadmin laziness

View File

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Exec=footclient -T Network journalctl --no-hostname --follow -u NetworkManager -u systemd-networkd -u wpa_supplicant -u iwd
Icon=foot
Terminal=false
Name=Network log
Comment=sysadmin laziness

View File

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Exec=footclient -T System journalctl --no-hostname --follow
Icon=foot
Terminal=false
Name=System log
Comment=sysadmin laziness

View File

@ -213,6 +213,11 @@ if [ "$(id -u)" == "0" ]; then
# SECURITY WARNING, autostarts
(rm -v /etc/xdg/autostart/footclient-tmux.desktop &)
cp -v etc/xdg/autostart/foot-tmux.desktop /etc/xdg/autostart/
if hash journalctl 2> /dev/null; then
cp -v etc/xdg/autostart/footclient-journal.desktop /etc/xdg/autostart/
cp -v etc/xdg/autostart/footclient-journal-dns.desktop /etc/xdg/autostart/
cp -v etc/xdg/autostart/footclient-journal-network.desktop /etc/xdg/autostart/
fi
# Enables laziness on checking whether or not apt is installed
mkdir -vp /etc/apt/apt.conf.d/