Skip to content

Instantly share code, notes, and snippets.

View lmintmate's full-sized avatar
🇬🇷
💻 Doing computer stuff.

lmintmate

🇬🇷
💻 Doing computer stuff.
View GitHub Profile
@lmintmate
lmintmate / theming-flatpak.rst
Last active April 18, 2022 05:31
Theming Flatpak

Theming Flatpak

Flatpak applications cannot directly use the system theme. This happens because flatpaks do not have the ability to use data files or libraries in /usr (where system themes are typically located). The solution to this was to package themes as Flatpaks, as relying upon the host to have the correct version for every flatpak defeats the portability benefits it provides. These themes are provided as extensions, to the Freedesktop runtime when the extension point is Gtk, and to the KDE runtime when the extension point is Qt.

The theming system requires Flatpak 0.8.4+ and applications using up to date org.gnome.Platform 3.24+, or org.freedesktop.Platform 1.6+, or org.kde.Platform 5.9+.

Installing themes

@lmintmate
lmintmate / bash-prompt.org
Last active May 10, 2018 10:20
My bash prompt

My bash prompt

I recently decided to see if I could create my own bash prompt, inspired by a short guide on making it like powerline. I did want to customize the prompt, but not for it to have the powerline look, so I decided to dig further. Here’s the result.

Bootstrap git status indication

Thanks to the aforementioned short guide, I found out that in the git repository there is a file that enables git prompt support in bash and zsh. The comments in the beginning of the file give setup and usage instructions and configurable parameters. I’ve set it up to show dirty state, untracked files and if there are differences between the repo and upstream.

# custom prompt
source $HOME/.git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE="True"
export GIT_PS1_SHOWUNTRACKEDFILES="True"
@lmintmate
lmintmate / blue-mood.vifm
Created May 14, 2018 12:52
Adaptation of blue-mood theme for vifm - WIP
" Blue Mood
" some colors are pending
highlight clear
highlight Win cterm=none ctermfg=194 ctermbg=25
highlight Directory cterm=bold ctermfg=45 ctermbg=default
highlight Link cterm=bold ctermfg=239 ctermbg=default
highlight BrokenLink cterm=bold ctermfg=red ctermbg=default
highlight Socket cterm=bold ctermfg=24 ctermbg=default
@lmintmate
lmintmate / blue-mood.sh
Last active September 23, 2019 15:07
[OLD VERSION - DO NOT USE] Gogh theme
#!/usr/bin/env bash
# ====================CONFIG THIS =============================== #
COLOR_01="#000000" # Black
COLOR_02="#ff0000" # Red
COLOR_03="#7fff00" # Green
COLOR_04="#ffd700" # Yellow
COLOR_05="#235c94" # Blue
COLOR_06="#4f94cd" # Cyan
COLOR_07="#f5deb3" # Magenta
@lmintmate
lmintmate / pleroma_theme.json
Last active September 25, 2019 14:01
[DEPRECATED - OLD VERSION] Blue Mood theme for Pleroma
{
"_pleroma_theme_version": 1,
"colors": {
"bg": "#104e8b",
"lightBg": "#1a5590",
"btn": "#235c94",
"input": "rgba(35, 92, 148, .5)",
"border": "#2d669e",
"faint": "rgba(245, 245, 245, .5)",
"fg": "#f5f5f5",
@lmintmate
lmintmate / .Xresources
Last active October 16, 2018 12:25
Xresources file featuring settings and Blue Mood colorscheme for XTerm and URxvt
!note: after every change to these settings, apply with xrdb -merge ~/.Xresources
!colorscheme definitions
#define dodgerblue4 #104e8b
#define whitesmoke #f5f5f5
#define tomato #ff6347
#define gold #ffd700
#define bg2 #235c94
#define wheat #f5deb3
#define cyan #00ffff
@lmintmate
lmintmate / blue-mood.colorscheme
Last active September 25, 2019 14:02
[DEPRECATED - MOVED TO REPO] Blue Mood colorscheme for Konsole (KDE's terminal)
[Background]
Color=16,78,139
[BackgroundIntense]
Color=16,78,139
[Color0]
Color=0,0,0
[Color0Intense]
@lmintmate
lmintmate / bluemood
Last active June 25, 2019 19:23
A theme for mocp, based on my terminal colors. Probably won't work well with terminal color themes other than blue mood.
# Example color theme for MOC.
# You can use a theme by copying it to ~/.moc/themes directory and using
# Theme config option or -T command line option.
#
# Fill free to make your own themes and send me them. It will be included in
# official MOC releases or on the MOC web site.
#
# The format of this file is:
# Lines beginning with # are comments.
# Blank lines are ignored.
@lmintmate
lmintmate / pleroma_theme-v2.json
Last active July 23, 2019 10:39
Blue Mood theme for Pleroma - version 2
{"_pleroma_theme_version":2,"theme":{"fonts":{},"shadows":{},"opacity":{},"colors":{"bg":"#104e8b","text":"#f5f5f5","link":"#00ffff","fg":"#235c94","inputText":"#f5f5f5","alertError":"#ff0000","badgeNotification":"#ff0000","cRed":"#ff0000","cBlue":"#4f94cd","cGreen":"#7fff00","cOrange":"#ffd700"},"radii":{"btn":4,"input":4,"panel":10,"avatar":5,"avatarAlt":50,"tooltip":2,"attachment":5}}}
@lmintmate
lmintmate / own-commit-emoji-system.md
Last active February 16, 2022 22:13
My own commit emoji system

lmintmate's commit emoji system

Geared for dotfile and colorscheme tinkerers.

I wasn't satisfied by the existing emoji commit standards, because they are more geared towards coders than people just maintaining dotfiles and only occasionally contributing a bug report or a piece of documentation (e.g. I don't need an emoji for tests, because I don't do any).

Here is my own standard, modelled after my own usage (feel free to use it as well if you want):

  • 🎬 :clapper: = Initial commit1
  • 🆕 :new: = Add stuff
  • 🗑️ :wastebasket: = Remove stuff