mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-11-16 09:37:21 +01:00
add lazy autostarting journalctl in footclient
This commit is contained in:
parent
4fbdcc3e40
commit
b62b2ad6b5
7
etc/xdg/autostart/footclient-journal-dns.desktop
Normal file
7
etc/xdg/autostart/footclient-journal-dns.desktop
Normal 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
|
||||||
7
etc/xdg/autostart/footclient-journal-network.desktop
Normal file
7
etc/xdg/autostart/footclient-journal-network.desktop
Normal 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
|
||||||
7
etc/xdg/autostart/footclient-journal.desktop
Normal file
7
etc/xdg/autostart/footclient-journal.desktop
Normal 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
|
||||||
5
install
5
install
@ -213,6 +213,11 @@ if [ "$(id -u)" == "0" ]; then
|
|||||||
# SECURITY WARNING, autostarts
|
# SECURITY WARNING, autostarts
|
||||||
(rm -v /etc/xdg/autostart/footclient-tmux.desktop &)
|
(rm -v /etc/xdg/autostart/footclient-tmux.desktop &)
|
||||||
cp -v etc/xdg/autostart/foot-tmux.desktop /etc/xdg/autostart/
|
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
|
# Enables laziness on checking whether or not apt is installed
|
||||||
mkdir -vp /etc/apt/apt.conf.d/
|
mkdir -vp /etc/apt/apt.conf.d/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user