gip, gip4, gip6, ports, swapstat, sbver and steam-dl. All ignored $argv, so --help previously ran the query or the launcher. sbver keeps its own --brief flag: only argv[1] is inspected and --brief is not a help flag, so the body still runs for it.
22 lines
578 B
Fish
22 lines
578 B
Fish
# Copyright (C) 2026 Rootiest
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
# CATEGORY
|
|
# 13-media-and-utilities
|
|
#
|
|
# SYNOPSIS
|
|
# steam-dl
|
|
#
|
|
# DESCRIPTION
|
|
# Launches Steam with systemd-inhibit to prevent the system from idling
|
|
# or sleeping during active downloads.
|
|
#
|
|
# EXAMPLE
|
|
# steam-dl
|
|
function steam-dl --description 'Run Steam while inhibiting system sleep'
|
|
__fish_help_header (status current-function) $argv; and return 0
|
|
|
|
echo "Inhibiting sleep while Steam downloads..."
|
|
systemd-inhibit --why="Active Download" --who="User" --what=idle:sleep steam
|
|
end
|