Repository files navigation

Dragoon-Terminal

Forked from Pokemon-Terminal.

This app is for changing the background of a compatible terminal to something The Legend of Dragoon themed. Type dragoon dragoon-lavitz to set an image of Lavitz as the background (pending cleaner names with new images), or see below for the full list of commands.

At the moment, all of the images are just concept art and assets ripped from the game. In the future the images will be clean personalized images inspired by the original Pokemon-Terminal, and all else thrown into Extras.

Looking for an artist! I envision just wings against a backdrop similar to Pokemon-Terminal. Contact me if you want the starter PSD for the included wallpapers. I would love to compensate if I could, pending future.

All credit due to LazoCoder and his contributors for original code and idea, and The Legend of Dragoon, Sony Entertainment for the game assets and concept art.

To do:

  • Create new, consistent backgrounds/wallpapers. Current ones are rough/outright terrible.
  • Change "region" to "category" in all places.
  • Update brightness values.
  • Finish updating this README.
  • Help Pokemon-Terminal project with bug fixes and new features? In favor of replacing flat file, don't know Python...

README

Build Status

Features

  • Images including logos, dragoon spirits, characters and locations
  • Select image by name, category, tag or index number/file name
  • Ability to change the Desktop Wallpaper & the Terminal background
  • Supports iTerm2, Terminology & Tilix terminal emulators
  • Supports MacOS, GNOME, and i3wm (with feh) for desktops

Installation

Install Python 3.6 or higher:

  • For Mac
  • For Ubuntu
  • For Arch Linux
  • Not all compatible distros are named here, but a quick Google search should give you instructions for your distribution of choice.

Get a compatible terminal emulator:

You can then proceed with one of the following methods for installation:

Notes:

  • Your distro might include pip in a different package then Python, make sure to have that installed and running when calling pip3.6 if you want to install using it.
  • npm installation obviously requires to have Node.js installed.

pip (System-wide)

Run sudo pip3.6 install git+https://github.com/BitBruce/Dragoon-Terminal.git. When the command completes, it's installed and ready to go!

pip (Per-User)

You can install it with pip for a single user with pip3.6 install --user git+https://github.com/BitBruce/Dragoon-Terminal.git. You might want to add ~/.local/bin to your PATH to be able to call dragoon everywhere.

npm (Per-User)

You can install in any (npm-supported) OS using npm install --global dragoon-terminal. That's it, you're done!

Distutils (System-wide)

You can clone or download this repo, and run sudo python3.6 setup.py install at the root of the repo.

Usage

usage: dragoon [-h] [-n NAME]
[-r [{logo,spirit,character,location} [{logo,spirit,character,location} ...]]]
[-l [0.xx]] [-d [0.xx]]
[-t [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]]]
[-ne] [-e] [-ss [X]] [-w] [-v] [-dr] [-c]
[id]
Set a character, location or other thing from The Legend of Dragoon to the current terminal background or wallpaper.
positional arguments:
id Specify the wanted image ID or the exact (case
insensitive) name
optional arguments:
-h, --help show this help message and exit
-c, --clear Clears the current image from terminal background
and quits.
Filters:
Arguments used to filter the list of images with various conditions that
then will be picked
-n NAME, --name NAME Filter by images which name contains NAME
-r [{logo,spirit,character,location} [{logo,spirit,character,location} ...]], --region [{logo,spirit,character,location} [{logo,spirit,character,location} ...]]
Filter the images by category
-l [0.xx], --light [0.xx]
Filter out the images darker (lightness threshold
lower) then 0.xx (default is 0.7)
-d [0.xx], --dark [0.xx]
Filter out the images lighter (lightness threshold
higher) then 0.xx (default is 0.42)
-t [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]], --type [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moondart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]]
Filter the images by type.
-ne, --no-extras Excludes extra images (from the extras folder)
-e, --extras Excludes all non-extra images
Misc:
-ss [X], --slideshow [X]
Instead of simply choosing a random image from the
filtered list, starts a slideshow (with X minutes of
delay between image) in the background with the
image that matched the filters
-w, --wallpaper Changes the desktop wallpaper instead of the terminal
background
-v, --verbose Enables verbose output
-dr, --dry-run Implies -v and doesn't actually changes either
wallpaper or background after the image has been
chosen
Not setting any filters will get a completely random image

Example (from Pokemon-Terminal):

Tips, tricks and common issues

iTerm2 settings

I (LazoCoder) highly suggest making the font colors black and the terminal window transparent. Some of the images have both light and dark colours and so it can be difficult to see the text sometimes. Transparency resolves this issue. Since Dragoon-Terminal only changes the background, the transparency must be done manually:

  1. Navigate to iTerm2 > Preferences > Profiles > Window
  2. Set the transparency to about half way.
  3. Hit the "blur" checkbox.
  4. Set the blur to maximum.
  5. Optionally you can set the blending to maximum to adjust the colors to look like the samples provided.

The result should look like this:

Adding Custom Images

The folder dragoonterminal/Images/Extra is for adding custom images. You can manually add backgrounds to this folder and they will be visible to the program. Only JPG format is supported. To see a list of all the custom backgrounds type:

$ dragoon -e -dr

Alternatively, you can delete images from this folder and it will not break the program. These are some custom backgrounds:

Solutions for Common Issues

  • If you experience a line at the top of the terminal after changing the Pokemon, you can remove it by typing in the clear command or opening a new terminal.

  • If you are using Tilix and the terminal background is not changing, try adjusting the transparency in your profile settings.

  • If you are experiencing issues with Terminology and are running on Ubuntu, make sure that you have installed the latest version:

    $ sudo add-apt-repository ppa:niko2040/e19
    $ sudo apt-get update
    $ sudo apt install terminology
  • If you get the error 39:46: syntax error: Expected end of line but found identifier. (-2741): Locate the file ITerm.py in dragoonterminal/terminal/adapters and on line 9, change iTerm to iTerm2. If you still experience the error, try changing it to iTerm 2.

Saving

macOS

I have not yet implemented a way to save the terminal background to a profile. To save a background you will need to setup a startup command in the profile.

  1. Navigate to iTerm2 > Preferences > General
  2. Locate the field where it says Send text at start under Command.
  3. In that field type dragoon -n [dragoon name]. You can see an example in the image down below.
    • Alternatively you can also type dragoon for a random theme each time you open up a new terminal.
  4. You can leave out ; clear if you don't care about the line showing up at the top of the terminal.

Linux

Terminology already saves it automatically, just untick "temporary" in the settings after setting your desired image:

To show a random image each session:

  1. Open ~/.bashrc in your favorite text editor.
  2. Add the following lines to it:
    if [[ "$TERMINOLOGY"-eq"1" ]];then
    dragoon
    fi

That will simply pick a completely random image each session, but the dragoon line is simply calling the app, so you can still filter with regions, darkness, and etc. like you normally would, or you can also reset to a preset image every time you start.

Notes & Credits (for Dragoon-Terminal)

  • Sony Entertainment/The Legend of Dragoon team for the game, and its assets and concept art.
  • LazoCoder and contributors of Pokemon-Terminal.
  • DrewUniverse and the Legend of Dragoon community (find on reddit and discord).
  • Every fan that cherishes this game and contributes to its memory.

Notes & Credits (for Pokemon-Terminal)

  • Nearly all of the Pokemon backgrounds were created by Teej.
  • Originally the images were about 100mb in total but ImageOptim was used to compress them down to about 17mb.
  • Since the images are compressed, some of them may have some mild (but negligible) compression artifacts.
  • Thanks to @DrMartinLutherXing for some bug fixes.
  • Thanks to @joanbono for the easy installation script in the readme.
  • Thanks to @BnMcG for the region specific randomize function.
  • Thanks to @samosaara for the Linux (GNOME and Terminology) port.
  • Thanks to @sylveon for maintaining the AUR package.
  • Thanks to @therealklanni for adding the project to npm.
  • Thanks to @MattMattV for adding Tilix support.
  • Thanks to @connordinho for enhancing the slideshow functionality.
  • Thanks to @cclauss for simplifying the code in the database class and the main class.
  • Thanks to @Fiskie for implementing the adapter design pattern, piping commands and more.
  • Thanks to @marcobiedermann for better image compression.
  • Thanks to @kamil157 and @dosman711 for the randomized slideshow function.
  • Thanks to @Squirrels for adding Pokemon from the Unova and Kalos regions.
  • Thanks to @caedus75 for pip and reorganizing the files & folders.

About

The Legend of Dragoon terminal themes.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Repository files navigation

