This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
| <!-- | |
| Noto Mono + Color Emoji Font Configuration. | |
| Currently the only Terminal Emulator I'm aware that supports colour fonts is Konsole. | |
| Usage: | |
| 0. Ensure that the Noto fonts are installed on your machine. | |
| 1. Install this file to ~/.config/fontconfig/conf.d/99-hack-color-emoji.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| NEW_VERSION=`curl -s https://gitlab.com/api/v4/projects/9602590/releases | jq -r '.[0].name'` | |
| CURRENT_VERSION=`com.gitlab.ColinDuquesnoy.MellowPlayer -v 2>&1 /dev/null | grep -i MellowPlayer | cut -d' ' -f2-` | |
| echo -e "Local Version: \e[95m$CURRENT_VERSION\e[0m Remote Version: \e[95m$NEW_VERSION\e[0m" | |
| if [[ ${NEW_VERSION:0:5} == ${CURRENT_VERSION:0:5} ]]; then | |
| echo "Update not needed!" | |
| exit | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # paste this code in ~/.bashrc | |
| # example --> https://i.imgur.com/EJvWE5Y.png | |
| # lets create functions for PS1 segments | |
| GITCOLOR=34 | |
| VENVCOLOR=5 | |
| function segment_git_branch() { | |
| BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
| if [ ! "${BRANCH}" == "" ] | |
| then | |
| STAT=`parse_git_dirty` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| sudo ln -s /usr/share/fontconfig/conf.avail/10-hinting-slight.conf /etc/fonts/conf.d/10-hinting-slight.conf | |
| sudo ln -s /usr/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d/10-sub-pixel-rgb.conf | |
| sudo ln -s /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d/11-lcdfilter-default.conf |
OlderNewer