mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[colorschemes] add a generator for xfce4-terminal
This commit is contained in:
parent
6f4b85af33
commit
5a5067b98c
4 changed files with 36 additions and 5 deletions
|
@ -9,7 +9,7 @@ MAKEFLAGS += --no-builtin-rules
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
|
|
||||||
OUT_DIR := out
|
OUT_DIR := out
|
||||||
OUT_FILES := iterm.itermcolors kitty.conf vim.vim setvtrgb.txt zsh.zsh termux.properties variables.css prismjs-theme.css vscode-colorCustomizations.json
|
OUT_FILES := iterm.itermcolors kitty.conf vim.vim setvtrgb.txt zsh.zsh termux.properties variables.css prismjs-theme.css vscode-colorCustomizations.json xfce4-terminal.theme
|
||||||
|
|
||||||
all: $(OUT_DIR) $(addprefix $(OUT_DIR)/,$(OUT_FILES))
|
all: $(OUT_DIR) $(addprefix $(OUT_DIR)/,$(OUT_FILES))
|
||||||
|
|
||||||
|
|
13
colorschemes/out/xfce4-terminal.theme
Normal file
13
colorschemes/out/xfce4-terminal.theme
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
[Scheme]
|
||||||
|
Name=dmitmel's dotfiles colorscheme
|
||||||
|
ColorForeground=#d3d0c8
|
||||||
|
ColorBackground=#2d2d2d
|
||||||
|
ColorCursorUseDefault=FALSE
|
||||||
|
ColorCursorForeground=#2d2d2d
|
||||||
|
ColorCursor=#d3d0c8
|
||||||
|
ColorSelectionUseDefault=FALSE
|
||||||
|
ColorSelection=#d3d0c8
|
||||||
|
ColorSelectionBackground=#515151
|
||||||
|
TabActivityColor=#f2777a
|
||||||
|
ColorBoldUseDefault=TRUE
|
||||||
|
ColorPalette=#2d2d2d;#f2777a;#99cc99;#ffcc66;#6699cc;#cc99cc;#66cccc;#d3d0c8;#747369;#f2777a;#99cc99;#ffcc66;#6699cc;#cc99cc;#66cccc;#f2f0ec;#f99157;#d27b53;#393939;#515151;#a09f93;#e8e6df
|
17
colorschemes/xfce4-terminal.theme.py
Executable file
17
colorschemes/xfce4-terminal.theme.py
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import _theme as theme
|
||||||
|
|
||||||
|
print("[Scheme]")
|
||||||
|
print("Name=dmitmel's dotfiles colorscheme")
|
||||||
|
print("ColorForeground={}".format(theme.fg))
|
||||||
|
print("ColorBackground={}".format(theme.bg))
|
||||||
|
print("ColorCursorUseDefault=FALSE")
|
||||||
|
print("ColorCursorForeground={}".format(theme.cursor_fg))
|
||||||
|
print("ColorCursor={}".format(theme.cursor_bg))
|
||||||
|
print("ColorSelectionUseDefault=FALSE")
|
||||||
|
print("ColorSelection={}".format(theme.selection_fg))
|
||||||
|
print("ColorSelectionBackground={}".format(theme.selection_bg))
|
||||||
|
print("TabActivityColor={}".format(theme.ansi_colors[1]))
|
||||||
|
print("ColorBoldUseDefault=TRUE")
|
||||||
|
print("ColorPalette={}".format(";".join(theme.ansi_colors)))
|
|
@ -11,19 +11,20 @@ backup=()
|
||||||
package() {
|
package() {
|
||||||
cd "$(dirname "${BASH_SOURCE[0]}")/../files"
|
cd "$(dirname "${BASH_SOURCE[0]}")/../files"
|
||||||
|
|
||||||
install -vDm644 ../../LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
|
install -vDm644 ../../LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||||
_install_my_file -vDm644 etc/initcpio/hooks/bootmsg
|
_install_my_file -vDm644 etc/initcpio/hooks/bootmsg
|
||||||
_install_my_file -vDm644 etc/initcpio/install/bootmsg
|
_install_my_file -vDm644 etc/initcpio/install/bootmsg
|
||||||
_install_my_file -vDm644 etc/initcpio/hooks/consolecolors
|
_install_my_file -vDm644 etc/initcpio/hooks/consolecolors
|
||||||
_install_my_file -vDm644 etc/initcpio/install/consolecolors
|
_install_my_file -vDm644 etc/initcpio/install/consolecolors
|
||||||
install -vdm750 "$pkgdir/etc/sudoers.d"
|
install -vdm750 "${pkgdir}/etc/sudoers.d"
|
||||||
_install_my_file -vDm640 etc/sudoers.d/99_dmitmel_dotfiles
|
_install_my_file -vDm640 etc/sudoers.d/99_dmitmel_dotfiles
|
||||||
_install_my_file -vDm644 etc/sysctl.d/50-dmitmel.conf
|
_install_my_file -vDm644 etc/sysctl.d/50-dmitmel.conf
|
||||||
_install_my_file -vDm644 etc/bootmsg
|
_install_my_file -vDm644 etc/bootmsg
|
||||||
install -vDm644 ../../colorschemes/out/setvtrgb.txt "$pkgdir/etc/consolecolors"
|
install -vDm644 ../../colorschemes/out/setvtrgb.txt "${pkgdir}/etc/consolecolors"
|
||||||
_install_my_file -vDm644 etc/locale.conf
|
_install_my_file -vDm644 etc/locale.conf
|
||||||
|
install -vDm644 ../../colorschemes/out/xfce4-terminal.theme "${pkgdir}/usr/share/xfce4/terminal/colorschemes/${pkgname}.theme"
|
||||||
}
|
}
|
||||||
|
|
||||||
_install_my_file() {
|
_install_my_file() {
|
||||||
install "$@" "$pkgdir/${*: -1}"
|
install "$@" "${pkgdir}/${*: -1}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue