Giter Site home page Giter Site logo

elagoht / makeendeavourosgreat Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 1.0 9.39 MB

Endeavour OS is an operating system makes Arch Linux easier. I wanted to make it usable for new-comers.

License: GNU General Public License v3.0

Python 93.57% Shell 5.77% HTML 0.66%
endeavour endeavour-os endeavouros tweak tweaks tweak-tool tweaks-tool tweakstool tweaktool tweaker

makeendeavourosgreat's Introduction

It's me, Furkan Baytekin

Mostly Front End Developer

Languages:

Develop with on using .

🆓 I am an open source advocate.
👨‍💻 I develop software.
🕹 I develop games.
📽 I record educational videos.
📚 I wrote a Linux book.
🐧 I use Arch btw.
👨‍🎤 I compose musics.
🎸 I play bass.
👨‍🏫 I am a teacher.

👉 Me On Other Platforms

📜 My Publishments

💌 Contacts

▶️ Latest Youtube Videos

Head (Dosyanın Başını Oku) | Linux Terminal Kursu Grep (Metinde Ara) | Linux Terminal Kursu Ln (Bağlantı Oluştur) | Linux Terminal Kursu Touch (Zaman Damgası Değiştir) | Linux Terminal Kursu SHRED (Doğra) | Linux Terminal Kursu RM - Remove (Sil) | Linux Terminal Kursu

📊 Some Stats About Me

Language Stats

Profile Stats

Streak

🏆 Profile Trophies

Profile Trophies

🔗 For More

If you want to get more information about me, you can visit my portfolio site I designed!

makeendeavourosgreat's People

Contributors

elagoht avatar github-actions[bot] avatar gobelman67 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gobelman67

makeendeavourosgreat's Issues

Toggling pages

If already pressed back button, when an installation has finished, re-toggling causes an empty page.

Unreadable Code

Extract it to a class in Utilities file.

