mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-28 18:28:35 -05:00
Add lite-xl basic config
This commit is contained in:
parent
a89b85c7f4
commit
8bfcf0bc7b
@ -106,6 +106,7 @@ cp -rfv ./home/.config/gallery-dl/ ~/.config/gallery-dl/
|
||||
cp -rfv ./home/.config/GIMP/ ~/.config/GIMP/
|
||||
cp -rfv ./home/.config/git/ ~/.config/git/
|
||||
cp -rfv ./home/.config/gtk-3.0/ ~/.config/gtk-3.0/
|
||||
# cp -rfv ./home/.config/lite-xl/ ~/.config/lite-xl/
|
||||
cp -rfv ./home/.config/mpd/ ~/.config/mpd/
|
||||
cp -rfv ./home/.config/mpDris2/ ~/.config/mpDris2/
|
||||
cp -rfv ./home/.config/mpv/ ~/.config/mpv/
|
||||
|
28
home/.config/lite-xl/colors/nord.lua
Normal file
28
home/.config/lite-xl/colors/nord.lua
Normal file
@ -0,0 +1,28 @@
|
||||
local style = require "core.style"
|
||||
local common = require "core.common"
|
||||
|
||||
style.background = { common.color "#2E3440" }
|
||||
style.background2 = { common.color "#3B4252" }
|
||||
style.background3 = { common.color "#3B4252" }
|
||||
style.text = { common.color "#D8DEE9" }
|
||||
style.caret = { common.color "#D8DEE9" }
|
||||
style.accent = { common.color "#88C0D0" }
|
||||
style.dim = { common.color "#5E81AC" }
|
||||
style.divider = { common.color "#3B4252" }
|
||||
style.selection = { common.color "#434C5E" }
|
||||
style.line_number = { common.color "#4C566A" }
|
||||
style.line_number2 = { common.color "#D8DEE9" }
|
||||
style.line_highlight = { common.color "#3B4252" }
|
||||
style.scrollbar = { common.color "#4C566A" }
|
||||
style.scrollbar2 = { common.color "#D8DEE9" }
|
||||
|
||||
style.syntax["normal"] = { common.color "#ECEFF4" }
|
||||
style.syntax["symbol"] = { common.color "#D8DEE9" }
|
||||
style.syntax["comment"] = { common.color "#4C566A" }
|
||||
style.syntax["keyword"] = { common.color "#81A1C1" }
|
||||
style.syntax["keyword2"] = { common.color "#81A1C1" }
|
||||
style.syntax["number"] = { common.color "#B48EAD" }
|
||||
style.syntax["literal"] = { common.color "#81A1C1" }
|
||||
style.syntax["string"] = { common.color "#A3BE8C" }
|
||||
style.syntax["operator"] = { common.color "#81A1C1" }
|
||||
style.syntax["function"] = { common.color "#88C0D0" }
|
29
home/.config/lite-xl/colors/onedark.lua
Normal file
29
home/.config/lite-xl/colors/onedark.lua
Normal file
@ -0,0 +1,29 @@
|
||||
local style = require "core.style"
|
||||
local common = require "core.common"
|
||||
|
||||
style.background = { common.color "#282c34" }
|
||||
style.background2 = { common.color "#21252B" }
|
||||
style.background3 = { common.color "#21252B" }
|
||||
style.text = { common.color "#abb2bf" }
|
||||
style.caret = { common.color "#528bff" }
|
||||
style.accent = { common.color "#ffffff" }
|
||||
style.dim = { common.color "#4f5873" }
|
||||
style.divider = { common.color "#181A1F" }
|
||||
style.selection = { common.color "#383D49" }
|
||||
style.line_number = { common.color "#53576e" }
|
||||
style.line_number2 = { common.color "#666B76" }
|
||||
style.line_highlight = { common.color "#2C333E" }
|
||||
style.scrollbar = { common.color "#353B45" }
|
||||
style.scrollbar2 = { common.color "#353B45" }
|
||||
|
||||
style.syntax["normal"] = { common.color "#abb2bf" }
|
||||
style.syntax["symbol"] = { common.color "#abb2bf" }
|
||||
style.syntax["comment"] = { common.color "#5f697a" }
|
||||
style.syntax["keyword"] = { common.color "#cd74e8" }
|
||||
style.syntax["keyword2"] = { common.color "#eb6772" }
|
||||
style.syntax["number"] = { common.color "#db9d63" }
|
||||
style.syntax["literal"] = { common.color "#db9d63" }
|
||||
style.syntax["string"] = { common.color "#9acc76" }
|
||||
style.syntax["operator"] = { common.color "#abb2bf" }
|
||||
style.syntax["function"] = { common.color "#5cb3fa" }
|
||||
|
50
home/.config/lite-xl/init.lua
Normal file
50
home/.config/lite-xl/init.lua
Normal file
@ -0,0 +1,50 @@
|
||||
-- put user settings here
|
||||
-- this module will be loaded after everything else when the application starts
|
||||
-- it will be automatically reloaded when saved
|
||||
|
||||
local core = require "core"
|
||||
local keymap = require "core.keymap"
|
||||
local config = require "core.config"
|
||||
local style = require "core.style"
|
||||
|
||||
------------------------------ Themes ----------------------------------------
|
||||
|
||||
core.reload_module("colors.nord")
|
||||
|
||||
--------------------------- Key bindings -------------------------------------
|
||||
|
||||
keymap.add { ["ctrl+q"] = "core:quit" }
|
||||
|
||||
------------------------------- Fonts ----------------------------------------
|
||||
|
||||
-- customize fonts:
|
||||
style.font = renderer.font.load(HOME .. "/.local/share/fonts/Comic/ComicRelief.ttf", 14 * SCALE)
|
||||
style.big_font = renderer.font.load(HOME .. "/.local/share/fonts/Comic/ComicRelief.ttf", 16 * SCALE)
|
||||
style.code_font = renderer.font.load(HOME .. "/.local/share/fonts/Comic/ComicMono.ttf", 16 * SCALE)
|
||||
style.icon_font = renderer.font.load("/usr/share/lite-xl/fonts/icons.ttf", 18 * SCALE)
|
||||
style.icon_big_font = renderer.font.load("/usr/share/lite-xl/fonts/icons.ttf", 24 * SCALE)
|
||||
--
|
||||
-- font names used by lite:
|
||||
-- style.font : user interface
|
||||
-- style.big_font : big text in welcome screen
|
||||
-- style.icon_font : icons
|
||||
-- style.icon_big_font : toolbar icons
|
||||
-- style.code_font : code
|
||||
--
|
||||
-- the function to load the font accept a 3rd optional argument like:
|
||||
--
|
||||
-- {antialiasing="grayscale", hinting="full"}
|
||||
--
|
||||
-- possible values are:
|
||||
-- antialiasing: grayscale, subpixel
|
||||
-- hinting: none, slight, full
|
||||
|
||||
------------------------------ Plugins ----------------------------------------
|
||||
|
||||
-- enable or disable plugin loading setting config entries:
|
||||
|
||||
-- enable trimwhitespace, otherwise it is disable by default:
|
||||
-- config.trimwhitespace = true
|
||||
--
|
||||
-- disable detectindent, otherwise it is enabled by default
|
||||
-- config.detectindent = false
|
11
setup/comic-fonts.sh
Executable file
11
setup/comic-fonts.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
curl -fL https://dtinth.github.io/comic-mono-font/ComicMono.ttf -o ~/.local/share/fonts/Comic/ComicMono.ttf
|
||||
curl -fL https://dtinth.github.io/comic-mono-font/ComicMono-Bold.ttf -o ~/.local/share/fonts/Comic/ComicMono-Bold.ttf
|
||||
curl -fL https://github.com/shannpersand/comic-shanns/raw/master/v2/comic%20shanns%202.ttf ~/.local/share/fonts/Comic/comic_shanns_2.ttf
|
||||
|
||||
curl -fL https://fontlibrary.org/assets/downloads/comic-relief/45c456b6db2aaf2f7f69ac66b5ac7239/comic-relief.zip -o comic-relief.zip
|
||||
unzip comic-relief.zip
|
||||
mv -fv ComicRelief.ttf ~/.local/share/fonts/Comic/ComicRelief.ttf
|
||||
mv -fv ComicRelief-Bold.ttf ~/.local/share/fonts/Comic/ComicRelief-Bold.ttf
|
||||
rm -fv comic-relief.zip FONTLOG.txt OFL-FAQ.txt OFL.txt
|
10
setup/lite-xl.sh
Executable file
10
setup/lite-xl.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -d "$HOME/.local/share/lite-xl" ]; then
|
||||
mkdir -pv ~/.local/share/lite-xl
|
||||
git clone https://github.com/franko/console ~/.local/share/lite-xl/console
|
||||
git clone https://github.com/liquidev/lintplus ~/.local/share/lite-xl/lintplus
|
||||
git clone https://github.com/drmargarido/linters ~/.local/share/lite-xl/linters
|
||||
git clone https://github.com/franko/lite-plugins ~/.local/share/lite-xl/lite-plugins
|
||||
# git clone https://github.com/a327ex/lite-plugins ~/.local/share/lite-xl/lite-plugins-2
|
||||
fi
|
Loading…
Reference in New Issue
Block a user