Dragoon-Terminal

Forked from Pokemon-Terminal.

This app is for changing the background of a compatible terminal to something The Legend of Dragoon themed. Type dragoon dragoon-lavitz to set an image of Lavitz as the background (pending cleaner names with new images), or see below for the full list of commands.

At the moment, all of the images are just concept art and assets ripped from the game. In the future the images will be clean personalized images inspired by the original Pokemon-Terminal, and all else thrown into Extras.

Looking for an artist! I envision just wings against a backdrop similar to Pokemon-Terminal. Contact me if you want the starter PSD for the included wallpapers. I would love to compensate if I could, pending future.

All credit due to LazoCoder and his contributors for original code and idea, and The Legend of Dragoon, Sony Entertainment for the game assets and concept art.

To do:

  • Create new, consistent backgrounds/wallpapers. Current ones are rough/outright terrible.
  • Change "region" to "category" in all places.
  • Update brightness values.
  • Finish updating this README.
  • Help Pokemon-Terminal project with bug fixes and new features? In favor of replacing flat file, don't know Python...

README

Build Status

Features

  • Images including logos, dragoon spirits, characters and locations
  • Select image by name, category, tag or index number/file name
  • Ability to change the Desktop Wallpaper & the Terminal background
  • Supports iTerm2, Terminology & Tilix terminal emulators
  • Supports MacOS, GNOME, and i3wm (with feh) for desktops

Installation

Install Python 3.6 or higher:

  • For Mac
  • For Ubuntu
  • For Arch Linux
  • Not all compatible distros are named here, but a quick Google search should give you instructions for your distribution of choice.

Get a compatible terminal emulator:

You can then proceed with one of the following methods for installation:

Notes:

  • Your distro might include pip in a different package then Python, make sure to have that installed and running when calling pip3.6 if you want to install using it.
  • npm installation obviously requires to have Node.js installed.

pip (System-wide)

Run sudo pip3.6 install git+https://github.com/BitBruce/Dragoon-Terminal.git. When the command completes, it's installed and ready to go!

pip (Per-User)

You can install it with pip for a single user with pip3.6 install --user git+https://github.com/BitBruce/Dragoon-Terminal.git. You might want to add ~/.local/bin to your PATH to be able to call dragoon everywhere.

npm (Per-User)

You can install in any (npm-supported) OS using npm install --global dragoon-terminal. That's it, you're done!

Distutils (System-wide)

You can clone or download this repo, and run sudo python3.6 setup.py install at the root of the repo.

Usage

usage: dragoon [-h] [-n NAME]
[-r [{logo,spirit,character,location} [{logo,spirit,character,location} ...]]]
[-l [0.xx]] [-d [0.xx]]
[-t [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]]]
[-ne] [-e] [-ss [X]] [-w] [-v] [-dr] [-c]
[id]
Set a character, location or other thing from The Legend of Dragoon to the current terminal background or wallpaper.
positional arguments:
id Specify the wanted image ID or the exact (case
insensitive) name
optional arguments:
-h, --help show this help message and exit
-c, --clear Clears the current image from terminal background
and quits.
Filters:
Arguments used to filter the list of images with various conditions that
then will be picked
-n NAME, --name NAME Filter by images which name contains NAME
-r [{logo,spirit,character,location} [{logo,spirit,character,location} ...]], --region [{logo,spirit,character,location} [{logo,spirit,character,location} ...]]
Filter the images by category
-l [0.xx], --light [0.xx]
Filter out the images darker (lightness threshold
lower) then 0.xx (default is 0.7)
-d [0.xx], --dark [0.xx]
Filter out the images lighter (lightness threshold
higher) then 0.xx (default is 0.42)
-t [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]], --type [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moondart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]]
Filter the images by type.
-ne, --no-extras Excludes extra images (from the extras folder)
-e, --extras Excludes all non-extra images
Misc:
-ss [X], --slideshow [X]
Instead of simply choosing a random image from the
filtered list, starts a slideshow (with X minutes of
delay between image) in the background with the
image that matched the filters
-w, --wallpaper Changes the desktop wallpaper instead of the terminal
background
-v, --verbose Enables verbose output
-dr, --dry-run Implies -v and doesn't actually changes either
wallpaper or background after the image has been
chosen
Not setting any filters will get a completely random image

Example (from Pokemon-Terminal):

Tips, tricks and common issues

iTerm2 settings

I (LazoCoder) highly suggest making the font colors black and the terminal window transparent. Some of the images have both light and dark colours and so it can be difficult to see the text sometimes. Transparency resolves this issue. Since Dragoon-Terminal only changes the background, the transparency must be done manually:

  1. Navigate to iTerm2 > Preferences > Profiles > Window
  2. Set the transparency to about half way.
  3. Hit the "blur" checkbox.
  4. Set the blur to maximum.
  5. Optionally you can set the blending to maximum to adjust the colors to look like the samples provided.

The result should look like this:

Adding Custom Images

The folder dragoonterminal/Images/Extra is for adding custom images. You can manually add backgrounds to this folder and they will be visible to the program. Only JPG format is supported. To see a list of all the custom backgrounds type:

$ dragoon -e -dr

Alternatively, you can delete images from this folder and it will not break the program. These are some custom backgrounds:

Solutions for Common Issues

  • If you experience a line at the top of the terminal after changing the Pokemon, you can remove it by typing in the clear command or opening a new terminal.

  • If you are using Tilix and the terminal background is not changing, try adjusting the transparency in your profile settings.

  • If you are experiencing issues with Terminology and are running on Ubuntu, make sure that you have installed the latest version:

    $ sudo add-apt-repository ppa:niko2040/e19
    $ sudo apt-get update
    $ sudo apt install terminology
  • If you get the error 39:46: syntax error: Expected end of line but found identifier. (-2741): Locate the file ITerm.py in dragoonterminal/terminal/adapters and on line 9, change iTerm to iTerm2. If you still experience the error, try changing it to iTerm 2.

Saving

macOS

I have not yet implemented a way to save the terminal background to a profile. To save a background you will need to setup a startup command in the profile.

  1. Navigate to iTerm2 > Preferences > General
  2. Locate the field where it says Send text at start under Command.
  3. In that field type dragoon -n [dragoon name]. You can see an example in the image down below.
    • Alternatively you can also type dragoon for a random theme each time you open up a new terminal.
  4. You can leave out ; clear if you don't care about the line showing up at the top of the terminal.

Linux

Terminology already saves it automatically, just untick "temporary" in the settings after setting your desired image:

To show a random image each session:

  1. Open ~/.bashrc in your favorite text editor.
  2. Add the following lines to it:
    if [[ "$TERMINOLOGY"-eq"1" ]];then
    dragoon
    fi

That will simply pick a completely random image each session, but the dragoon line is simply calling the app, so you can still filter with regions, darkness, and etc. like you normally would, or you can also reset to a preset image every time you start.

Notes & Credits (for Dragoon-Terminal)

  • Sony Entertainment/The Legend of Dragoon team for the game, and its assets and concept art.
  • LazoCoder and contributors of Pokemon-Terminal.
  • DrewUniverse and the Legend of Dragoon community (find on reddit and discord).
  • Every fan that cherishes this game and contributes to its memory.

Notes & Credits (for Pokemon-Terminal)

  • Nearly all of the Pokemon backgrounds were created by Teej.
  • Originally the images were about 100mb in total but ImageOptim was used to compress them down to about 17mb.
  • Since the images are compressed, some of them may have some mild (but negligible) compression artifacts.
  • Thanks to @DrMartinLutherXing for some bug fixes.
  • Thanks to @joanbono for the easy installation script in the readme.
  • Thanks to @BnMcG for the region specific randomize function.
  • Thanks to @samosaara for the Linux (GNOME and Terminology) port.
  • Thanks to @sylveon for maintaining the AUR package.
  • Thanks to @therealklanni for adding the project to npm.
  • Thanks to @MattMattV for adding Tilix support.
  • Thanks to @connordinho for enhancing the slideshow functionality.
  • Thanks to @cclauss for simplifying the code in the database class and the main class.
  • Thanks to @Fiskie for implementing the adapter design pattern, piping commands and more.
  • Thanks to @marcobiedermann for better image compression.
  • Thanks to @kamil157 and @dosman711 for the randomized slideshow function.
  • Thanks to @Squirrels for adding Pokemon from the Unova and Kalos regions.
  • Thanks to @caedus75 for pip and reorganizing the files & folders.

About

The Legend of Dragoon terminal themes.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Dragoon-Terminal

