Introduced files to block steamos actions as we don't need updating
This commit is contained in:
21
files/scripts/changeperms.sh
Normal file
21
files/scripts/changeperms.sh
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Tell build process to exit if there are any errors.
|
||||||
|
set -oue pipefail
|
||||||
|
|
||||||
|
# gamescope session
|
||||||
|
sudo chmod 755 /usr/bin/gamescope-session
|
||||||
|
|
||||||
|
# jupiter biosupdate
|
||||||
|
sudo chmod 755 /usr/bin/jupiter-biosupdate
|
||||||
|
sudo chmod 755 /usr/bin/steamos-polkit-helpers/jupiter-biosupdate
|
||||||
|
|
||||||
|
# steamos select branch
|
||||||
|
sudo chmod 755 /usr/bin/steamos-select-branch
|
||||||
|
|
||||||
|
# steamos update
|
||||||
|
sudo chmod 755 /usr/bin/steamos-update
|
||||||
|
sudo chmod 755 /usr/bin/steamos-polkit-helpers/steamos-update
|
||||||
|
|
||||||
|
# steamos set timezone
|
||||||
|
sudo chmod 755 /usr/bin/steamos-polkit-helpers/steamos-set-timezone
|
19
files/system/usr/bin/gamescope-session
Normal file
19
files/system/usr/bin/gamescope-session
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Assume that MangoHud is not installed
|
||||||
|
MANGOAPP_FLAG=""
|
||||||
|
|
||||||
|
# Check that mangoapp is available. Set the flag if it exists,
|
||||||
|
# otherwise inform to check that MangoHud is installed and
|
||||||
|
# proceed without the flag.
|
||||||
|
if command -v mangoapp &> /dev/null;
|
||||||
|
then
|
||||||
|
MANGOAPP_FLAG="--mangoapp"
|
||||||
|
else
|
||||||
|
printf "[%s] [Info] 'mangoapp' is not available on your system. Check to see that MangoHud is installed.\n" $0
|
||||||
|
printf "[%s] [Info] Continuing without the '--mangoapp' flag.\n" $0
|
||||||
|
fi
|
||||||
|
|
||||||
|
gamescope \
|
||||||
|
$MANGOAPP_FLAG \
|
||||||
|
-e -- steam -steamdeck -steamos3
|
7
files/system/usr/bin/jupiter-biosupdate
Normal file
7
files/system/usr/bin/jupiter-biosupdate
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# As this is running on a standard Linux install
|
||||||
|
# state that no updates configured for this bios
|
||||||
|
# and exit
|
||||||
|
echo "No updates configured for this bios"
|
||||||
|
exit 0;
|
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Exit immediately on error and throw an error
|
||||||
|
# when using undefined variables
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
# Run the jupiter-biosupdate script
|
||||||
|
exec /usr/bin/jupiter-biosupdate "$0"
|
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Do nothing, assuming that the timezone will be set
|
||||||
|
# when installing Linux or configured separately
|
||||||
|
# from the terminal or desktop environment
|
||||||
|
exit 0;
|
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Exit immediately on error and throw an error
|
||||||
|
# when using undefined variables
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
# Run the steamos-update script
|
||||||
|
exec /usr/bin/steamos-update "$0"
|
5
files/system/usr/bin/steamos-select-branch
Normal file
5
files/system/usr/bin/steamos-select-branch
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# As this is running on a standard Linux install
|
||||||
|
# state this is not applicable
|
||||||
|
echo "Not applicable for this OS"
|
6
files/system/usr/bin/steamos-session-select
Normal file
6
files/system/usr/bin/steamos-session-select
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Shutting down Steam will return to the terminal,
|
||||||
|
# desktop environment or the login screen (display manager)
|
||||||
|
# depending on where Steam was launched.
|
||||||
|
steam -shutdown
|
6
files/system/usr/bin/steamos-update
Normal file
6
files/system/usr/bin/steamos-update
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Steam client updates are managed separately,
|
||||||
|
# so in this case return exit code 7 stating
|
||||||
|
# no system updates.
|
||||||
|
exit 7;
|
7
files/system/usr/share/wayland-sessions/steam.desktop
Normal file
7
files/system/usr/share/wayland-sessions/steam.desktop
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Name=Steam (Gamescope)
|
||||||
|
Comment=Run Steam directly in Gamescope
|
||||||
|
Exec=gamescope-session
|
||||||
|
Type=Application
|
||||||
|
DesktopNames=gamescope
|
4
recipes/components/change-perms-module.yml
Normal file
4
recipes/components/change-perms-module.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
modules:
|
||||||
|
- type: script
|
||||||
|
scripts:
|
||||||
|
- changeperms.sh
|
@@ -66,6 +66,9 @@ modules:
|
|||||||
- bluez-tools
|
- bluez-tools
|
||||||
- firewall-config
|
- firewall-config
|
||||||
|
|
||||||
|
# command to list information about monitors
|
||||||
|
- lshw
|
||||||
|
|
||||||
# applications
|
# applications
|
||||||
# fuzzy finder
|
# fuzzy finder
|
||||||
- fzf
|
- fzf
|
||||||
|
@@ -15,6 +15,7 @@ modules:
|
|||||||
- from-file: components/dnf-module.yml
|
- from-file: components/dnf-module.yml
|
||||||
- from-file: components/script-module.yml
|
- from-file: components/script-module.yml
|
||||||
- from-file: components/sys-files-module.yml
|
- from-file: components/sys-files-module.yml
|
||||||
|
- from-file: components/change-perms-module.yml
|
||||||
- from-file: components/systemd-module.yml
|
- from-file: components/systemd-module.yml
|
||||||
- from-file: components/default-flatpak.yml
|
- from-file: components/default-flatpak.yml
|
||||||
- from-file: components/chezmoi-module.yml
|
- from-file: components/chezmoi-module.yml
|
||||||
|
Reference in New Issue
Block a user