mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-29 22:20:21 +00:00
feat(just): Default to using bash
This commit is contained in:
parent
4b89985861
commit
982be6c44f
@ -1,3 +1,5 @@
|
||||
set shell := ["bash", "-c"]
|
||||
|
||||
enable-gamescope-autologin:
|
||||
systemctl disable --now plasma-autologin
|
||||
systemctl enable --now gamescope-autologin
|
||||
@ -43,7 +45,6 @@ enable-wallpaper-engine:
|
||||
rm -rf /tmp/wallpaper-engine-kde-plugin
|
||||
|
||||
deckswap-on:
|
||||
#!/usr/bin/env bash
|
||||
STATUS=$(systemctl status deckswap.service)
|
||||
if grep 'inactive' <<< ${STATUS}; then
|
||||
systemctl enable deckswap.service
|
||||
@ -53,7 +54,6 @@ deckswap-on:
|
||||
fi
|
||||
|
||||
deckswap-off:
|
||||
#!/usr/bin/env bash
|
||||
STATUS=$(systemctl status deckswap.service)
|
||||
if grep -v 'inactive' <<< ${STATUS}; then
|
||||
systemctl disable deckswap.service
|
||||
@ -63,7 +63,6 @@ deckswap-off:
|
||||
fi
|
||||
|
||||
resize-deckswap:
|
||||
#!/usr/bin/env bash
|
||||
CONFIG='/etc/default/deckswap'
|
||||
CURRENT_SIZE=$(cat "${CONFIG}" | sed 's/SWAP_SIZE=//g')
|
||||
echo 'Current size: '${CURRENT_SIZE}
|
||||
@ -85,7 +84,6 @@ resize-deckswap:
|
||||
fi
|
||||
|
||||
zram-on:
|
||||
#!/usr/bin/env bash
|
||||
KARGS=$(rpm-ostree kargs)
|
||||
if grep 'zram' <<< ${KARGS}; then
|
||||
rpm-ostree kargs --delete=zram
|
||||
@ -95,7 +93,6 @@ zram-on:
|
||||
fi
|
||||
|
||||
zram-off:
|
||||
#!/usr/bin/env bash
|
||||
KARGS=$(rpm-ostree kargs)
|
||||
if grep -v 'zram' <<< ${KARGS}; then
|
||||
rpm-ostree kargs --append=zram=0
|
||||
@ -105,7 +102,6 @@ zram-off:
|
||||
fi
|
||||
|
||||
resize-zram:
|
||||
#!/usr/bin/env bash
|
||||
CONFIG='/etc/systemd/zram-generator.conf'
|
||||
CURRENT_SIZE=$(cat "${CONFIG}" | sed 's/zram-size=//g')
|
||||
echo 'Current size: '${CURRENT_SIZE}
|
||||
|
@ -1,5 +1,6 @@
|
||||
set shell := ["bash", "-c"]
|
||||
|
||||
install-bazzite-arch:
|
||||
#!/usr/bin/env bash
|
||||
KARGS=$(rpm-ostree kargs)
|
||||
if grep 'nvidia' <<< ${KARGS}; then
|
||||
echo 'Installing Bazzite Arch (Nvidia)...'
|
||||
@ -38,7 +39,6 @@ enable-wallpaper-engine:
|
||||
rm -rf /tmp/wallpaper-engine-kde-plugin
|
||||
|
||||
zram-on:
|
||||
#!/usr/bin/env bash
|
||||
KARGS=$(rpm-ostree kargs)
|
||||
if grep 'zram' <<< ${KARGS}; then
|
||||
rpm-ostree kargs --delete=zram
|
||||
@ -48,7 +48,6 @@ zram-on:
|
||||
fi
|
||||
|
||||
zram-off:
|
||||
#!/usr/bin/env bash
|
||||
KARGS=$(rpm-ostree kargs)
|
||||
if grep -v 'zram' <<< ${KARGS}; then
|
||||
rpm-ostree kargs --append=zram=0
|
||||
@ -58,7 +57,6 @@ zram-off:
|
||||
fi
|
||||
|
||||
resize-zram:
|
||||
#!/usr/bin/env bash
|
||||
CONFIG='/etc/systemd/zram-generator.conf'
|
||||
CURRENT_SIZE=$(cat "${CONFIG}" | sed 's/zram-size=//g')
|
||||
echo 'Current size: '${CURRENT_SIZE}
|
||||
|
Loading…
x
Reference in New Issue
Block a user