Forked from Pokemon-Terminal.

This app is for changing the background of a compatible terminal to something The Legend of Dragoon themed. Type dragoon dragoon-lavitz to set an image of Lavitz as the background (pending cleaner names with new images), or see below for the full list of commands.

At the moment, all of the images are just concept art and assets ripped from the game. In the future the images will be clean personalized images inspired by the original Pokemon-Terminal, and all else thrown into Extras.

Looking for an artist! I envision just wings against a backdrop similar to Pokemon-Terminal. Contact me if you want the starter PSD for the included wallpapers. I would love to compensate if I could, pending future.

All credit due to LazoCoder and his contributors for original code and idea, and The Legend of Dragoon, Sony Entertainment for the game assets and concept art.

To do:

  • Create new, consistent backgrounds/wallpapers. Current ones are rough/outright terrible.
  • Change "region" to "category" in all places.
  • Update brightness values.
  • Finish updating this README.
  • Help Pokemon-Terminal project with bug fixes and new features? In favor of replacing flat file, don't know Python...

README

Build Status

Features

  • Images including logos, dragoon spirits, characters and locations
  • Select image by name, category, tag or index number/file name
  • Ability to change the Desktop Wallpaper & the Terminal background
  • Supports iTerm2, Terminology & Tilix terminal emulators
  • Supports MacOS, GNOME, and i3wm (with feh) for desktops

Installation

Install Python 3.6 or higher:

  • For Mac
  • For Ubuntu
  • For Arch Linux
  • Not all compatible distros are named here, but a quick Google search should give you instructions for your distribution of choice.

Get a compatible terminal emulator:

You can then proceed with one of the following methods for installation:

Notes:

  • Your distro might include pip in a different package then Python, make sure to have that installed and running when calling pip3.6 if you want to install using it.
  • npm installation obviously requires to have Node.js installed.

pip (System-wide)

Run sudo pip3.6 install git+https://github.com/BitBruce/Dragoon-Terminal.git. When the command completes, it's installed and ready to go!

pip (Per-User)

You can install it with pip for a single user with pip3.6 install --user git+https://github.com/BitBruce/Dragoon-Terminal.git. You might want to add ~/.local/bin to your PATH to be able to call dragoon everywhere.

npm (Per-User)

You can install in any (npm-supported) OS using npm install --global dragoon-terminal. That's it, you're done!

Distutils (System-wide)

You can clone or download this repo, and run sudo python3.6 setup.py install at the root of the repo.

Usage

usage: dragoon [-h] [-n NAME]
[-r [{logo,spirit,character,location} [{logo,spirit,character,location} ...]]]
[-l [0.xx]] [-d [0.xx]]
[-t [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]]]
[-ne] [-e] [-ss [X]] [-w] [-v] [-dr] [-c]
[id]
Set a character, location or other thing from The Legend of Dragoon to the current terminal background or wallpaper.
positional arguments:
id Specify the wanted image ID or the exact (case
insensitive) name
optional arguments:
-h, --help show this help message and exit
-c, --clear Clears the current image from terminal background
and quits.
Filters:
Arguments used to filter the list of images with various conditions that
then will be picked
-n NAME, --name NAME Filter by images which name contains NAME
-r [{logo,spirit,character,location} [{logo,spirit,character,location} ...]], --region [{logo,spirit,character,location} [{logo,spirit,character,location} ...]]
Filter the images by category
-l [0.xx], --light [0.xx]
Filter out the images darker (lightness threshold
lower) then 0.xx (default is 0.7)
-d [0.xx], --dark [0.xx]
Filter out the images lighter (lightness threshold
higher) then 0.xx (default is 0.42)
-t [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]], --type [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moondart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]]
Filter the images by type.
-ne, --no-extras Excludes extra images (from the extras folder)
-e, --extras Excludes all non-extra images
Misc:
-ss [X], --slideshow [X]
Instead of simply choosing a random image from the
filtered list, starts a slideshow (with X minutes of
delay between image) in the background with the
image that matched the filters
-w, --wallpaper Changes the desktop wallpaper instead of the terminal
background
-v, --verbose Enables verbose output
-dr, --dry-run Implies -v and doesn't actually changes either
wallpaper or background after the image has been
chosen
Not setting any filters will get a completely random image

Example (from Pokemon-Terminal):

Tips, tricks and common issues

iTerm2 settings

I (LazoCoder) highly suggest making the font colors black and the terminal window transparent. Some of the images have both light and dark colours and so it can be difficult to see the text sometimes. Transparency resolves this issue. Since Dragoon-Terminal only changes the background, the transparency must be done manually:

  1. Navigate to iTerm2 > Preferences > Profiles > Window
  2. Set the transparency to about half way.
  3. Hit the "blur" checkbox.
  4. Set the blur to maximum.
  5. Optionally you can set the blending to maximum to adjust the colors to look like the samples provided.

The result should look like this:

Adding Custom Images

The folder dragoonterminal/Images/Extra is for adding custom images. You can manually add backgrounds to this folder and they will be visible to the program. Only JPG format is supported. To see a list of all the custom backgrounds type:

$ dragoon -e -dr

Alternatively, you can delete images from this folder and it will not break the program. These are some custom backgrounds:

Solutions for Common Issues

  • If you experience a line at the top of the terminal after changing the Pokemon, you can remove it by typing in the clear command or opening a new terminal.

  • If you are using Tilix and the terminal background is not changing, try adjusting the transparency in your profile settings.

  • If you are experiencing issues with Terminology and are running on Ubuntu, make sure that you have installed the latest version:

    $ sudo add-apt-repository ppa:niko2040/e19
    $ sudo apt-get update
    $ sudo apt install terminology
  • If you get the error 39:46: syntax error: Expected end of line but found identifier. (-2741): Locate the file ITerm.py in dragoonterminal/terminal/adapters and on line 9, change iTerm to iTerm2. If you still experience the error, try changing it to iTerm 2.

Saving

macOS

I have not yet implemented a way to save the terminal background to a profile. To save a background you will need to setup a startup command in the profile.

  1. Navigate to iTerm2 > Preferences > General
  2. Locate the field where it says Send text at start under Command.
  3. In that field type dragoon -n [dragoon name]. You can see an example in the image down below.
    • Alternatively you can also type dragoon for a random theme each time you open up a new terminal.
  4. You can leave out ; clear if you don't care about the line showing up at the top of the terminal.

Linux

Terminology already saves it automatically, just untick "temporary" in the settings after setting your desired image:

To show a random image each session:

  1. Open ~/.bashrc in your favorite text editor.
  2. Add the following lines to it:
    if [[ "$TERMINOLOGY"-eq"1" ]];then
    dragoon
    fi

That will simply pick a completely random image each session, but the dragoon line is simply calling the app, so you can still filter with regions, darkness, and etc. like you normally would, or you can also reset to a preset image every time you start.

Notes & Credits (for Dragoon-Terminal)

  • Sony Entertainment/The Legend of Dragoon team for the game, and its assets and concept art.
  • LazoCoder and contributors of Pokemon-Terminal.
  • DrewUniverse and the Legend of Dragoon community (find on reddit and discord).
  • Every fan that cherishes this game and contributes to its memory.

Notes & Credits (for Pokemon-Terminal)

  • Nearly all of the Pokemon backgrounds were created by Teej.
  • Originally the images were about 100mb in total but ImageOptim was used to compress them down to about 17mb.
  • Since the images are compressed, some of them may have some mild (but negligible) compression artifacts.
  • Thanks to @DrMartinLutherXing for some bug fixes.
  • Thanks to @joanbono for the easy installation script in the readme.
  • Thanks to @BnMcG for the region specific randomize function.
  • Thanks to @samosaara for the Linux (GNOME and Terminology) port.
  • Thanks to @sylveon for maintaining the AUR package.
  • Thanks to @therealklanni for adding the project to npm.
  • Thanks to @MattMattV for adding Tilix support.
  • Thanks to @connordinho for enhancing the slideshow functionality.
  • Thanks to @cclauss for simplifying the code in the database class and the main class.
  • Thanks to @Fiskie for implementing the adapter design pattern, piping commands and more.
  • Thanks to @marcobiedermann for better image compression.
  • Thanks to @kamil157 and @dosman711 for the randomized slideshow function.
  • Thanks to @Squirrels for adding Pokemon from the Unova and Kalos regions.
  • Thanks to @caedus75 for pip and reorganizing the files & folders.

About

The Legend of Dragoon terminal themes.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Dragoon-Terminal

