Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for Pacman (Arch-based distro). #3

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Documents/Ezsh.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Desktop Entry]
Icon=text-html
Name=Ezsh
Type=Link
URL[$e]=https://github.com/jotyGill/ezsh
1 change: 1 addition & 0 deletions Documents/Konsole Profiles
5 changes: 5 additions & 0 deletions Documents/Oh My Push.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Desktop Entry]
Icon=text-html
Name=Oh My Push
Type=Link
URL[$e]=https://ohmyposh.dev/docs/configuration/overview
5 changes: 5 additions & 0 deletions Documents/Terminal Colour Schema Cheet Code.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Desktop Entry]
Icon=text-html
Name=Terminal Colour Schema Cheet Code
Type=Link
URL[$e]=https://www.tweaking4all.com/software/macosx-software/xterm-color-cheat-sheet/#navigation
1 change: 1 addition & 0 deletions Documents/myconfig.zsh
91 changes: 61 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,66 @@
# Pixegami Terminal Profile

![terminal](./terminal_screenshot.png)
[![MyTerminal](./Screenshots/MyTerminal_shot2.jpg)](./Screenshots/MyTerminal_shot2.jpg)

This is my profile for UNIX (MacOS/Linux) terminals. For Ubuntu, I just use the default terminal
app. For MacOS, I use [iTerm2](https://iterm2.com/).
> It's a pork of [Pixegami Terminal Profile](https://github.com/pixegami/terminal-profile) made runnable on Manjaro KDE (an Arch-based distribution).
For original information on how to run it on Ubuntu and MacOS, please refer to the original repository [pixegami](https://github.com/pixegami/terminal-profile).

> In the MacOS case, I have successfully installed this theme once before, but most of the terminal commands
> will be different. You'll just have to open the `.sh` files and figure out how to adapt it to MacOS
> until I can prepare MacOS commands.

These commands were last tested on May 2022 on Ubuntu 20.
## MyTerminal

# Prerequisites
This is my terminal profile for running on Arch (Manjaro KDE), using the default terminal app [Konsole](https://github.com/KDE/konsole).


### Features:
- Autocomplete
- Syntax highlighting
- Fresh UI
- Smart UX
- Being lightweight is a primary goal
- The best configuration for working with [Yakuake](https://github.com/KDE/yakuake)
- Execute Time



## Automatic Installation

To automatically install MyTerminal, follow these steps:

1. Clone the repository by running the following command in your terminal:

```bash
git clone https://github.com/Amm1rr/MyTerminal.git && cd MyTerminal
```

2. Once inside the cloned repository, run the installation script with the following command:

```bash
./install.sh
```

This script will automatically configure your terminal with the desired plugins and settings.




## Manual Installation

### Prerequisites

For the scripts to work, I think these are the bare minimum requirements.


#### Arch:
```bash
# Update your software repositories.
sudo apt-get update
sudo apt-get upgrade
# Update your software repositories with pacman.
sudo pacman -Syu

# Install Git.
sudo apt-get install -y git
sudo pacman -S git

# Install Vim.
sudo apt-get install -y vim
sudo pacman -S vim
```

# Installation

### Powerline (and fonts)

First, we'll install the font (RobotoMono for Powerline). I'll also install it into VIM, since that
Expand Down Expand Up @@ -63,7 +95,7 @@ This script will first install two plugins that I like to use: auto-complete and
(cd ~/.oh-my-zsh/custom/plugins && git clone https://github.com/zsh-users/zsh-autosuggestions)
```

It will also copy over the `.zshrc` and `pixegami-agnoster.zsh-theme` files for the
It will also copy over the `.zshrc` and `myterminal-agnoster.zsh-theme` files for the
terminal to use (which will wire up the plugins and the theme).

The last command is to create a terminal profile that will set the colors and also set the font
Expand All @@ -79,36 +111,35 @@ If it looks funky after this command, then you might need to wait until the them
Powerline font (the next step), and may need to also restart your machine.


## Notes

How to dump current terminal profiles.
## Notes

```bash
dconf dump /org/gnome/terminal/legacy/profiles:/ > gnome-terminal-profiles.dconf
```
It is easy to make it runnable on Linux, macOS, or Windows Subsystem.

How to display terminal information (I use [Neofetch](https://github.com/dylanaraps/neofetch)).
How to display terminal information like as screenshot (I use [Neofetch](https://github.com/dylanaraps/neofetch)).

```bash
sudo apt-get install neofetch
sudo pacman -S neofetch

# Display the profile
# I override the colors because the default red is kinda ugly in this theme.
neofetch --ascii_colors 6 7 --colors 2 2 2 2
# I override the colors in this theme
neofetch --ascii_colors 6 8
```


## How do I reset the changes back to the old terminal?

There's two main modifications being done to the terminal. The terminal theme, and the shell itself.

For the theme, here's a thread I found on the internet on how to reset it to the default: https://askubuntu.com/questions/14487/how-to-reset-the-terminal-properties-and-preferences
For the terminal shell itself, we actually installed a new terminal (zsh) alongside the default bash. Bash itself wasn't removed, but we just set the default shell to `zsh`. You can search for how to uninstall zsh and default back to bash.

For the terminal shell itself, we actually installed a new terminal (zsh) alongside the default bash. Bash itself wasn't removed, but we just set the default shell to `zsh`. Here is a thread on how to uninstall zsh and default back to bash: https://askubuntu.com/questions/958120/remove-zsh-from-ubuntu-16-04

## Sources

Here are some of the main resources I used as part of this terminal setup.

[Oh My Zsh!](https://medium.com/wearetheledger/oh-my-zsh-made-for-cli-lovers-installation-guide-3131ca5491fb) | [Robby Russel OMZ](https://github.com/robbyrussell/oh-my-zsh) | [Install Powerline](https://askubuntu.com/questions/283908/how-can-i-install-and-use-powerline-plugin) | [Powerline Patched Fonts](https://github.com/powerline/fonts)
| [Agnoster Theme](https://gist.github.com/3712874)
[Oh My Zsh!](https://medium.com/wearetheledger/oh-my-zsh-made-for-cli-lovers-installation-guide-3131ca5491fb) | [Install Powerline](https://askubuntu.com/questions/283908/how-can-i-install-and-use-powerline-plugin) | [Agnoster Theme](https://gist.github.com/3712874) | [Pixegami Terminal Profile](https://github.com/pixegami/terminal-profile) | [Yakuake](https://github.com/KDE/yakuake) | [Vazir Code Font - Saber Rastikerdar](http://rastikerdar.blog.ir/)



[![](https://visitcount.itsvg.in/api?id=amm1rr&label=Views&color=0&icon=2&pretty=true)](https://github.com/Amm1rr)
Binary file added Screenshots/MyTerminal_shot1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/MyTerminal_shot2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/MyTerminal_shot3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion configs/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="pixegami-agnoster"
ZSH_THEME="myterminal-agnoster"

# Set list of themes to load
# Setting this variable when ZSH_THEME=random
Expand Down Expand Up @@ -62,9 +62,14 @@ plugins=(
git
zsh-syntax-highlighting
zsh-autosuggestions
k
marker
zsh-completions
zsh-history-substring-search
)

source $ZSH/oh-my-zsh.sh
source "$HOME/.config/MyTerminal/MyTerminal.zsh"

# User configuration

Expand Down
100 changes: 100 additions & 0 deletions configs/MyTerminal Yakuake.colorscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
[Background]
Color=30,34,41

[BackgroundFaint]
Color=46,52,57

[BackgroundIntense]
Color=13,15,17

[Color0]
Color=30,34,41

[Color0Faint]
Color=46,52,57

[Color0Intense]
Color=127,140,141

[Color1]
Color=237,21,21

[Color1Faint]
Color=120,50,40

[Color1Intense]
Color=192,57,43

[Color2]
Color=68,133,58

[Color2Faint]
Color=50,100,44

[Color2Intense]
Color=85,166,73

[Color3]
Color=246,116,0

[Color3Faint]
Color=182,86,25

[Color3Intense]
Color=253,188,75

[Color4]
Color=29,153,243

[Color4Faint]
Color=27,102,143

[Color4Intense]
Color=61,174,233

[Color5]
Color=186,152,255

[Color5Faint]
Color=97,74,115

[Color5Intense]
Color=170,170,255

[Color6]
Color=26,188,156

[Color6Faint]
Color=24,108,96

[Color6Intense]
Color=22,160,133

[Color7]
Color=252,252,252

[Color7Faint]
Color=99,104,109

[Color7Intense]
Color=255,255,255

[Foreground]
Color=23,168,139

[ForegroundFaint]
Color=20,150,120

[ForegroundIntense]
Color=0,188,150

[General]
Anchor=0.5,0.5
Blur=false
ColorRandomization=false
Description=MyTerminal Yakuake
FillStyle=Tile
Opacity=0.92
Wallpaper=
WallpaperFlipType=NoFlip
WallpaperOpacity=1
34 changes: 34 additions & 0 deletions configs/MyTerminal Yakuake.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[Appearance]
AntiAliasFonts=true
BoldIntense=true
ColorScheme=MyTerminal Yakuake
Font=MesloLGS NF,10,-1,5,50,0,0,0,0,0
IgnoreWcWidth=false
LineSpacing=0
UseFontLineChararacters=false
WordModeAttr=false

[Cursor Options]
CursorShape=1

[General]
Command=/bin/zsh
DimWhenInactive=false
InvertSelectionColors=false
Name=MyTerminal Yakuake
Parent=FALLBACK/
TerminalCenter=false
TerminalMargin=1

[Interaction Options]
MiddleClickPasteMode=0
UnderlineFilesEnabled=true
WordCharacters=:@-./_~?&=%+#

[Keyboard]
KeyBindings=default

[Terminal Features]
BlinkingCursorEnabled=true
LineNumbers=1
VerticalLine=false
Loading