# Create Oh-My-Zsh section
self.extOhMyZsh = \
ButtonBox(
"Oh-My-Zsh",
"GUI/Assets/Apps/Shells/ohmyzsh.png",
"<font color=\"orange\">Requires zsh.</font> Delightful, open source, community-driven framework for managing your Zsh configuration. It comes bundled with thousands of helpful functions, helpers, plugins, themes, and a few things that make you shout...",
[]
)
self.layOhMyZsh = QGridLayout(self.extOhMyZsh)
self.layOhMyZsh.addWidget(
CommandButton(QIcon("GUI/Assets/configure.png"), "Use Elagoht Theme",
self.zsh_theme_setter("elagoht"), self))
self.layOhMyZsh.addWidget(
CommandButton(QIcon("GUI/Assets/configure.png"), "Use Elagoht Iconless Theme",
self.zsh_theme_setter("elagoht-safe"), self),
0, 1)
self.layOhMyZsh.addWidget(
CommandButton(QIcon("GUI/Assets/configure.png"), "Use BashPlus Theme",
self.zsh_theme_setter("bashplus"), self))
self.layOhMyZsh.addWidget(
CommandButton(QIcon("GUI/Assets/configure.png"), "Use Robby Russell Theme",
self.zsh_theme_setter("robbyrussell"), self))
self.extOhMyZsh.glyApp.addLayout(self.layOhMyZsh)
self.btnOhMyZshInstall = CommandButton(QIcon("GUI/Assets/install.png"), "Install",
"""curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | bash;
curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | sudo -i bash;
echo Installing Elagoht Theme;
curl -sfSL "https://raw.githubusercontent.com/Elagoht/BashPlusZshTheme/main/bashplus.zsh-theme" -o ~/.oh-my-zsh/themes/bashplus.zsh-theme;
sudo curl -sfSL "https://raw.githubusercontent.com/Elagoht/BashPlusZshTheme/main/bashplus.zsh-theme" -o /root/.oh-my-zsh/themes/bashplus.zsh-theme;
sleep 1;
echo Installing Elagoht-Safe Theme;
curl -sfSL "https://raw.githubusercontent.com/Elagoht/Elagoht.zsh-theme/main/elagoht.zsh-theme" -o ~/.oh-my-zsh/themes/elagoht.zsh-theme;
sudo curl -sfSL "https://raw.githubusercontent.com/Elagoht/Elagoht.zsh-theme/main/elagoht.zsh-theme" -o /root/.oh-my-zsh/themes/elagoht.zsh-theme;
sleep 1;
echo Installing Bash Plus Theme;
curl -sfSL "https://raw.githubusercontent.com/Elagoht/Elagoht.zsh-theme/main/elagoht-safe.zsh-theme" -o ~/.oh-my-zsh/themes/elagoht-safe.zsh-theme;
sudo curl -sfSL "https://raw.githubusercontent.com/Elagoht/Elagoht.zsh-theme/main/elagoht-safe.zsh-theme" -o /root/.oh-my-zsh/themes/elagoht-safe.zsh-theme;
sleep 1;
echo Installing Syntax Highlighting Plugin;
git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting;
sudo -i git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-/root/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting;
sleep 1;
echo Installing Auto Suggestions Plugin;
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions;
sudo -i git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-/root/.oh-my-zsh/custom}/plugins/zsh-autosuggestions;
echo Enabling Plugins;
sleep 1;
sed -i "s/plugins=.*/plugins=(git virtualenv zsh-autosuggestions zsh-syntax-highlighting)/" ~/.zshrc;
sudo sed -i "s/plugins=.*/plugins=(git virtualenv zsh-autosuggestions zsh-syntax-highlighting)/" /root/.zshrc;
""",
self.extOhMyZsh, (self.check_oh_my_zsh,), True)
self.btnOhMyZshUninstall = CommandButton(QIcon("GUI/Assets/uninstall.png"), "Uninstall",
r"""echo Confirm that you really want to uninstall oh-my-zsh
sudo rm -rf /root/.oh-my-zsh/ &&
rm -rf $HOME/.oh-my-zsh/""",
self.extOhMyZsh, (self.check_oh_my_zsh,), True)
# Create SyntShell section
# ! Looks like it's not working. Will be added when it's ready.
# Insert groupboxes to layout
self.layout = QGridLayout(self)
self.layout.addWidget(self.appBash)
self.layout.addWidget(self.appSh, 0, 1)
self.layout.addWidget(self.appZsh)
self.layout.addWidget(self.appFish)
self.layout.addWidget(self.extOhMyZsh)
# Initialize
self.check_oh_my_zsh()
# Shortcut for OhMyZsh theme setter.
def zsh_theme_setter(self, theme: str) -> str:
return fr"""[ \"$(grep \"^ZSH_THEME=\" $HOME/.zshrc)\" ] && sudo -i sed -i "s/^ZSH_THEME=.*/ZSH_THEME=\"{theme}\"/" $HOME/.zshrc
sudo [ \"$(sudo grep \"^ZSH_THEME=\" /root/.zshrc)\" ] && sudo -i sed -i "s/^ZSH_THEME=.*/ZSH_THEME=\"{theme}\"/" /root/.zshrc"""
def check_oh_my_zsh(self) -> None:
installed = system("[ -d ~/.oh-my-zsh ]") == 0
if installed:
self.extOhMyZsh.layButtons.addWidget(
self.btnOhMyZshUninstall)
self.extOhMyZsh.layButtons.removeWidget(
self.btnOhMyZshInstall)
self.btnOhMyZshUninstall.show()
self.btnOhMyZshInstall.hide()
else:
self.extOhMyZsh.layButtons.addWidget(
self.btnOhMyZshInstall)
self.extOhMyZsh.layButtons.removeWidget(
self.btnOhMyZshUninstall)
self.btnOhMyZshUninstall.hide()
self.btnOhMyZshInstall.show()

Apply Button Bug

When there's no task the apply button causes Gui to disappear

zsh plugins

script does not install oh-my-zsh plugins for user, only for root.

No process tracking

There's no indicator about installations. In case of fail, the app list selection gone.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.