Add tmux
Update opensuse Update readme
This commit is contained in:
parent
3ea6a37a94
commit
775548ba39
@ -5,3 +5,10 @@ My configuration for [Albert](https://albertlauncher.github.io).
|
||||
## Installation
|
||||
|
||||
Symlink `config` to `$XDG_CONFIG_HOME/albert/config`.
|
||||
|
||||
## Automatic Installation (Linux)
|
||||
|
||||
```bash
|
||||
mkdir -p $XDG_CONFIG_HOME/albert
|
||||
ln -s $PWD/config $XDG_CONFIG_HOME/albert/config
|
||||
```
|
||||
|
@ -10,6 +10,10 @@ read
|
||||
|
||||
sudo echo "Starting setup..."
|
||||
|
||||
# Make sure some folders exist
|
||||
mkdir -p "$HOME/Downloads"
|
||||
mkdir -p "$XDG_CONFIG_HOME/autostart"
|
||||
|
||||
# Set hostname
|
||||
echo
|
||||
echo "Setting hostname..."
|
||||
@ -145,8 +149,120 @@ sudo ln -s "/opt/Telegram/Telegram" "/usr/bin/telegram-desktop"
|
||||
telegram-desktop -startintray &
|
||||
sleep 5
|
||||
killall telegram-desktop
|
||||
# Auto start Telegram
|
||||
cat <<EOF > "$XDG_CONFIG_HOME/autostart/org.telegram.desktop.desktop"
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Telegram
|
||||
Exec=telegram-desktop -autostart
|
||||
Icon=telegram
|
||||
EOF
|
||||
|
||||
# Steam
|
||||
sudo zypper --non-interactive install -l steam
|
||||
# Auto start Steam
|
||||
cat <<EOF > "$XDG_CONFIG_HOME/autostart/steam.desktop"
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Steam
|
||||
Icon=steam
|
||||
Exec=/usr/bin/steam -silent
|
||||
EOF
|
||||
|
||||
# Mangohud, Gamemode, Goverlay & Gamescope
|
||||
sudo zypper install gamemode mangohud goverlay gamescope
|
||||
# Enable MangoHud globally
|
||||
su -c 'echo -e "MANGOHUD=1" >> /etc/environment'
|
||||
# Hide MangoHud by default
|
||||
# RShift+F12 – Toggle overlay
|
||||
# RShift+F11 – Change overlay position
|
||||
# LShift+F2 – Toggle logging
|
||||
# LShift+F4 – Reload config
|
||||
mkdir -p ~/.config/MangoHud && echo -e "preset=3\nno_display" > ~/.config/MangoHud/MangoHud.conf
|
||||
|
||||
# Heroic Games Launcher (Epic, GOG, Amazon)
|
||||
curl -L https://api.github.com/repos/Heroic-Games-Launcher/HeroicGamesLauncher/releases/latest | grep "browser_download_url.*rpm" | cut -d : -f 2,3 | tr -d \" | wget --show-progress -qi - && sudo rpm -i --nodeps heroic-*_64.rpm && rm -f heroic-*_64.rpm
|
||||
# Auto start Heroic
|
||||
cat <<EOF > "$XDG_CONFIG_HOME/autostart/heroic.desktop"
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Heroic Games Launcher
|
||||
Exec=heroic
|
||||
EOF
|
||||
|
||||
# BlitzMax
|
||||
# Todo
|
||||
|
||||
# Avidemux
|
||||
sudo zypper --non-interactive install avidemux3-qt5
|
||||
|
||||
# qBitTorrent
|
||||
sudo zypper --non-interactive install qbittorrent
|
||||
|
||||
# OBS Studio
|
||||
sudo zypper --non-interactive install obs-studio
|
||||
|
||||
# Audacity
|
||||
sudo zypper --non-interactive install audacity
|
||||
|
||||
# Audacious
|
||||
sudo zypper --non-interactive install audacious
|
||||
|
||||
# Krita
|
||||
sudo zypper --non-interactive install krita
|
||||
|
||||
# tmux
|
||||
sudo zypper --non-interactive install tmux
|
||||
mkdir -p $XDG_CONFIG_HOME/tmux
|
||||
touch $XDG_CONFIG_HOME/tmux/tmux.conf
|
||||
# Add TMUX to .bashrc
|
||||
cat <<'EOF' >> "$HOME/.bashrc"
|
||||
|
||||
# Start TMUX
|
||||
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
|
||||
exec tmux
|
||||
fi
|
||||
EOF
|
||||
# tmux Plugin Manager
|
||||
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||
|
||||
|
||||
# Floorp browser
|
||||
# https://github.com/Floorp-Projects/Floorp/releases/download/v11.22.0/floorp-11.22.0.linux-x86_64.tar.bz2
|
||||
curl -L "$(curl -s https://api.github.com/repos/Floorp-Projects/Floorp/releases/latest | jq -r '.assets[] | select(.name | test("linux-x86_64.tar.bz2")) | .browser_download_url')" -o "$HOME/Downloads/floorp.tar.bz2"
|
||||
tar -xf "$HOME/Downloads/floorp.tar.bz2" -C "/opt"
|
||||
rm "$HOME/Downloads/floorp.tar.bz2"
|
||||
sudo ln -s "/opt/floorp/floorp" "/usr/bin/floorp"
|
||||
sudo cat <<EOF > "/usr/share/applications/floorp.desktop"
|
||||
[Desktop Entry]
|
||||
Categories=Network;WebBrowser;GTK;
|
||||
Encoding=UTF-8
|
||||
Name=Floorp
|
||||
GenericName=Web Browser
|
||||
TryExec=/opt/floorp/floorp
|
||||
Exec=/opt/floorp/floorp %u
|
||||
Icon=/opt/floorp/browser/chrome/icons/default/default128.png
|
||||
StartupNotify=true
|
||||
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;application/x-xpinstall;x-scheme-handler/http;x-scheme-handler/https;
|
||||
Comment=Browse the Web
|
||||
|
||||
Actions=new-window;PrivateBrowsing;ProfileManager
|
||||
|
||||
[Desktop Action new-window]
|
||||
Name=New Window
|
||||
Exec=/opt/floorp/floorp --new-window %u
|
||||
|
||||
[Desktop Action PrivateBrowsing]
|
||||
Name=New Private Browsing Window
|
||||
Exec=/opt/floorp/floorp --private-window %u
|
||||
|
||||
[Desktop Action ProfileManager]
|
||||
Name=Profile Manager
|
||||
Exec=/opt/floorp/floorp --ProfileManager
|
||||
EOF
|
||||
|
||||
# Bash AI
|
||||
curl -sS https://raw.githubusercontent.com/hezkore/bash-ai/main/install.sh | bash
|
||||
|
||||
# Build Essentials
|
||||
sudo zypper --non-interactive install gcc-c++ libXxf86vm-devel webkit2gtk3-devel alsa-lib-devel freetype-devel libpulse-devel glu-devel libudev-devel libXss-devel make ninja
|
||||
|
16
tmux/README.md
Normal file
16
tmux/README.md
Normal file
@ -0,0 +1,16 @@
|
||||
# tmux
|
||||
|
||||
My configuration for [tmux](https://github.com/tmux/tmux).
|
||||
|
||||
## Installation
|
||||
|
||||
Symlink `tmux.conf` to `$XDG_CONFIG_HOME/tmux/tmux.conf`.\
|
||||
Then either do Prefix + I in tmux or run `~/.tmux/plugins/tpm/bin/install_plugins`
|
||||
|
||||
## Automatic Installation (Linux)
|
||||
|
||||
```bash
|
||||
mkdir -p $XDG_CONFIG_HOME/tmux
|
||||
ln -s $PWD/tmux.conf $XDG_CONFIG_HOME/tmux/tmux.conf
|
||||
~/.tmux/plugins/tpm/bin/install_plugins
|
||||
```
|
6
tmux/tmux.conf
Normal file
6
tmux/tmux.conf
Normal file
@ -0,0 +1,6 @@
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'dracula/tmux'
|
||||
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
|
||||
set -g status on
|
@ -4,6 +4,5 @@ My configuration files for the [Xfce Desktop Environment](https://www.xfce.org).
|
||||
|
||||
## Installation
|
||||
|
||||
Symlink `gtk.css` to `$XDG_CONFIG_HOME/gtk-3.0/gtk.css`.
|
||||
|
||||
Symlink `gtk.css` to `$XDG_CONFIG_HOME/gtk-3.0/gtk.css`.\
|
||||
Symlink `xfce4-panel.xml` to `$XDG_CONFIG_HOME/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user