Now works with Fedora

This commit is contained in:
Gabriel Brown 2024-06-09 04:16:43 -05:00
parent e37dd1be84
commit 314e5c9b8b
662 changed files with 128036 additions and 1568 deletions

19
GPU/install.sh Normal file
View File

@ -0,0 +1,19 @@
# Install Utility for AMD GPUs if needed
read -p "Would you like to install LACT, an AMD GPU Utility? (y/N) " amd_gpu
if [ "$amd_gpu" == "y" ]; then
sudo dnf install -y https://github.com/ilya-zlobintsev/LACT/releases/download/v0.5.4/lact-0.5.4-0.x86_64.fedora-40.rpm
sudo systemctl enable --now lactd
fi
read -p "Would you like to install the proprietary NVIDIA Drivers? (y/N) " nvidia_gpu
if [ "$nvidia_gpu" == "y" ]; then
sudo dnf install -y akmod-nvidia xorg-x11-drv-nvidia-cuda
echo -e "\nRemove the duplicate lines below from grub:"
echo -e "\t\"rd.driver.blacklist=nouveau,"
echo -e "\tmodprobe.blacklist=nouveau,"
echo -e "\tnvidia-drm.modeset=1\"\n"
echo -e "\n Save the file & close nvim to continue.\n"
kitty -1 -e bash -c "sudo nvim /etc/default/grub"
sudo grub2-mkconfig -o /etc/grub2-efi.cfg
sudo systemctl enable nvidia-hibernate.service nvidia-suspend.service \
nvidia-resume.service nvidia-powerd.service
fi

View File