Forked from Pokemon-Terminal.

This app is for changing the background of a compatible terminal to something The Legend of Dragoon themed. Type dragoon dragoon-lavitz to set an image of Lavitz as the background (pending cleaner names with new images), or see below for the full list of commands.

At the moment, all of the images are just concept art and assets ripped from the game. In the future the images will be clean personalized images inspired by the original Pokemon-Terminal, and all else thrown into Extras.

Looking for an artist! I envision just wings against a backdrop similar to Pokemon-Terminal. Contact me if you want the starter PSD for the included wallpapers. I would love to compensate if I could, pending future.

All credit due to LazoCoder and his contributors for original code and idea, and The Legend of Dragoon, Sony Entertainment for the game assets and concept art.

To do:

  • Create new, consistent backgrounds/wallpapers. Current ones are rough/outright terrible.
  • Change "region" to "category" in all places.
  • Update brightness values.
  • Finish updating this README.
  • Help Pokemon-Terminal project with bug fixes and new features? In favor of replacing flat file, don't know Python...

README

Build Status

Features

  • Images including logos, dragoon spirits, characters and locations
  • Select image by name, category, tag or index number/file name
  • Ability to change the Desktop Wallpaper & the Terminal background
  • Supports iTerm2, Terminology & Tilix terminal emulators
  • Supports MacOS, GNOME, and i3wm (with feh) for desktops

Installation

Install Python 3.6 or higher:

  • For Mac
  • For Ubuntu
  • For Arch Linux
  • Not all compatible distros are named here, but a quick Google search should give you instructions for your distribution of choice.

Get a compatible terminal emulator:

You can then proceed with one of the following methods for installation:

Notes:

  • Your distro might include pip in a different package then Python, make sure to have that installed and running when calling pip3.6 if you want to install using it.
  • npm installation obviously requires to have Node.js installed.

pip (System-wide)

Run sudo pip3.6 install git+https://github.com/BitBruce/Dragoon-Terminal.git. When the command completes, it's installed and ready to go!

pip (Per-User)

You can install it with pip for a single user with pip3.6 install --user git+https://github.com/BitBruce/Dragoon-Terminal.git. You might want to add ~/.local/bin to your PATH to be able to call dragoon everywhere.

npm (Per-User)

You can install in any (npm-supported) OS using npm install --global dragoon-terminal. That's it, you're done!

Distutils (System-wide)

You can clone or download this repo, and run sudo python3.6 setup.py install at the root of the repo.

Usage

usage: dragoon [-h] [-n NAME]
[-r [{logo,spirit,character,location} [{logo,spirit,character,location} ...]]]
[-l [0.xx]] [-d [0.xx]]
[-t [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]]]
[-ne] [-e] [-ss [X]] [-w] [-v] [-dr] [-c]
[id]
Set a character, location or other thing from The Legend of Dragoon to the current terminal background or wallpaper.
positional arguments:
id Specify the wanted image ID or the exact (case
insensitive) name
optional arguments:
-h, --help show this help message and exit
-c, --clear Clears the current image from terminal background
and quits.
Filters:
Arguments used to filter the list of images with various conditions that
then will be picked
-n NAME, --name NAME Filter by images which name contains NAME
-r [{logo,spirit,character,location} [{logo,spirit,character,location} ...]], --region [{logo,spirit,character,location} [{logo,spirit,character,location} ...]]
Filter the images by category
-l [0.xx], --light [0.xx]
Filter out the images darker (lightness threshold
lower) then 0.xx (default is 0.7)
-d [0.xx], --dark [0.xx]
Filter out the images lighter (lightness threshold
higher) then 0.xx (default is 0.42)
-t [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]], --type [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moondart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]]
Filter the images by type.
-ne, --no-extras Excludes extra images (from the extras folder)
-e, --extras Excludes all non-extra images
Misc:
-ss [X], --slideshow [X]
Instead of simply choosing a random image from the
filtered list, starts a slideshow (with X minutes of
delay between image) in the background with the
image that matched the filters
-w, --wallpaper Changes the desktop wallpaper instead of the terminal
background
-v, --verbose Enables verbose output
-dr, --dry-run Implies -v and doesn't actually changes either
wallpaper or background after the image has been
chosen
Not setting any filters will get a completely random image

Example (from Pokemon-Terminal):

Tips, tricks and common issues

iTerm2 settings

I (LazoCoder) highly suggest making the font colors black and the terminal window transparent. Some of the images have both light and dark colours and so it can be difficult to see the text sometimes. Transparency resolves this issue. Since Dragoon-Terminal only changes the background, the transparency must be done manually:

  1. Navigate to iTerm2 > Preferences > Profiles > Window
  2. Set the transparency to about half way.
  3. Hit the "blur" checkbox.
  4. Set the blur to maximum.
  5. Optionally you can set the blending to maximum to adjust the colors to look like the samples provided.

The result should look like this:

Adding Custom Images

The folder dragoonterminal/Images/Extra is for adding custom images. You can manually add backgrounds to this folder and they will be visible to the program. Only JPG format is supported. To see a list of all the custom backgrounds type:

$ dragoon -e -dr

Alternatively, you can delete images from this folder and it will not break the program. These are some custom backgrounds:

Solutions for Common Issues

  • If you experience a line at the top of the terminal after changing the Pokemon, you can remove it by typing in the clear command or opening a new terminal.

  • If you are using Tilix and the terminal background is not changing, try adjusting the transparency in your profile settings.

  • If you are experiencing issues with Terminology and are running on Ubuntu, make sure that you have installed the latest version:

    $ sudo add-apt-repository ppa:niko2040/e19
    $ sudo apt-get update
    $ sudo apt install terminology
  • If you get the error 39:46: syntax error: Expected end of line but found identifier. (-2741): Locate the file ITerm.py in dragoonterminal/terminal/adapters and on line 9, change iTerm to iTerm2. If you still experience the error, try changing it to iTerm 2.

Saving

macOS

I have not yet implemented a way to save the terminal background to a profile. To save a background you will need to setup a startup command in the profile.

  1. Navigate to iTerm2 > Preferences > General
  2. Locate the field where it says Send text at start under Command.
  3. In that field type dragoon -n [dragoon name]. You can see an example in the image down below.
    • Alternatively you can also type dragoon for a random theme each time you open up a new terminal.
  4. You can leave out ; clear if you don't care about the line showing up at the top of the terminal.

Linux

Terminology already saves it automatically, just untick "temporary" in the settings after setting your desired image:

To show a random image each session:

  1. Open ~/.bashrc in your favorite text editor.
  2. Add the following lines to it:
    if [[ "$TERMINOLOGY"-eq"1" ]];then
    dragoon
    fi

That will simply pick a completely random image each session, but the dragoon line is simply calling the app, so you can still filter with regions, darkness, and etc. like you normally would, or you can also reset to a preset image every time you start.

Notes & Credits (for Dragoon-Terminal)

  • Sony Entertainment/The Legend of Dragoon team for the game, and its assets and concept art.
  • LazoCoder and contributors of Pokemon-Terminal.
  • DrewUniverse and the Legend of Dragoon community (find on reddit and discord).
  • Every fan that cherishes this game and contributes to its memory.

Notes & Credits (for Pokemon-Terminal)

  • Nearly all of the Pokemon backgrounds were created by Teej.
  • Originally the images were about 100mb in total but ImageOptim was used to compress them down to about 17mb.
  • Since the images are compressed, some of them may have some mild (but negligible) compression artifacts.
  • Thanks to @DrMartinLutherXing for some bug fixes.
  • Thanks to @joanbono for the easy installation script in the readme.
  • Thanks to @BnMcG for the region specific randomize function.
  • Thanks to @samosaara for the Linux (GNOME and Terminology) port.
  • Thanks to @sylveon for maintaining the AUR package.
  • Thanks to @therealklanni for adding the project to npm.
  • Thanks to @MattMattV for adding Tilix support.
  • Thanks to @connordinho for enhancing the slideshow functionality.
  • Thanks to @cclauss for simplifying the code in the database class and the main class.
  • Thanks to @Fiskie for implementing the adapter design pattern, piping commands and more.
  • Thanks to @marcobiedermann for better image compression.
  • Thanks to @kamil157 and @dosman711 for the randomized slideshow function.
  • Thanks to @Squirrels for adding Pokemon from the Unova and Kalos regions.
  • Thanks to @caedus75 for pip and reorganizing the files & folders.

About

The Legend of Dragoon terminal themes.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Repository files navigation

Dragoon-Terminal

Forked from Pokemon-Terminal.

