mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-26 06:40:33 +00:00
Merge pull request #50 from ublue-os/just-revert-bash
Revert "feat(just): Default to using bash"
This commit is contained in:
commit
273b682dbc
@ -1,5 +1,3 @@
|
|||||||
set shell := ["bash", "-c"]
|
|
||||||
|
|
||||||
enable-gamescope-autologin:
|
enable-gamescope-autologin:
|
||||||
systemctl disable --now plasma-autologin
|
systemctl disable --now plasma-autologin
|
||||||
systemctl enable --now gamescope-autologin
|
systemctl enable --now gamescope-autologin
|
||||||
@ -55,6 +53,7 @@ enable-wallpaper-engine:
|
|||||||
rm -rf /tmp/wallpaper-engine-kde-plugin
|
rm -rf /tmp/wallpaper-engine-kde-plugin
|
||||||
|
|
||||||
deckswap-on:
|
deckswap-on:
|
||||||
|
#!/usr/bin/env bash
|
||||||
STATUS=$(systemctl status deckswap.service)
|
STATUS=$(systemctl status deckswap.service)
|
||||||
if grep 'inactive' <<< ${STATUS}; then
|
if grep 'inactive' <<< ${STATUS}; then
|
||||||
systemctl enable deckswap.service
|
systemctl enable deckswap.service
|
||||||
@ -64,6 +63,7 @@ deckswap-on:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
deckswap-off:
|
deckswap-off:
|
||||||
|
#!/usr/bin/env bash
|
||||||
STATUS=$(systemctl status deckswap.service)
|
STATUS=$(systemctl status deckswap.service)
|
||||||
if grep -v 'inactive' <<< ${STATUS}; then
|
if grep -v 'inactive' <<< ${STATUS}; then
|
||||||
systemctl disable deckswap.service
|
systemctl disable deckswap.service
|
||||||
@ -73,6 +73,7 @@ deckswap-off:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
resize-deckswap:
|
resize-deckswap:
|
||||||
|
#!/usr/bin/env bash
|
||||||
CONFIG='/etc/default/deckswap'
|
CONFIG='/etc/default/deckswap'
|
||||||
CURRENT_SIZE=$(cat "${CONFIG}" | sed 's/SWAP_SIZE=//g')
|
CURRENT_SIZE=$(cat "${CONFIG}" | sed 's/SWAP_SIZE=//g')
|
||||||
echo 'Current size: '${CURRENT_SIZE}
|
echo 'Current size: '${CURRENT_SIZE}
|
||||||
@ -94,6 +95,7 @@ resize-deckswap:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
zram-on:
|
zram-on:
|
||||||
|
#!/usr/bin/env bash
|
||||||
KARGS=$(rpm-ostree kargs)
|
KARGS=$(rpm-ostree kargs)
|
||||||
if grep 'zram' <<< ${KARGS}; then
|
if grep 'zram' <<< ${KARGS}; then
|
||||||
rpm-ostree kargs --delete=zram
|
rpm-ostree kargs --delete=zram
|
||||||
@ -103,6 +105,7 @@ zram-on:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
zram-off:
|
zram-off:
|
||||||
|
#!/usr/bin/env bash
|
||||||
KARGS=$(rpm-ostree kargs)
|
KARGS=$(rpm-ostree kargs)
|
||||||
if grep -v 'zram' <<< ${KARGS}; then
|
if grep -v 'zram' <<< ${KARGS}; then
|
||||||
rpm-ostree kargs --append=zram=0
|
rpm-ostree kargs --append=zram=0
|
||||||
@ -112,6 +115,7 @@ zram-off:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
resize-zram:
|
resize-zram:
|
||||||
|
#!/usr/bin/env bash
|
||||||
CONFIG='/etc/systemd/zram-generator.conf'
|
CONFIG='/etc/systemd/zram-generator.conf'
|
||||||
CURRENT_SIZE=$(cat "${CONFIG}" | sed 's/zram-size=//g')
|
CURRENT_SIZE=$(cat "${CONFIG}" | sed 's/zram-size=//g')
|
||||||
echo 'Current size: '${CURRENT_SIZE}
|
echo 'Current size: '${CURRENT_SIZE}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
set shell := ["bash", "-c"]
|
|
||||||
|
|
||||||
install-bazzite-arch:
|
install-bazzite-arch:
|
||||||
|
#!/usr/bin/env bash
|
||||||
KARGS=$(rpm-ostree kargs)
|
KARGS=$(rpm-ostree kargs)
|
||||||
if grep 'nvidia' <<< ${KARGS}; then
|
if grep 'nvidia' <<< ${KARGS}; then
|
||||||
echo 'Installing Bazzite Arch (Nvidia)...'
|
echo 'Installing Bazzite Arch (Nvidia)...'
|
||||||
@ -42,6 +41,7 @@ enable-wallpaper-engine:
|
|||||||
rm -rf /tmp/wallpaper-engine-kde-plugin
|
rm -rf /tmp/wallpaper-engine-kde-plugin
|
||||||
|
|
||||||
zram-on:
|
zram-on:
|
||||||
|
#!/usr/bin/env bash
|
||||||
KARGS=$(rpm-ostree kargs)
|
KARGS=$(rpm-ostree kargs)
|
||||||
if grep 'zram' <<< ${KARGS}; then
|
if grep 'zram' <<< ${KARGS}; then
|
||||||
rpm-ostree kargs --delete=zram
|
rpm-ostree kargs --delete=zram
|
||||||
@ -51,6 +51,7 @@ zram-on:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
zram-off:
|
zram-off:
|
||||||
|
#!/usr/bin/env bash
|
||||||
KARGS=$(rpm-ostree kargs)
|
KARGS=$(rpm-ostree kargs)
|
||||||
if grep -v 'zram' <<< ${KARGS}; then
|
if grep -v 'zram' <<< ${KARGS}; then
|
||||||
rpm-ostree kargs --append=zram=0
|
rpm-ostree kargs --append=zram=0
|
||||||
@ -60,6 +61,7 @@ zram-off:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
resize-zram:
|
resize-zram:
|
||||||
|
#!/usr/bin/env bash
|
||||||
CONFIG='/etc/systemd/zram-generator.conf'
|
CONFIG='/etc/systemd/zram-generator.conf'
|
||||||
CURRENT_SIZE=$(cat "${CONFIG}" | sed 's/zram-size=//g')
|
CURRENT_SIZE=$(cat "${CONFIG}" | sed 's/zram-size=//g')
|
||||||
echo 'Current size: '${CURRENT_SIZE}
|
echo 'Current size: '${CURRENT_SIZE}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user