mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-03 17:41:58 +02:00
feat: "Start Steam silently" sub-option for the SteamOS conversion (silent) and Gaming on NVIDIA (nvsilent)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
62cb75d161
commit
5da1833a03
7 files changed
+104
-31
No files matched your search
+19
-1
@@ -57,7 +57,8 @@ nvidia_enable() {
|
||||
state_set nvidia installed_pkgs steam
|
||||
fi
|
||||
# Keeps what the Big Picture option set up; a first run starts Steam normally.
|
||||
local unit_args=""; bigpicture_status && unit_args=-gamepadui
|
||||
local unit_args=""
|
||||
if bigpicture_status; then unit_args=-gamepadui; elif nvsilent_status; then unit_args=-silent; fi
|
||||
nvidia_write_unit "$unit_args" || return 1
|
||||
user_systemctl enable "$NVIDIA_UNIT" >/dev/null 2>&1 || { err "Enabling $NVIDIA_UNIT failed."; return 1; }
|
||||
nvidia_kernel_enable || return 1
|
||||
@@ -96,6 +97,23 @@ bigpicture_disable() {
|
||||
nvidia_write_unit "" && ok "Steam starts in its normal window at your next login."
|
||||
}
|
||||
|
||||
# Sub-option: Steam starts silently (tray only, no window). Big Picture and
|
||||
# a silent start exclude each other (the menus untick one when the other is
|
||||
# ticked); a first run with both gets Big Picture.
|
||||
nvsilent_status() { grep -qs -- '-silent' "$(nvidia_unit_file)"; }
|
||||
|
||||
nvsilent_enable() {
|
||||
[[ -f "$(nvidia_unit_file)" ]] || return 0
|
||||
bigpicture_status && return 0
|
||||
nvidia_write_unit -silent || return 1
|
||||
ok "Steam starts silently at your next login."
|
||||
}
|
||||
|
||||
nvsilent_disable() {
|
||||
nvsilent_status || return 0
|
||||
nvidia_write_unit "" && ok "Steam starts in its normal window at your next login."
|
||||
}
|
||||
|
||||
# --- Kernel parameters and early modules (a supported card only)
|
||||
|
||||
nvidia_supported() {
|
||||
|
||||
Reference in new issue
Block a user