This app is for changing the background of a compatible terminal to something The Legend of Dragoon themed. Type dragoon dragoon-lavitz to set an image of Lavitz as the background (pending cleaner names with new images), or see below for the full list of commands.

At the moment, all of the images are just concept art and assets ripped from the game. In the future the images will be clean personalized images inspired by the original Pokemon-Terminal, and all else thrown into Extras.

Looking for an artist! I envision just wings against a backdrop similar to Pokemon-Terminal. Contact me if you want the starter PSD for the included wallpapers. I would love to compensate if I could, pending future.

All credit due to LazoCoder and his contributors for original code and idea, and The Legend of Dragoon, Sony Entertainment for the game assets and concept art.

To do:

  • Create new, consistent backgrounds/wallpapers. Current ones are rough/outright terrible.
  • Change "region" to "category" in all places.
  • Update brightness values.
  • Finish updating this README.
  • Help Pokemon-Terminal project with bug fixes and new features? In favor of replacing flat file, don't know Python...

README

Build Status

Features

  • Images including logos, dragoon spirits, characters and locations
  • Select image by name, category, tag or index number/file name
  • Ability to change the Desktop Wallpaper & the Terminal background
  • Supports iTerm2, Terminology & Tilix terminal emulators
  • Supports MacOS, GNOME, and i3wm (with feh) for desktops

Installation

Install Python 3.6 or higher:

  • For Mac
  • For Ubuntu
  • For Arch Linux
  • Not all compatible distros are named here, but a quick Google search should give you instructions for your distribution of choice.

Get a compatible terminal emulator:

You can then proceed with one of the following methods for installation:

Notes:

  • Your distro might include pip in a different package then Python, make sure to have that installed and running when calling pip3.6 if you want to install using it.
  • npm installation obviously requires to have Node.js installed.

pip (System-wide)

Run sudo pip3.6 install git+https://github.com/BitBruce/Dragoon-Terminal.git. When the command completes, it's installed and ready to go!

pip (Per-User)

You can install it with pip for a single user with pip3.6 install --user git+https://github.com/BitBruce/Dragoon-Terminal.git. You might want to add ~/.local/bin to your PATH to be able to call dragoon everywhere.

npm (Per-User)

You can install in any (npm-supported) OS using npm install --global dragoon-terminal. That's it, you're done!

Distutils (System-wide)

You can clone or download this repo, and run sudo python3.6 setup.py install at the root of the repo.

Usage

usage: dragoon [-h] [-n NAME]
[-r [{logo,spirit,character,location} [{logo,spirit,character,location} ...]]]
[-l [0.xx]] [-d [0.xx]]
[-t [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]]]
[-ne] [-e] [-ss [X]] [-w] [-v] [-dr] [-c]
[id]
Set a character, location or other thing from The Legend of Dragoon to the current terminal background or wallpaper.
positional arguments:
id Specify the wanted image ID or the exact (case
insensitive) name
optional arguments:
-h, --help show this help message and exit
-c, --clear Clears the current image from terminal background
and quits.
Filters:
Arguments used to filter the list of images with various conditions that
then will be picked
-n NAME, --name NAME Filter by images which name contains NAME
-r [{logo,spirit,character,location} [{logo,spirit,character,location} ...]], --region [{logo,spirit,character,location} [{logo,spirit,character,location} ...]]
Filter the images by category
-l [0.xx], --light [0.xx]
Filter out the images darker (lightness threshold
lower) then 0.xx (default is 0.7)
-d [0.xx], --dark [0.xx]
Filter out the images lighter (lightness threshold
higher) then 0.xx (default is 0.42)
-t [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]], --type [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moondart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]]
Filter the images by type.
-ne, --no-extras Excludes extra images (from the extras folder)
-e, --extras Excludes all non-extra images
Misc:
-ss [X], --slideshow [X]
Instead of simply choosing a random image from the
filtered list, starts a slideshow (with X minutes of
delay between image) in the background with the
image that matched the filters
-w, --wallpaper Changes the desktop wallpaper instead of the terminal
background
-v, --verbose Enables verbose output
-dr, --dry-run Implies -v and doesn't actually changes either
wallpaper or background after the image has been
chosen
Not setting any filters will get a completely random image

Example (from Pokemon-Terminal):

Tips, tricks and common issues

iTerm2 settings

I (LazoCoder) highly suggest making the font colors black and the terminal window transparent. Some of the images have both light and dark colours and so it can be difficult to see the text sometimes. Transparency resolves this issue. Since Dragoon-Terminal only changes the background, the transparency must be done manually:

  1. Navigate to iTerm2 > Preferences > Profiles > Window
  2. Set the transparency to about half way.
  3. Hit the "blur" checkbox.
  4. Set the blur to maximum.
  5. Optionally you can set the blending to maximum to adjust the colors to look like the samples provided.

The result should look like this:

Adding Custom Images

The folder dragoonterminal/Images/Extra is for adding custom images. You can manually add backgrounds to this folder and they will be visible to the program. Only JPG format is supported. To see a list of all the custom backgrounds type:

$ dragoon -e -dr

Alternatively, you can delete images from this folder and it will not break the program. These are some custom backgrounds:

Solutions for Common Issues

  • If you experience a line at the top of the terminal after changing the Pokemon, you can remove it by typing in the clear command or opening a new terminal.

  • If you are using Tilix and the terminal background is not changing, try adjusting the transparency in your profile settings.

  • If you are experiencing issues with Terminology and are running on Ubuntu, make sure that you have installed the latest version:

    $ sudo add-apt-repository ppa:niko2040/e19
    $ sudo apt-get update
    $ sudo apt install terminology
  • If you get the error 39:46: syntax error: Expected end of line but found identifier. (-2741): Locate the file ITerm.py in dragoonterminal/terminal/adapters and on line 9, change iTerm to iTerm2. If you still experience the error, try changing it to iTerm 2.

Saving

macOS

I have not yet implemented a way to save the terminal background to a profile. To save a background you will need to setup a startup command in the profile.

  1. Navigate to iTerm2 > Preferences > General
  2. Locate the field where it says Send text at start under Command.
  3. In that field type dragoon -n [dragoon name]. You can see an example in the image down below.
    • Alternatively you can also type dragoon for a random theme each time you open up a new terminal.
  4. You can leave out ; clear if you don't care about the line showing up at the top of the terminal.

Linux

Terminology already saves it automatically, just untick "temporary" in the settings after setting your desired image:

To show a random image each session:

  1. Open ~/.bashrc in your favorite text editor.
  2. Add the following lines to it:
    if [[ "$TERMINOLOGY"-eq"1" ]];then
    dragoon
    fi

That will simply pick a completely random image each session, but the dragoon line is simply calling the app, so you can still filter with regions, darkness, and etc. like you normally would, or you can also reset to a preset image every time you start.

Notes & Credits (for Dragoon-Terminal)

  • Sony Entertainment/The Legend of Dragoon team for the game, and its assets and concept art.
  • LazoCoder and contributors of Pokemon-Terminal.
  • DrewUniverse and the Legend of Dragoon community (find on reddit and discord).
  • Every fan that cherishes this game and contributes to its memory.

Notes & Credits (for Pokemon-Terminal)

  • Nearly all of the Pokemon backgrounds were created by Teej.
  • Originally the images were about 100mb in total but ImageOptim was used to compress them down to about 17mb.
  • Since the images are compressed, some of them may have some mild (but negligible) compression artifacts.
  • Thanks to @DrMartinLutherXing for some bug fixes.
  • Thanks to @joanbono for the easy installation script in the readme.
  • Thanks to @BnMcG for the region specific randomize function.
  • Thanks to @samosaara for the Linux (GNOME and Terminology) port.
  • Thanks to @sylveon for maintaining the AUR package.
  • Thanks to @therealklanni for adding the project to npm.
  • Thanks to @MattMattV for adding Tilix support.
  • Thanks to @connordinho for enhancing the slideshow functionality.
  • Thanks to @cclauss for simplifying the code in the database class and the main class.
  • Thanks to @Fiskie for implementing the adapter design pattern, piping commands and more.
  • Thanks to @marcobiedermann for better image compression.
  • Thanks to @kamil157 and @dosman711 for the randomized slideshow function.
  • Thanks to @Squirrels for adding Pokemon from the Unova and Kalos regions.
  • Thanks to @caedus75 for pip and reorganizing the files & folders.

About

The Legend of Dragoon terminal themes.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Dragoon-Terminal

Forked from Pokemon-Terminal.