@ -1,17 +1,12 @@
# Omakub fork to Support Fedora & to eventually replace my Fedora Setup Repo
# Sunhat
*This repo is currently identical to Omakum, so it obviously does not support Fedora yet*
## A Fork of Omakub, turned into a Fedora Config
## Omakub
### Note: This is my personal config. I wouldn't necessarily recommend using it.
Turn a fresh Ubuntu installation into a fully-configured, beautiful, and modern web development system by running a single command. That's the one-line pitch for Omakub. No need to write bespoke configs for every essential tool just to get started or to be up on all the latest command-line tools. Omakub is an opinionated take on what Linux can be at its best.
#### To Do:
Watch the introduction video and read more at [omakub.org](https://omakub.org).
### Contributing to the documentation
Please help us improve Omakub's documentation on the [the basecamp/omakub-site repository](https://github.com/basecamp/omakub-site).
### License
Omakub is released under the [MIT License](https://opensource.org/licenses/MIT).
- [ ] Add a way to change the font of kitty using the script
- [ ] Add a themes for Neovim that are not using LazyVim
- [ ] Configure GNOME extensions with cli tool.
- [ ] Find a consistent way to download applications not in repos.

View File

@ -1,11 +1,10 @@
ascii_art='
________ __ ___.
\_____ \ _____ _____ | | ____ _\_ |__
/ | \ / \\__ \ | |/ / | \ __ \
/ | \ Y Y \/ __ \| <| | / \_\ \
\_______ /__|_| (____ /__|_ \____/|___ /
\/ \/ \/ \/ \/
__ _ _ _.--._
/ _\_ _ _ __ | |__ __ _| |_ _.-.' `.-._
\ \| | | | '_ \| '_ \ / _` | __| .' ./`--...--' \ `.
_\ \ |_| | | | | | | | (_| | |_ `.'.`--.._..--' .'
\__/\__,_|_| |_|_| |_|\__,_|\__| `-..__ __..-'
````
'
# Define the color gradient (shades of cyan and blue)

View File

@ -1,11 +0,0 @@
#!/bin/bash
source $OMAKUB_PATH/ascii.sh
if [ $# -eq 0 ]; then
SUB=$(gum choose "Help" "Theme" "Font" "Install" "Update" --height 8 --header "" | tr '[:upper:]' '[:lower:]')
else
SUB=$1
fi
[ -n "$SUB" ] && source $OMAKUB_PATH/bin/omakub-$SUB

View File

@ -1,2 +0,0 @@
HELP=$(gum choose "Hotkeys" "Commands" "Tactile" --header "What do you need help with?" --height 5 | tr '[:upper:]' '[:lower:]')
[ -n "$HELP" ] && gum pager <$OMAKUB_PATH/help/$HELP.md

View File

@ -1,3 +0,0 @@
cd $OMAKUB_PATH
git pull
cd -

11
bin/sunhat Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
source $SUNHAT_PATH/bin/ascii.sh
if [ $# -eq 0 ]; then
SUB=$(gum choose "Theme" "Font" "Install" "Update" --height 8 --header "" | tr '[:upper:]' '[:lower:]')
else
SUB=$1
fi
[ -n "$SUB" ] && source $SUNHAT_PATH/bin/sunhat-$SUB

View File

@ -1,10 +1,12 @@
# Pick a preconfigured theme
FONT=$(gum choose "Cascadia Mono" "Fira Mono" "JetBrains Mono" "Meslo" --header "Choose your programming font:" --height 6 | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
FONT=$(gum choose "Cascadia Mono" "Victor Mono" "Fira Mono" "JetBrains Mono" "Meslo" --header "Choose your programming font:" --height 6 | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
[ ! -n "$FONT" ] && exit 0
if [ "$FONT" == "cascadia-mono" ]; then
NERD_FONT="CaskaydiaMono Nerd Font"
elif [ "$FONT" == "victor-mono" ]; then
NERD_FONT="VictorMono Nerd Font"
elif [ "$FONT" == "fira-mono" ]; then
NERD_FONT="FiraMono Nerd Font"
elif [ "$FONT" == "jetbrains-mono" ]; then
@ -14,5 +16,4 @@ elif [ "$FONT" == "meslo" ]; then
fi
gsettings set org.gnome.desktop.interface monospace-font-name "$NERD_FONT 10"
cp $OMAKUB_PATH/fonts/alacritty/$FONT.toml ~/.config/alacritty/font.toml
sed -i "s/\"editor.fontFamily\": \".*\"/\"editor.fontFamily\": \"$NERD_FONT\"/g" ~/.config/Code/User/settings.json

View File

@ -1,2 +1,2 @@
INSTALLER=$(gum file $OMAKUB_PATH/install)
INSTALLER=$(gum file $SUNHAT_PATH/install)
[ -n "$INSTALLER" ] && gum confirm "Run installer?" && source $INSTALLER

View File

@ -5,10 +5,9 @@ THEME=$(gum choose "${THEME_NAMES[@]}" --header "Choose your theme" --height 9 |
[ ! -n "$THEME" ] && exit 0
# Install theme in Gnome, Terminal, and both default editors
source $OMAKUB_PATH/themes/gnome/$THEME.sh
cp $OMAKUB_PATH/themes/alacritty/$THEME.toml ~/.config/alacritty/theme.toml
cp $OMAKUB_PATH/themes/neovim/$THEME.lua ~/.config/nvim/lua/plugins/theme.lua
sed -i "s/theme \".*\"/theme \"$THEME\"/g" ~/.config/zellij/config.kdl
source $SUNHAT_PATH/themes/gnome/$THEME.sh
#cp $SUNHAT_PATH/themes/kitty/$THEME.conf ~/.config/kitty/kitty.conf
#cp $SUNHAT_PATH/themes/neovim/$THEME.lua ~/.config/nvim/lua/gib_nvim/colors.lua
# Translate to specific VSC theme name
if [ "$THEME" == "gruvbox" ]; then
@ -36,4 +35,4 @@ fi
code --install-extension $VSC_EXTENSION > /dev/null
sed -i "s/\"workbench.colorTheme\": \".*\"/\"workbench.colorTheme\": \"$VSC_THEME\"/g" ~/.config/Code/User/settings.json
echo "Restart your terminal for a full theme change (Super + W, then start again with Alt + 2)"
echo "Restart your terminal for a full theme change (Super + Q to close. Super + T to open again)"

3
bin/sunhat-update Normal file
View File

@ -0,0 +1,3 @@
cd $SUNHAT_PATH
git pull
cd -

View File

@ -1,4 +0,0 @@
import = [ "~/.config/alacritty/theme.toml", "~/.config/alacritty/font.toml", "~/.local/share/omakub/defaults/alacritty.toml" ]
[font]
size = 7

View File

@ -1,2 +0,0 @@
# Leave this file as-is to allow omakub to swap fonts system wide
import = [ "~/.local/share/omakub/fonts/alacritty/cascadia-mono.toml" ]

View File

@ -1,2 +0,0 @@
# Leave this file as-is to allow omakub to swap themes system wide
import = [ "~/.local/share/omakub/themes/alacritty/tokyo-night.toml" ]

View File

@ -1,4 +0,0 @@
source ~/.local/share/omakub/defaults/bash/rc
# Editor used by CLI
export EDITOR="nvim"

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Name=Jump Desktop
Exec=bash -c "wine /home/gib/.wine/drive_c/Program\ Files/Phase\ Five\ Systems/Jump\ Desktop/JumpClient.exe"
Terminal=false
Type=Application
Icon=/home/gib/.wine/drive_c/Program\ Files/Phase\ Five\ Systems/Jump\ Desktop/icon/jump_icon.png

View File

@ -0,0 +1,93 @@
[Desktop Entry]
Name=Nvim
GenericName=Text Editor
GenericName[ckb]=دەستکاریکەری دەق
GenericName[de]=Texteditor
GenericName[fr]=Éditeur de texte
GenericName[ru]=Текстовый редактор
GenericName[sr]=Едитор текст
GenericName[tr]=Metin Düzenleyici
Comment=Edit text files
Comment[af]=Redigeer tekslêers
Comment[am]=
Comment[ar]=حرّر ملفات نصية
Comment[az]=Mətn fayllarını redaktə edin
Comment[be]=Рэдагаваньне тэкставых файлаў
Comment[bg]=Редактиране на текстови файлове
Comment[bn]= ি
Comment[bs]=Izmijeni tekstualne datoteke
Comment[ca]=Edita fitxers de text
Comment[ckb]=دەستکاریی فایلی دەق بکە
Comment[cs]=Úprava textových souborů
Comment[cy]=Golygu ffeiliau testun
Comment[da]=Redigér tekstfiler
Comment[de]=Textdateien bearbeiten
Comment[el]=Επεξεργασία αρχείων κειμένου
Comment[en_CA]=Edit text files
Comment[en_GB]=Edit text files
Comment[es]=Edita archivos de texto
Comment[et]=Redigeeri tekstifaile
Comment[eu]=Editatu testu-fitxategiak
Comment[fa]=ویرایش پروندههای متنی
Comment[fi]=Muokkaa tekstitiedostoja
Comment[fr]=Éditer des fichiers texte
Comment[ga]=Eagar comhad Téacs
Comment[gu]=
Comment[he]=ערוך קבצי טקסט
Comment[hi]= ि
Comment[hr]=Uređivanje tekstualne datoteke
Comment[hu]=Szövegfájlok szerkesztése
Comment[id]=Edit file teks
Comment[it]=Modifica file di testo
Comment[ja]=
Comment[kn]= ಿ
Comment[ko]=
Comment[lt]=Redaguoti tekstines bylas
Comment[lv]=Rediģēt teksta failus
Comment[mk]=Уреди текстуални фајлови
Comment[ml]= ി
Comment[mn]=Текст файл боловсруулах
Comment[mr]= ि
Comment[ms]=Edit fail teks
Comment[nb]=Rediger tekstfiler
Comment[ne]=
Comment[nl]=Tekstbestanden bewerken
Comment[nn]=Rediger tekstfiler
Comment[no]=Rediger tekstfiler
Comment[or]= ି
Comment[pa]=
Comment[pl]=Edytor plików tekstowych
Comment[pt]=Editar ficheiros de texto
Comment[pt_BR]=Edite arquivos de texto
Comment[ro]=Editare fişiere text
Comment[ru]=Редактирование текстовых файлов
Comment[sk]=Úprava textových súborov
Comment[sl]=Urejanje datotek z besedili
Comment[sq]=Përpuno files teksti
Comment[sr]=Уређујте текст фајлове
Comment[sr@Latn]=Izmeni tekstualne datoteke
Comment[sv]=Redigera textfiler
Comment[ta]=
Comment[th]=
Comment[tk]=Metin faýllary editle
Comment[tr]=Metin dosyaları düzenleyin
Comment[uk]=Редактор текстових файлів
Comment[vi]=Son tho tp tin văn bn
Comment[wa]=Asspougnî des fitchîs tecses
Comment[zh_CN]=
Comment[zh_TW]=
TryExec=nvim
Exec=kitty -1 -e bash -c "nvim ~; exec bash"
Terminal=false
Type=Application
Keywords=Text;editor;
Keywords[ckb]=دەق;دەستکاریکەر;
Keywords[fr]=Texte;éditeur;
Keywords[ru]=текст;текстовый редактор;
Keywords[sr]=Текст;едитор;
Keywords[tr]=Metin;düzenleyici;
Icon=nvim
Categories=Utility;TextEditor;
StartupNotify=false
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
X-Desktop-File-Install-Version=0.26

View File

@ -0,0 +1,14 @@
[Desktop Entry]
Name=Ranger
GenericName=File Manager
Comment=Launches the ranger file manager
TryExec=ranger
Exec=kitty -1 -e bash -c "ranger /home/gib/Documents/Code; exec bash"
Terminal=false
Type=Application
Keywords=File;Manager;Browser;Explorer;Launcher;Vi;Vim;Python
Icon=utilities-terminal
Categories=ConsoleOnly;System;FileTools;FileManager
StartupNotify=false
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
X-Desktop-File-Install-Version=0.26

Some files were not shown because too many files have changed in this diff Show More