dotfiles/utils/.local/bin/erctl

12 lines
224 B
Bash
Executable File

#!/usr/bin/env bash
# ericonr's script for system tasks
# detect session manager;
# systemd -> systemctl
# non-systemd -> loginctl
command -v systemctl >/dev/null 2>&1 && CTL=systemctl
CTL=${CTL:-loginctl}
exec $CTL "$@"