Compare commits
10 Commits
08df911366
...
2e57d9defb
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e57d9defb | |||
| 83e9159d0e | |||
| b3ff021675 | |||
| a7fa1306e8 | |||
| 913ad1c4d0 | |||
| 635e5212ec | |||
| 22b11f9aad | |||
| d36f027fc5 | |||
| 269ced240d | |||
| 707c3256db |
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"editor.selectionClipboard": false
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
# This file was created by fish when upgrading to version 4.3, to migrate
|
||||||
|
# the 'fish_key_bindings' variable from its old default scope (universal)
|
||||||
|
# to its new default scope (global). We recommend you delete this file
|
||||||
|
# and configure key bindings in ~/.config/fish/config.fish if needed.
|
||||||
|
|
||||||
|
# set --global fish_key_bindings fish_default_key_bindings
|
||||||
|
|
||||||
|
# Prior to version 4.3, fish shipped an event handler that runs
|
||||||
|
# `set --universal fish_key_bindings fish_default_key_bindings`
|
||||||
|
# whenever the fish_key_bindings variable is erased.
|
||||||
|
# This means that as long as any fish < 4.3 is still running on this system,
|
||||||
|
# we cannot complete the migration.
|
||||||
|
# As a workaround, erase the universal variable at every shell startup.
|
||||||
|
set --erase --universal fish_key_bindings
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
# This file was created by fish when upgrading to version 4.3, to migrate
|
||||||
|
# theme variables from universal to global scope.
|
||||||
|
# Don't edit this file, as it will be written by the web-config tool (`fish_config`).
|
||||||
|
# To customize your theme, delete this file and see
|
||||||
|
# help interactive#syntax-highlighting
|
||||||
|
# or
|
||||||
|
# man fish-interactive | less +/^SYNTAX.HIGHLIGHTING
|
||||||
|
# for appropriate commands to add to ~/.config/fish/config.fish instead.
|
||||||
|
# See also the release notes for fish 4.3.0 (run `help relnotes`).
|
||||||
|
|
||||||
|
set --global fish_color_autosuggestion brblack
|
||||||
|
set --global fish_color_cancel -r
|
||||||
|
set --global fish_color_command normal
|
||||||
|
set --global fish_color_comment red
|
||||||
|
set --global fish_color_cwd green
|
||||||
|
set --global fish_color_cwd_root red
|
||||||
|
set --global fish_color_end green
|
||||||
|
set --global fish_color_error brred
|
||||||
|
set --global fish_color_escape brcyan
|
||||||
|
set --global fish_color_history_current --bold
|
||||||
|
set --global fish_color_host normal
|
||||||
|
set --global fish_color_host_remote yellow
|
||||||
|
set --global fish_color_normal normal
|
||||||
|
set --global fish_color_operator brcyan
|
||||||
|
set --global fish_color_param cyan
|
||||||
|
set --global fish_color_quote yellow
|
||||||
|
set --global fish_color_redirection cyan --bold
|
||||||
|
set --global fish_color_search_match white --background=brblack
|
||||||
|
set --global fish_color_selection white --bold --background=brblack
|
||||||
|
set --global fish_color_status red
|
||||||
|
set --global fish_color_user brgreen
|
||||||
|
set --global fish_color_valid_path --underline
|
||||||
|
set --global fish_pager_color_completion normal
|
||||||
|
set --global fish_pager_color_description yellow -i
|
||||||
|
set --global fish_pager_color_prefix normal --bold --underline
|
||||||
|
set --global fish_pager_color_progress brwhite --background=cyan
|
||||||
|
set --global fish_pager_color_selected_background -r
|
||||||
@@ -1,33 +1,5 @@
|
|||||||
# This file contains fish universal variable definitions.
|
# This file contains fish universal variable definitions.
|
||||||
# VERSION: 3.0
|
# VERSION: 3.0
|
||||||
SETUVAR __fish_initialized:3800
|
SETUVAR __fish_initialized:4300
|
||||||
SETUVAR fish_color_autosuggestion:brblack
|
|
||||||
SETUVAR fish_color_cancel:\x2dr
|
|
||||||
SETUVAR fish_color_command:normal
|
|
||||||
SETUVAR fish_color_comment:red
|
|
||||||
SETUVAR fish_color_cwd:green
|
|
||||||
SETUVAR fish_color_cwd_root:red
|
|
||||||
SETUVAR fish_color_end:green
|
|
||||||
SETUVAR fish_color_error:brred
|
|
||||||
SETUVAR fish_color_escape:brcyan
|
|
||||||
SETUVAR fish_color_history_current:\x2d\x2dbold
|
|
||||||
SETUVAR fish_color_host:normal
|
|
||||||
SETUVAR fish_color_host_remote:yellow
|
|
||||||
SETUVAR fish_color_normal:normal
|
|
||||||
SETUVAR fish_color_operator:brcyan
|
|
||||||
SETUVAR fish_color_param:cyan
|
|
||||||
SETUVAR fish_color_quote:yellow
|
|
||||||
SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold
|
|
||||||
SETUVAR fish_color_search_match:white\x1e\x2d\x2dbackground\x3dbrblack
|
|
||||||
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
|
|
||||||
SETUVAR fish_color_status:red
|
|
||||||
SETUVAR fish_color_user:brgreen
|
|
||||||
SETUVAR fish_color_valid_path:\x2d\x2dunderline
|
|
||||||
SETUVAR fish_greeting:
|
SETUVAR fish_greeting:
|
||||||
SETUVAR fish_key_bindings:fish_default_key_bindings
|
|
||||||
SETUVAR fish_pager_color_completion:normal
|
|
||||||
SETUVAR fish_pager_color_description:yellow\x1e\x2di
|
|
||||||
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
|
||||||
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
|
||||||
SETUVAR fish_pager_color_selected_background:\x2dr
|
|
||||||
SETUVAR fish_user_paths:/home/glennigen/\x2enpm\x2dglobal/bin
|
SETUVAR fish_user_paths:/home/glennigen/\x2enpm\x2dglobal/bin
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
function sudo!!
|
||||||
|
eval sudo $history[1]
|
||||||
|
end
|
||||||
@@ -2,28 +2,57 @@
|
|||||||
|
|
||||||
## Index
|
## Index
|
||||||
1. [RPM Fusion Tweaks](#rpm-fusion-tweaks)
|
1. [RPM Fusion Tweaks](#rpm-fusion-tweaks)
|
||||||
|
|
||||||
1. [Configurations](#configurations)
|
1. [Configurations](#configurations)
|
||||||
|
|
||||||
2. [Multimedia](#multimedia)
|
2. [Multimedia](#multimedia)
|
||||||
|
|
||||||
1. [Intel (Recent CPU)](#intel-recent-cpu)
|
1. [Intel (Recent CPU)](#intel-recent-cpu)
|
||||||
|
|
||||||
|
|
||||||
3. [DVD stuff](#dvd-stuff)
|
3. [DVD stuff](#dvd-stuff)
|
||||||
|
|
||||||
4. [Firmware stuff](#firmware-stuff)
|
4. [Firmware stuff](#firmware-stuff)
|
||||||
|
|
||||||
|
|
||||||
2. [Packages](#packages)
|
2. [Packages](#packages)
|
||||||
|
|
||||||
1. [Import keys & repos](#import-keys--repos)
|
1. [Import keys & repos](#import-keys--repos)
|
||||||
|
|
||||||
1. [1Password](#1password)
|
1. [1Password](#1password)
|
||||||
|
|
||||||
2. [Jottacloud](#jottacloud)
|
2. [Jottacloud](#jottacloud)
|
||||||
|
|
||||||
3. [VSCodium](#vscodium)
|
3. [VSCodium](#vscodium)
|
||||||
|
|
||||||
|
4. [Cider](#cider)
|
||||||
|
|
||||||
|
|
||||||
2. [Install packages](#install-packages)
|
2. [Install packages](#install-packages)
|
||||||
|
|
||||||
1. [DNF](#dnf)
|
1. [DNF](#dnf)
|
||||||
|
|
||||||
2. [Flatpak](#flatpak)
|
2. [Flatpak](#flatpak)
|
||||||
|
|
||||||
|
|
||||||
3. [Configs](#configs)
|
3. [Configs](#configs)
|
||||||
|
|
||||||
1. [Jottacloud](#jottacloud-1)
|
1. [Jottacloud](#jottacloud-1)
|
||||||
|
|
||||||
2. [Firefox about:config](#firefox-aboutconfig)
|
2. [Firefox about:config](#firefox-aboutconfig)
|
||||||
|
|
||||||
|
|
||||||
|
3. [System Settings](#system-settings)
|
||||||
|
|
||||||
|
1. [NetworkManager & systemd-resolved](#fix-common-issues-with-networkmanager--systemd-resolved)
|
||||||
|
|
||||||
|
|
||||||
## RPM Fusion Tweaks
|
## RPM Fusion Tweaks
|
||||||
[Index](#index)
|
[Index](#index)
|
||||||
|
|
||||||
> [RPM Fusion](https://rpmfusion.org/)\
|
> [RPM Fusion (External)](https://rpmfusion.org/)\
|
||||||
> [RPM Fusion Configurations](https://rpmfusion.org/Configuration)
|
> [RPM Fusion Configurations (External)](https://rpmfusion.org/Configuration)
|
||||||
|
|
||||||
### Configurations
|
### Configurations
|
||||||
```
|
```
|
||||||
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
||||||
@@ -31,21 +60,25 @@ sudo dnf config-manager setopt fedora-cisco-openh264.enabled=1
|
|||||||
sudo dnf update @core
|
sudo dnf update @core
|
||||||
sudo dnf install rpmfusion-\*-appstream-data
|
sudo dnf install rpmfusion-\*-appstream-data
|
||||||
```
|
```
|
||||||
|
|
||||||
### Multimedia
|
### Multimedia
|
||||||
https://rpmfusion.org/Howto/Multimedia
|
> [RPM Fusion Multimedia (External)](https://rpmfusion.org/Howto/Multimedia)
|
||||||
```
|
```
|
||||||
sudo dnf swap ffmpeg-free ffmpeg --allowerasing
|
sudo dnf swap ffmpeg-free ffmpeg --allowerasing
|
||||||
sudo dnf update @multimedia --setopt="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin
|
sudo dnf update @multimedia --setopt="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Intel (Recent CPU)
|
#### Intel (Recent CPU)
|
||||||
```
|
```
|
||||||
sudo dnf install intel-media-driver
|
sudo dnf install intel-media-driver
|
||||||
```
|
```
|
||||||
|
|
||||||
### DVD stuff
|
### DVD stuff
|
||||||
```
|
```
|
||||||
sudo dnf install rpmfusion-free-release-tainted
|
sudo dnf install rpmfusion-free-release-tainted
|
||||||
sudo dnf install libdvdcss
|
sudo dnf install libdvdcss
|
||||||
```
|
```
|
||||||
|
|
||||||
### Firmware stuff
|
### Firmware stuff
|
||||||
```
|
```
|
||||||
sudo dnf install rpmfusion-nonfree-release-tainted
|
sudo dnf install rpmfusion-nonfree-release-tainted
|
||||||
@@ -55,7 +88,9 @@ sudo dnf --repo=rpmfusion-nonfree-tainted install "*-firmware"
|
|||||||
## Packages
|
## Packages
|
||||||
[Index](#index)
|
[Index](#index)
|
||||||
|
|
||||||
|
|
||||||
### Import keys & repos
|
### Import keys & repos
|
||||||
|
|
||||||
#### 1Password
|
#### 1Password
|
||||||
```
|
```
|
||||||
sudo rpm --import https://downloads.1password.com/linux/keys/1password.asc
|
sudo rpm --import https://downloads.1password.com/linux/keys/1password.asc
|
||||||
@@ -64,6 +99,7 @@ sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
|
|||||||
sudo dnf config-manager addrepo --from-repofile=https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
|
sudo dnf config-manager addrepo --from-repofile=https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
|
||||||
sudo dnf config-manager addrepo --from-repofile=https://repo.librewolf.net/librewolf.repo
|
sudo dnf config-manager addrepo --from-repofile=https://repo.librewolf.net/librewolf.repo
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Jottacloud
|
#### Jottacloud
|
||||||
```
|
```
|
||||||
sudo tee /etc/yum.repos.d/JottaCLI.repo > /dev/null << 'EOF'
|
sudo tee /etc/yum.repos.d/JottaCLI.repo > /dev/null << 'EOF'
|
||||||
@@ -74,6 +110,7 @@ gpgcheck=1
|
|||||||
gpgkey=https://repo.jotta.cloud/public.gpg
|
gpgkey=https://repo.jotta.cloud/public.gpg
|
||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
|
||||||
#### VSCodium
|
#### VSCodium
|
||||||
```
|
```
|
||||||
sudo tee -a /etc/yum.repos.d/vscodium.repo << 'EOF'
|
sudo tee -a /etc/yum.repos.d/vscodium.repo << 'EOF'
|
||||||
@@ -87,21 +124,42 @@ gpgkey=https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg
|
|||||||
metadata_expire=1h
|
metadata_expire=1h
|
||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Cider
|
||||||
|
```
|
||||||
|
sudo rpm --import https://repo.cider.sh/RPM-GPG-KEY
|
||||||
|
sudo tee /etc/yum.repos.d/cider.repo << 'EOF'
|
||||||
|
[cidercollective]
|
||||||
|
name=Cider Collective Repository
|
||||||
|
baseurl=https://repo.cider.sh/rpm/RPMS
|
||||||
|
enabled=1
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=https://repo.cider.sh/RPM-GPG-KEY
|
||||||
|
EOF
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
#### Install packages
|
#### Install packages
|
||||||
|
|
||||||
##### DNF
|
##### DNF
|
||||||
```
|
```
|
||||||
sudo dnf install fastfetch stow fish steam git gh nvim tldr btop 1password sublime-text mangojuice gamemode gamescope obs-studio jotta-cli codium rpmconf
|
sudo dnf install fastfetch stow fish steam git gh nvim tldr btop 1password sublime-text mangojuice gamemode gamescope obs-studio jotta-cli codium rpmconf Cider
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Flatpak
|
##### Flatpak
|
||||||
```
|
```
|
||||||
flatpak install com.discordapp.Discord io.github.Faugus.faugus-launcher com.adamcake.Bolt com.notesnook.Notesnook com.saivert.pwvucontrol com.github.tchx84.Flatseal org.kde.kdenlive it.mijorus.gearlever com.github.Matoking.protontricks com.vysp3r.ProtonPlus org.musicbrainz.Picard
|
flatpak install -y com.discordapp.Discord io.github.Faugus.faugus-launcher com.adamcake.Bolt com.notesnook.Notesnook com.saivert.pwvucontrol com.github.tchx84.Flatseal org.kde.kdenlive it.mijorus.gearlever com.github.Matoking.protontricks com.vysp3r.ProtonPlus org.musicbrainz.Picard io.github.lullabyX.sone
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### Configs
|
#### Configs
|
||||||
|
|
||||||
##### Jottacloud
|
##### Jottacloud
|
||||||
```
|
```
|
||||||
run_jottad
|
run_jottad
|
||||||
jotta-cli help
|
jotta-cli help
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Firefox about:config
|
##### Firefox about:config
|
||||||
```
|
```
|
||||||
accessibility.typeaheadfind.enablesound = false
|
accessibility.typeaheadfind.enablesound = false
|
||||||
@@ -110,4 +168,18 @@ clipboard.autocopy = false
|
|||||||
middlemouse.paste = false
|
middlemouse.paste = false
|
||||||
widget.gtk.native-emoji-dialog = false
|
widget.gtk.native-emoji-dialog = false
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## System Settings
|
||||||
|
|
||||||
|
### Fix common issues with NetworkManager + systemd-resolved
|
||||||
|
```
|
||||||
|
sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
|
||||||
|
```
|
||||||
|
|
||||||
|
### KDE Shortcuts
|
||||||
|
|
||||||
|
#### 1Password
|
||||||
|
> Import in KDE Settings menu
|
||||||
|
|
||||||
|
|
||||||
[TOP](#installations-for-new-fedora-kde-instance)
|
[TOP](#installations-for-new-fedora-kde-instance)
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
[Custom Commands][net.local.1password-2.desktop]
|
||||||
|
Exec=1password --quick-access
|
||||||
|
Name=1password qa
|
||||||
|
|
||||||
|
[Custom Commands][net.local.1password.desktop]
|
||||||
|
Exec=1password --toggle
|
||||||
|
Name=1password
|
||||||
|
|
||||||
|
[net.local.1password-2.desktop][Global Shortcuts]
|
||||||
|
_launch=Meta+Ctrl+.
|
||||||
|
|
||||||
|
[net.local.1password.desktop][Global Shortcuts]
|
||||||
|
_launch=Meta+Ctrl+,
|
||||||
Executable
+69
@@ -0,0 +1,69 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Funktion til Flatpak apps
|
||||||
|
close_flatpak() {
|
||||||
|
local app="$1"
|
||||||
|
flatpak kill "$app"
|
||||||
|
for i in $(seq 1 5); do
|
||||||
|
sleep 1
|
||||||
|
if ! pgrep -f "$app" > /dev/null; then
|
||||||
|
echo "$app closed (attempt $i)"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
echo "$app still running, retrying ($i/5)..."
|
||||||
|
flatpak kill "$app"
|
||||||
|
done
|
||||||
|
echo "$app force closing (KILL)..."
|
||||||
|
pkill -KILL -f "$app"
|
||||||
|
pkill -KILL -f bwrap 2>/dev/null # dræb sandbox container
|
||||||
|
}
|
||||||
|
|
||||||
|
# Funktion til native apps
|
||||||
|
close_app() {
|
||||||
|
local app="$1"
|
||||||
|
pkill -TERM -f "$app"
|
||||||
|
for i in $(seq 1 5); do
|
||||||
|
sleep 1
|
||||||
|
if ! pgrep -f "$app" > /dev/null; then
|
||||||
|
echo "$app closed (attempt $i)"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
echo "$app still running, retrying ($i/5)..."
|
||||||
|
pkill -TERM -f "$app"
|
||||||
|
done
|
||||||
|
echo "$app force closing (KILL)..."
|
||||||
|
pkill -KILL -f "$app"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Luk apps
|
||||||
|
close_flatpak "com.discordapp.Discord"
|
||||||
|
close_flatpak "io.github.lullabyX.sone"
|
||||||
|
close_flatpak "rocks.shy.VacuumTube"
|
||||||
|
close_app "firefox"
|
||||||
|
|
||||||
|
# Steam
|
||||||
|
if pgrep -f steam > /dev/null; then
|
||||||
|
steam -shutdown
|
||||||
|
for i in $(seq 1 5); do
|
||||||
|
sleep 1
|
||||||
|
if ! pgrep -f steam > /dev/null; then
|
||||||
|
echo "Steam closed (attempt $i)"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
echo "Steam still running ($i/5)..."
|
||||||
|
done
|
||||||
|
pkill -KILL -f steam 2>/dev/null
|
||||||
|
else
|
||||||
|
echo "Steam not running, skipping..."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Prompt
|
||||||
|
read -r -p "All programs closed. Reboot? [Y/n]: " response
|
||||||
|
response="${response:-Y}" # Y er default ved enter
|
||||||
|
|
||||||
|
if [[ "$response" =~ ^[Yy]$ ]]; then
|
||||||
|
sudo shutdown -r now
|
||||||
|
else
|
||||||
|
echo "Reboot cancelled."
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
Executable
+68
@@ -0,0 +1,68 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Funktion til Flatpak apps
|
||||||
|
close_flatpak() {
|
||||||
|
local app="$1"
|
||||||
|
flatpak kill "$app"
|
||||||
|
for i in $(seq 1 5); do
|
||||||
|
sleep 1
|
||||||
|
if ! pgrep -f "$app" > /dev/null; then
|
||||||
|
echo "$app closed (attempt $i)"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
echo "$app still running, retrying ($i/5)..."
|
||||||
|
flatpak kill "$app"
|
||||||
|
done
|
||||||
|
echo "$app force closing (KILL)..."
|
||||||
|
pkill -KILL -f "$app"
|
||||||
|
pkill -KILL -f bwrap 2>/dev/null # dræb sandbox container
|
||||||
|
}
|
||||||
|
|
||||||
|
# Funktion til native apps
|
||||||
|
close_app() {
|
||||||
|
local app="$1"
|
||||||
|
pkill -TERM -f "$app"
|
||||||
|
for i in $(seq 1 5); do
|
||||||
|
sleep 1
|
||||||
|
if ! pgrep -f "$app" > /dev/null; then
|
||||||
|
echo "$app closed (attempt $i)"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
echo "$app still running, retrying ($i/5)..."
|
||||||
|
pkill -TERM -f "$app"
|
||||||
|
done
|
||||||
|
echo "$app force closing (KILL)..."
|
||||||
|
pkill -KILL -f "$app"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Luk apps
|
||||||
|
close_flatpak "com.discordapp.Discord"
|
||||||
|
close_flatpak "io.github.lullabyX.sone"
|
||||||
|
close_flatpak "rocks.shy.VacuumTube"
|
||||||
|
close_app "firefox"
|
||||||
|
|
||||||
|
# Steam
|
||||||
|
if pgrep -f steam > /dev/null; then
|
||||||
|
steam -shutdown
|
||||||
|
for i in $(seq 1 5); do
|
||||||
|
sleep 1
|
||||||
|
if ! pgrep -f steam > /dev/null; then
|
||||||
|
echo "Steam closed (attempt $i)"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
echo "Steam still running ($i/5)..."
|
||||||
|
done
|
||||||
|
pkill -KILL -f steam 2>/dev/null
|
||||||
|
else
|
||||||
|
echo "Steam not running, skipping..."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Prompt
|
||||||
|
read -r -p "All programs closed. Shut down? [Y/n]: " response
|
||||||
|
response="${response:-Y}" # Y er default ved enter
|
||||||
|
|
||||||
|
if [[ "$response" =~ ^[Yy]$ ]]; then
|
||||||
|
sudo shutdown -h now
|
||||||
|
else
|
||||||
|
echo "Shutdown cancelled."
|
||||||
|
fi
|
||||||
|
|
||||||
Reference in New Issue
Block a user