This app is for changing the background of a compatible terminal to something The Legend of Dragoon themed. Type dragoon dragoon-lavitz to set an image of Lavitz as the background (pending cleaner names with new images), or see below for the full list of commands.

At the moment, all of the images are just concept art and assets ripped from the game. In the future the images will be clean personalized images inspired by the original Pokemon-Terminal, and all else thrown into Extras.

Looking for an artist! I envision just wings against a backdrop similar to Pokemon-Terminal. Contact me if you want the starter PSD for the included wallpapers. I would love to compensate if I could, pending future.

All credit due to LazoCoder and his contributors for original code and idea, and The Legend of Dragoon, Sony Entertainment for the game assets and concept art.

To do:

  • Create new, consistent backgrounds/wallpapers. Current ones are rough/outright terrible.
  • Change "region" to "category" in all places.
  • Update brightness values.
  • Finish updating this README.
  • Help Pokemon-Terminal project with bug fixes and new features? In favor of replacing flat file, don't know Python...

README

Build Status

Features

  • Images including logos, dragoon spirits, characters and locations
  • Select image by name, category, tag or index number/file name
  • Ability to change the Desktop Wallpaper & the Terminal background
  • Supports iTerm2, Terminology & Tilix terminal emulators
  • Supports MacOS, GNOME, and i3wm (with feh) for desktops

Installation

Install Python 3.6 or higher:

  • For Mac
  • For Ubuntu
  • For Arch Linux
  • Not all compatible distros are named here, but a quick Google search should give you instructions for your distribution of choice.

Get a compatible terminal emulator:

You can then proceed with one of the following methods for installation:

Notes:

  • Your distro might include pip in a different package then Python, make sure to have that installed and running when calling pip3.6 if you want to install using it.
  • npm installation obviously requires to have Node.js installed.

pip (System-wide)

Run sudo pip3.6 install git+https://github.com/BitBruce/Dragoon-Terminal.git. When the command completes, it's installed and ready to go!

pip (Per-User)

You can install it with pip for a single user with pip3.6 install --user git+https://github.com/BitBruce/Dragoon-Terminal.git. You might want to add ~/.local/bin to your PATH to be able to call dragoon everywhere.

npm (Per-User)

You can install in any (npm-supported) OS using npm install --global dragoon-terminal. That's it, you're done!

Distutils (System-wide)

You can clone or download this repo, and run sudo python3.6 setup.py install at the root of the repo.

Usage

usage: dragoon [-h] [-n NAME]
[-r [{logo,spirit,character,location} [{logo,spirit,character,location} ...]]]
[-l [0.xx]] [-d [0.xx]]
[-t [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]]]
[-ne] [-e] [-ss [X]] [-w] [-v] [-dr] [-c]
[id]
Set a character, location or other thing from The Legend of Dragoon to the current terminal background or wallpaper.
positional arguments:
id Specify the wanted image ID or the exact (case
insensitive) name
optional arguments:
-h, --help show this help message and exit
-c, --clear Clears the current image from terminal background
and quits.
Filters:
Arguments used to filter the list of images with various conditions that
then will be picked
-n NAME, --name NAME Filter by images which name contains NAME
-r [{logo,spirit,character,location} [{logo,spirit,character,location} ...]], --region [{logo,spirit,character,location} [{logo,spirit,character,location} ...]]
Filter the images by category
-l [0.xx], --light [0.xx]
Filter out the images darker (lightness threshold
lower) then 0.xx (default is 0.7)
-d [0.xx], --dark [0.xx]
Filter out the images lighter (lightness threshold
higher) then 0.xx (default is 0.42)
-t [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]], --type [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moondart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]]
Filter the images by type.
-ne, --no-extras Excludes extra images (from the extras folder)
-e, --extras Excludes all non-extra images
Misc:
-ss [X], --slideshow [X]
Instead of simply choosing a random image from the
filtered list, starts a slideshow (with X minutes of
delay between image) in the background with the
image that matched the filters
-w, --wallpaper Changes the desktop wallpaper instead of the terminal
background
-v, --verbose Enables verbose output
-dr, --dry-run Implies -v and doesn't actually changes either
wallpaper or background after the image has been
chosen
Not setting any filters will get a completely random image

Example (from Pokemon-Terminal):

Tips, tricks and common issues

iTerm2 settings

I (LazoCoder) highly suggest making the font colors black and the terminal window transparent. Some of the images have both light and dark colours and so it can be difficult to see the text sometimes. Transparency resolves this issue. Since Dragoon-Terminal only changes the background, the transparency must be done manually:

  1. Navigate to iTerm2 > Preferences > Profiles > Window
  2. Set the transparency to about half way.
  3. Hit the "blur" checkbox.
  4. Set the blur to maximum.
  5. Optionally you can set the blending to maximum to adjust the colors to look like the samples provided.

The result should look like this:

Adding Custom Images

The folder dragoonterminal/Images/Extra is for adding custom images. You can manually add backgrounds to this folder and they will be visible to the program. Only JPG format is supported. To see a list of all the custom backgrounds type:

$ dragoon -e -dr

Alternatively, you can delete images from this folder and it will not break the program. These are some custom backgrounds:

Solutions for Common Issues

  • If you experience a line at the top of the terminal after changing the Pokemon, you can remove it by typing in the clear command or opening a new terminal.

  • If you are using Tilix and the terminal background is not changing, try adjusting the transparency in your profile settings.

  • If you are experiencing issues with Terminology and are running on Ubuntu, make sure that you have installed the latest version:

    $ sudo add-apt-repository ppa:niko2040/e19
    $ sudo apt-get update
    $ sudo apt install terminology
  • If you get the error 39:46: syntax error: Expected end of line but found identifier. (-2741): Locate the file ITerm.py in dragoonterminal/terminal/adapters and on line 9, change iTerm to iTerm2. If you still experience the error, try changing it to iTerm 2.

Saving

macOS

I have not yet implemented a way to save the terminal background to a profile. To save a background you will need to setup a startup command in the profile.

  1. Navigate to iTerm2 > Preferences > General
  2. Locate the field where it says Send text at start under Command.
  3. In that field type dragoon -n [dragoon name]. You can see an example in the image down below.
    • Alternatively you can also type dragoon for a random theme each time you open up a new terminal.
  4. You can leave out ; clear if you don't care about the line showing up at the top of the terminal.

Linux

Terminology already saves it automatically, just untick "temporary" in the settings after setting your desired image:

To show a random image each session:

  1. Open ~/.bashrc in your favorite text editor.
  2. Add the following lines to it:
    if [[ "$TERMINOLOGY"-eq"1" ]];then
    dragoon
    fi

That will simply pick a completely random image each session, but the dragoon line is simply calling the app, so you can still filter with regions, darkness, and etc. like you normally would, or you can also reset to a preset image every time you start.

Notes & Credits (for Dragoon-Terminal)

  • Sony Entertainment/The Legend of Dragoon team for the game, and its assets and concept art.
  • LazoCoder and contributors of Pokemon-Terminal.
  • DrewUniverse and the Legend of Dragoon community (find on reddit and discord).
  • Every fan that cherishes this game and contributes to its memory.

Notes & Credits (for Pokemon-Terminal)

  • Nearly all of the Pokemon backgrounds were created by Teej.
  • Originally the images were about 100mb in total but ImageOptim was used to compress them down to about 17mb.
  • Since the images are compressed, some of them may have some mild (but negligible) compression artifacts.
  • Thanks to @DrMartinLutherXing for some bug fixes.
  • Thanks to @joanbono for the easy installation script in the readme.
  • Thanks to @BnMcG for the region specific randomize function.
  • Thanks to @samosaara for the Linux (GNOME and Terminology) port.
  • Thanks to @sylveon for maintaining the AUR package.
  • Thanks to @therealklanni for adding the project to npm.
  • Thanks to @MattMattV for adding Tilix support.
  • Thanks to @connordinho for enhancing the slideshow functionality.
  • Thanks to @cclauss for simplifying the code in the database class and the main class.
  • Thanks to @Fiskie for implementing the adapter design pattern, piping commands and more.
  • Thanks to @marcobiedermann for better image compression.
  • Thanks to @kamil157 and @dosman711 for the randomized slideshow function.
  • Thanks to @Squirrels for adding Pokemon from the Unova and Kalos regions.
  • Thanks to @caedus75 for pip and reorganizing the files & folders.

About

The Legend of Dragoon terminal themes.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Dragoon-Terminal

Forked from Pokemon-Terminal.

This app is for changing the background of a compatible terminal to something The Legend of Dragoon themed. Type dragoon dragoon-lavitz to set an image of Lavitz as the background (pending cleaner names with new images), or see below for the full list of commands.

At the moment, all of the images are just concept art and assets ripped from the game. In the future the images will be clean personalized images inspired by the original Pokemon-Terminal, and all else thrown into Extras.

Looking for an artist! I envision just wings against a backdrop similar to Pokemon-Terminal. Contact me if you want the starter PSD for the included wallpapers. I would love to compensate if I could, pending future.

All credit due to LazoCoder and his contributors for original code and idea, and The Legend of Dragoon, Sony Entertainment for the game assets and concept art.

To do:

  • Create new, consistent backgrounds/wallpapers. Current ones are rough/outright terrible.
  • Change "region" to "category" in all places.
  • Update brightness values.
  • Finish updating this README.
  • Help Pokemon-Terminal project with bug fixes and new features? In favor of replacing flat file, don't know Python...

README

Build Status

Features

  • Images including logos, dragoon spirits, characters and locations
  • Select image by name, category, tag or index number/file name
  • Ability to change the Desktop Wallpaper & the Terminal background
  • Supports iTerm2, Terminology & Tilix terminal emulators
  • Supports MacOS, GNOME, and i3wm (with feh) for desktops

Installation

Install Python 3.6 or higher:

  • For Mac
  • For Ubuntu
  • For Arch Linux
  • Not all compatible distros are named here, but a quick Google search should give you instructions for your distribution of choice.

Get a compatible terminal emulator:

You can then proceed with one of the following methods for installation:

Notes:

  • Your distro might include pip in a different package then Python, make sure to have that installed and running when calling pip3.6 if you want to install using it.
  • npm installation obviously requires to have Node.js installed.

pip (System-wide)

Run sudo pip3.6 install git+https://github.com/BitBruce/Dragoon-Terminal.git. When the command completes, it's installed and ready to go!

pip (Per-User)

You can install it with pip for a single user with pip3.6 install --user git+https://github.com/BitBruce/Dragoon-Terminal.git. You might want to add ~/.local/bin to your PATH to be able to call dragoon everywhere.

npm (Per-User)

You can install in any (npm-supported) OS using npm install --global dragoon-terminal. That's it, you're done!

Distutils (System-wide)

You can clone or download this repo, and run sudo python3.6 setup.py install at the root of the repo.

Usage

usage: dragoon [-h] [-n NAME]
[-r [{logo,spirit,character,location} [{logo,spirit,character,location} ...]]]
[-l [0.xx]] [-d [0.xx]]
[-t [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]]]
[-ne] [-e] [-ss [X]] [-w] [-v] [-dr] [-c]
[id]
Set a character, location or other thing from The Legend of Dragoon to the current terminal background or wallpaper.
positional arguments:
id Specify the wanted image ID or the exact (case
insensitive) name
optional arguments:
-h, --help show this help message and exit
-c, --clear Clears the current image from terminal background
and quits.
Filters:
Arguments used to filter the list of images with various conditions that
then will be picked
-n NAME, --name NAME Filter by images which name contains NAME
-r [{logo,spirit,character,location} [{logo,spirit,character,location} ...]], --region [{logo,spirit,character,location} [{logo,spirit,character,location} ...]]
Filter the images by category
-l [0.xx], --light [0.xx]
Filter out the images darker (lightness threshold
lower) then 0.xx (default is 0.7)
-d [0.xx], --dark [0.xx]
Filter out the images lighter (lightness threshold
higher) then 0.xx (default is 0.42)
-t [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]], --type [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moondart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]]
Filter the images by type.
-ne, --no-extras Excludes extra images (from the extras folder)
-e, --extras Excludes all non-extra images
Misc:
-ss [X], --slideshow [X]
Instead of simply choosing a random image from the
filtered list, starts a slideshow (with X minutes of
delay between image) in the background with the
image that matched the filters
-w, --wallpaper Changes the desktop wallpaper instead of the terminal
background
-v, --verbose Enables verbose output
-dr, --dry-run Implies -v and doesn't actually changes either
wallpaper or background after the image has been
chosen
Not setting any filters will get a completely random image

Example (from Pokemon-Terminal):

Tips, tricks and common issues

iTerm2 settings

I (LazoCoder) highly suggest making the font colors black and the terminal window transparent. Some of the images have both light and dark colours and so it can be difficult to see the text sometimes. Transparency resolves this issue. Since Dragoon-Terminal only changes the background, the transparency must be done manually:

  1. Navigate to iTerm2 > Preferences > Profiles > Window
  2. Set the transparency to about half way.
  3. Hit the "blur" checkbox.
  4. Set the blur to maximum.
  5. Optionally you can set the blending to maximum to adjust the colors to look like the samples provided.

The result should look like this:

Adding Custom Images

The folder dragoonterminal/Images/Extra is for adding custom images. You can manually add backgrounds to this folder and they will be visible to the program. Only JPG format is supported. To see a list of all the custom backgrounds type:

$ dragoon -e -dr

Alternatively, you can delete images from this folder and it will not break the program. These are some custom backgrounds:

Solutions for Common Issues

  • If you experience a line at the top of the terminal after changing the Pokemon, you can remove it by typing in the clear command or opening a new terminal.

  • If you are using Tilix and the terminal background is not changing, try adjusting the transparency in your profile settings.

  • If you are experiencing issues with Terminology and are running on Ubuntu, make sure that you have installed the latest version:

    $ sudo add-apt-repository ppa:niko2040/e19
    $ sudo apt-get update
    $ sudo apt install terminology
  • If you get the error 39:46: syntax error: Expected end of line but found identifier. (-2741): Locate the file ITerm.py in dragoonterminal/terminal/adapters and on line 9, change iTerm to iTerm2. If you still experience the error, try changing it to iTerm 2.

Saving

macOS

I have not yet implemented a way to save the terminal background to a profile. To save a background you will need to setup a startup command in the profile.

  1. Navigate to iTerm2 > Preferences > General
  2. Locate the field where it says Send text at start under Command.
  3. In that field type dragoon -n [dragoon name]. You can see an example in the image down below.
    • Alternatively you can also type dragoon for a random theme each time you open up a new terminal.
  4. You can leave out ; clear if you don't care about the line showing up at the top of the terminal.

Linux

Terminology already saves it automatically, just untick "temporary" in the settings after setting your desired image:

To show a random image each session:

  1. Open ~/.bashrc in your favorite text editor.
  2. Add the following lines to it:
    if [[ "$TERMINOLOGY"-eq"1" ]];then
    dragoon
    fi

That will simply pick a completely random image each session, but the dragoon line is simply calling the app, so you can still filter with regions, darkness, and etc. like you normally would, or you can also reset to a preset image every time you start.

Notes & Credits (for Dragoon-Terminal)

  • Sony Entertainment/The Legend of Dragoon team for the game, and its assets and concept art.
  • LazoCoder and contributors of Pokemon-Terminal.
  • DrewUniverse and the Legend of Dragoon community (find on reddit and discord).
  • Every fan that cherishes this game and contributes to its memory.

Notes & Credits (for Pokemon-Terminal)

  • Nearly all of the Pokemon backgrounds were created by Teej.
  • Originally the images were about 100mb in total but ImageOptim was used to compress them down to about 17mb.
  • Since the images are compressed, some of them may have some mild (but negligible) compression artifacts.
  • Thanks to @DrMartinLutherXing for some bug fixes.
  • Thanks to @joanbono for the easy installation script in the readme.
  • Thanks to @BnMcG for the region specific randomize function.
  • Thanks to @samosaara for the Linux (GNOME and Terminology) port.
  • Thanks to @sylveon for maintaining the AUR package.
  • Thanks to @therealklanni for adding the project to npm.
  • Thanks to @MattMattV for adding Tilix support.
  • Thanks to @connordinho for enhancing the slideshow functionality.
  • Thanks to @cclauss for simplifying the code in the database class and the main class.
  • Thanks to @Fiskie for implementing the adapter design pattern, piping commands and more.
  • Thanks to @marcobiedermann for better image compression.
  • Thanks to @kamil157 and @dosman711 for the randomized slideshow function.
  • Thanks to @Squirrels for adding Pokemon from the Unova and Kalos regions.
  • Thanks to @caedus75 for pip and reorganizing the files & folders.

About

The Legend of Dragoon terminal themes.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Repository files navigation

Dragoon-Terminal

Forked from Pokemon-Terminal.

