From 2835512fa0f0a60d914a5dc6f554cc2aa285f48b Mon Sep 17 00:00:00 2001 From: q3aql Date: Sun, 29 May 2022 17:11:51 +0200 Subject: [PATCH] Scripts and config files for build themes --- scripts/Xresources | 107 +++++++++++++++++++++++++++++++++++++++++ scripts/build-theme.sh | 17 +++++++ scripts/kitty.conf | 14 ++++++ scripts/theme.conf | 25 ++++++++++ 4 files changed, 163 insertions(+) create mode 100644 scripts/Xresources create mode 100755 scripts/build-theme.sh create mode 100644 scripts/kitty.conf create mode 100644 scripts/theme.conf diff --git a/scripts/Xresources b/scripts/Xresources new file mode 100644 index 0000000..420e2c4 --- /dev/null +++ b/scripts/Xresources @@ -0,0 +1,107 @@ +Xcursor.theme: Breeze_Default + +Xft.dpi: 96 +Xft.antialias: true +Xft.hinting: true +Xft.rgba: rgb +Xft.autohint: true +Xft.hintstyle: hintfull +Xft.lcdfilter: lcdfilter + +XTerm*renderFont: true +!XTerm*faceName: xft:DejaVu Sans Mono +XTerm*faceName: xft:Liberation Mono +!XTerm*faceName: xft:Mononoki Nerd Font +!XTerm*faceName: xft:Ubuntu Nerd Font +!XTerm*faceName: xft:Monospace +XTerm*faceSize: 10 +XTerm*utf8: 2 +XTerm*locale: true + +XTerm.vt100.translations: #override \n\ + Ctrl j: smaller-vt-font() \n\ + Ctrl k: larger-vt-font() + + +! Every shell is a login shell by default (for inclusion of all necessary environment variables) +XTerm*loginshell: true + +! I like a LOT of scrollback... +XTerm*savelines: 16384 + +! double-click to select whole URLs :D +XTerm*charClass: 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48 + +URxvt*imLocale: en_US.UTF-8 +URxvt*termName: rxvt-unicode-256color +Urxvt*buffered: false +URxvt.intensityStyles: false +URxvt.font: xft:Noto Sans Mono:size=13, \ + xft:Monospace:style=Medium:size=13 +URxvt.saveLines: 2000 +URxvt.scrollBar: false +URxvt.cursorColor: white + +!! Extensions +URxvt.perl-ext-common: default,matcher,resize-font,url-select,keyboard-select,clipboard +URxvt.colorUL: #4682B4 +!! url-select +URxvt.keysym.M-u: perl:url-select:select_next +URxvt.url-select.launcher: urxvt -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss +URxvt.url-select.underline: true +!! keyboard-select: +URxvt.keysym.M-Escape: perl:keyboard-select:activate +!! resize-font +URxvt.resize-font.smaller: C-j +URxvt.resize-font.bigger: C-k +!! Matcher +URxvt.url-launcher: urxvt -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss +URxvt.matcher.button: 1 +!!clipboard +URxvt.keysym.M-c: perl:clipboard:copy +URxvt.keysym.M-v: perl:clipboard:paste +URxvt*depth: 32 + +! Dracula Xresources palette +!! COLORS + +! special +URxvt*foreground: #abb2bf +URxvt*background: #1e2127 +URxvt*cursorColor: #292d3e + +XTerm*foreground: #abb2bf +XTerm*background: #1e2127 +XTerm*cursorColor: #bbc5ff + +! black +*.color0: #5c6370 +*.color8: #5c6370 + +! red +*.color1: #e06c75 +*.color9: #e06c75 + +! green +*.color2: #98c379 +*.color10: #98c379 + +! yellow +*.color3: #d19a66 +*.color11: #d19a66 + +! blue +*.color4: #61afef +*.color12: #61afef + +! magenta +*.color5: #c678dd +*.color13: #c678dd + +! cyan +*.color6: #56b6c2 +*.color14: #56b6c2 + +! white +*.color7: #828791 +*.color15: #828791 diff --git a/scripts/build-theme.sh b/scripts/build-theme.sh new file mode 100755 index 0000000..e36ee32 --- /dev/null +++ b/scripts/build-theme.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +main_folder="/opt/dmenu-scripts/" +folder_themes="/opt/dmenu-scripts/themes" + +if [ -z "${1}" ] ; then + echo "# Theme selector canceled" +else + if [ -f "${folder_themes}/${1}" ] ; then + cp -rf ${folder_themes}/${1} ${main_folder}/config.h + cp -rf ${folder_themes}/${1} ${main_folder}/config.def.h + cd ${main_folder} + make install clean + else + echo "# Theme selector canceled" + fi +fi diff --git a/scripts/kitty.conf b/scripts/kitty.conf new file mode 100644 index 0000000..399341d --- /dev/null +++ b/scripts/kitty.conf @@ -0,0 +1,14 @@ + +#: Fonts configuration +font_family monospace +bold_font auto +italic_font auto +bold_italic_font auto +font_size 10.0 + +#: Cursor +cursor_shape beam +cursor_beam_thickness 1.8 + +#: Load default theme +include /opt/dmenu-scripts/scripts/theme.conf diff --git a/scripts/theme.conf b/scripts/theme.conf new file mode 100644 index 0000000..d8d195e --- /dev/null +++ b/scripts/theme.conf @@ -0,0 +1,25 @@ +# One Dark by q3aql, https://github.com/q3aql +# This work is licensed under the terms of the GPL-2.0 license. +# For a copy, see https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html. + +foreground #abb2bf +background #1e2127 +cursor #cccccc +color0 #282c34 +color1 #e06c75 +color2 #98c379 +color3 #d19a66 +color4 #61afef +color5 #c678dd +color6 #56b6c2 +color7 #979eab +color8 #393e48 +color9 #d19a66 +color10 #56b6c2 +color11 #d19a66 +color12 #61afef +color13 #e06c75 +color14 #56b6c2 +color15 #abb2bf +selection_foreground #1e2127 +selection_background #abb2bf