This app is for changing the background of a compatible terminal to something The Legend of Dragoon themed. Type dragoon dragoon-lavitz to set an image of Lavitz as the background (pending cleaner names with new images), or see below for the full list of commands.

At the moment, all of the images are just concept art and assets ripped from the game. In the future the images will be clean personalized images inspired by the original Pokemon-Terminal, and all else thrown into Extras.

Looking for an artist! I envision just wings against a backdrop similar to Pokemon-Terminal. Contact me if you want the starter PSD for the included wallpapers. I would love to compensate if I could, pending future.

All credit due to LazoCoder and his contributors for original code and idea, and The Legend of Dragoon, Sony Entertainment for the game assets and concept art.

To do:

  • Create new, consistent backgrounds/wallpapers. Current ones are rough/outright terrible.
  • Change "region" to "category" in all places.
  • Update brightness values.
  • Finish updating this README.
  • Help Pokemon-Terminal project with bug fixes and new features? In favor of replacing flat file, don't know Python...

README

Build Status

Features

  • Images including logos, dragoon spirits, characters and locations
  • Select image by name, category, tag or index number/file name
  • Ability to change the Desktop Wallpaper & the Terminal background
  • Supports iTerm2, Terminology & Tilix terminal emulators
  • Supports MacOS, GNOME, and i3wm (with feh) for desktops

Installation

Install Python 3.6 or higher:

  • For Mac
  • For Ubuntu
  • For Arch Linux
  • Not all compatible distros are named here, but a quick Google search should give you instructions for your distribution of choice.

Get a compatible terminal emulator:

You can then proceed with one of the following methods for installation:

Notes:

  • Your distro might include pip in a different package then Python, make sure to have that installed and running when calling pip3.6 if you want to install using it.
  • npm installation obviously requires to have Node.js installed.

pip (System-wide)

Run sudo pip3.6 install git+https://github.com/BitBruce/Dragoon-Terminal.git. When the command completes, it's installed and ready to go!

pip (Per-User)

You can install it with pip for a single user with pip3.6 install --user git+https://github.com/BitBruce/Dragoon-Terminal.git. You might want to add ~/.local/bin to your PATH to be able to call dragoon everywhere.

npm (Per-User)

You can install in any (npm-supported) OS using npm install --global dragoon-terminal. That's it, you're done!

Distutils (System-wide)

You can clone or download this repo, and run sudo python3.6 setup.py install at the root of the repo.

Usage

usage: dragoon [-h] [-n NAME]
[-r [{logo,spirit,character,location} [{logo,spirit,character,location} ...]]]
[-l [0.xx]] [-d [0.xx]]
[-t [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]]]
[-ne] [-e] [-ss [X]] [-w] [-v] [-dr] [-c]
[id]
Set a character, location or other thing from The Legend of Dragoon to the current terminal background or wallpaper.
positional arguments:
id Specify the wanted image ID or the exact (case
insensitive) name
optional arguments:
-h, --help show this help message and exit
-c, --clear Clears the current image from terminal background
and quits.
Filters:
Arguments used to filter the list of images with various conditions that
then will be picked
-n NAME, --name NAME Filter by images which name contains NAME
-r [{logo,spirit,character,location} [{logo,spirit,character,location} ...]], --region [{logo,spirit,character,location} [{logo,spirit,character,location} ...]]
Filter the images by category
-l [0.xx], --light [0.xx]
Filter out the images darker (lightness threshold
lower) then 0.xx (default is 0.7)
-d [0.xx], --dark [0.xx]
Filter out the images lighter (lightness threshold
higher) then 0.xx (default is 0.42)
-t [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]], --type [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moondart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} [{dart,lavitz,shana,rose,haschel,albert,meru,kongol,miranda,lloyd,character,dragoon,logo,spirit,moon} ...]]
Filter the images by type.
-ne, --no-extras Excludes extra images (from the extras folder)
-e, --extras Excludes all non-extra images
Misc:
-ss [X], --slideshow [X]
Instead of simply choosing a random image from the
filtered list, starts a slideshow (with X minutes of
delay between image) in the background with the
image that matched the filters
-w, --wallpaper Changes the desktop wallpaper instead of the terminal
background
-v, --verbose Enables verbose output
-dr, --dry-run Implies -v and doesn't actually changes either
wallpaper or background after the image has been
chosen
Not setting any filters will get a completely random image

Example (from Pokemon-Terminal):

Tips, tricks and common issues

iTerm2 settings

I (LazoCoder) highly suggest making the font colors black and the terminal window transparent. Some of the images have both light and dark colours and so it can be difficult to see the text sometimes. Transparency resolves this issue. Since Dragoon-Terminal only changes the background, the transparency must be done manually:

  1. Navigate to iTerm2 > Preferences > Profiles > Window
  2. Set the transparency to about half way.
  3. Hit the "blur" checkbox.
  4. Set the blur to maximum.
  5. Optionally you can set the blending to maximum to adjust the colors to look like the samples provided.

The result should look like this:

Adding Custom Images

The folder dragoonterminal/Images/Extra is for adding custom images. You can manually add backgrounds to this folder and they will be visible to the program. Only JPG format is supported. To see a list of all the custom backgrounds type:

$ dragoon -e -dr

Alternatively, you can delete images from this folder and it will not break the program. These are some custom backgrounds:

Solutions for Common Issues

  • If you experience a line at the top of the terminal after changing the Pokemon, you can remove it by typing in the clear command or opening a new terminal.

  • If you are using Tilix and the terminal background is not changing, try adjusting the transparency in your profile settings.

  • If you are experiencing issues with Terminology and are running on Ubuntu, make sure that you have installed the latest version:

    $ sudo add-apt-repository ppa:niko2040/e19
    $ sudo apt-get update
    $ sudo apt install terminology
  • If you get the error 39:46: syntax error: Expected end of line but found identifier. (-2741): Locate the file ITerm.py in dragoonterminal/terminal/adapters and on line 9, change iTerm to iTerm2. If you still experience the error, try changing it to iTerm 2.

Saving

macOS

I have not yet implemented a way to save the terminal background to a profile. To save a background you will need to setup a startup command in the profile.

  1. Navigate to iTerm2 > Preferences > General
  2. Locate the field where it says Send text at start under Command.
  3. In that field type dragoon -n [dragoon name]. You can see an example in the image down below.
    • Alternatively you can also type dragoon for a random theme each time you open up a new terminal.
  4. You can leave out ; clear if you don't care about the line showing up at the top of the terminal.

Linux

Terminology already saves it automatically, just untick "temporary" in the settings after setting your desired image:

To show a random image each session:

  1. Open ~/.bashrc in your favorite text editor.
  2. Add the following lines to it:
    if [[ "$TERMINOLOGY"-eq"1" ]];then
    dragoon
    fi

That will simply pick a completely random image each session, but the dragoon line is simply calling the app, so you can still filter with regions, darkness, and etc. like you normally would, or you can also reset to a preset image every time you start.

Notes & Credits (for Dragoon-Terminal)

  • Sony Entertainment/The Legend of Dragoon team for the game, and its assets and concept art.
  • LazoCoder and contributors of Pokemon-Terminal.
  • DrewUniverse and the Legend of Dragoon community (find on reddit and discord).
  • Every fan that cherishes this game and contributes to its memory.

Notes & Credits (for Pokemon-Terminal)

  • Nearly all of the Pokemon backgrounds were created by Teej.
  • Originally the images were about 100mb in total but ImageOptim was used to compress them down to about 17mb.
  • Since the images are compressed, some of them may have some mild (but negligible) compression artifacts.
  • Thanks to @DrMartinLutherXing for some bug fixes.
  • Thanks to @joanbono for the easy installation script in the readme.
  • Thanks to @BnMcG for the region specific randomize function.
  • Thanks to @samosaara for the Linux (GNOME and Terminology) port.
  • Thanks to @sylveon for maintaining the AUR package.
  • Thanks to @therealklanni for adding the project to npm.
  • Thanks to @MattMattV for adding Tilix support.
  • Thanks to @connordinho for enhancing the slideshow functionality.
  • Thanks to @cclauss for simplifying the code in the database class and the main class.
  • Thanks to @Fiskie for implementing the adapter design pattern, piping commands and more.
  • Thanks to @marcobiedermann for better image compression.
  • Thanks to @kamil157 and @dosman711 for the randomized slideshow function.
  • Thanks to @Squirrels for adding Pokemon from the Unova and Kalos regions.
  • Thanks to @caedus75 for pip and reorganizing the files & folders.

About

The Legend of Dragoon terminal themes.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages