summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Vink <ivi@vinkies.net>2025-02-15 15:53:51 +0100
committerMike Vink <ivi@vinkies.net>2025-02-15 21:23:59 +0100
commitcd2f8e832247899e79f4ce037d14db57697f48bf (patch)
tree4307cde42d0ca8b731312b14fb6dfd327199b6b0
parent8e7a3090d41f64f9a6c7f9789e4bbbbbbd57afc9 (diff)
add gruber-darker theme
-rw-r--r--.config/ghostty/config1
-rw-r--r--.config/vis/themes/gruber-darker.lua62
-rw-r--r--.config/vis/visrc.lua4
-rw-r--r--.config/x11/xprofile2
4 files changed, 66 insertions, 3 deletions
diff --git a/.config/ghostty/config b/.config/ghostty/config
index 7107304..b75b89f 100644
--- a/.config/ghostty/config
+++ b/.config/ghostty/config
@@ -22,3 +22,4 @@ clipboard-paste-protection=false
background-blur = true
background-opacity = 0.9
+shell-integration = none
diff --git a/.config/vis/themes/gruber-darker.lua b/.config/vis/themes/gruber-darker.lua
new file mode 100644
index 0000000..0478d5e
--- /dev/null
+++ b/.config/vis/themes/gruber-darker.lua
@@ -0,0 +1,62 @@
+local lexers = vis.lexers
+
+local gruber_darker = {
+ ["fg"] = "#e4e4ef",
+ ["fg+1"] = "#f4f4ff",
+ ["fg+2"] = "#f5f5f5",
+ ["white"] = "#ffffff",
+ ["black"] = "#000000",
+ ["bg-1"] = "#101010",
+ ["bg"] = "#181818",
+ ["bg+1"] = "#282828",
+ ["bg+2"] = "#453d41",
+ ["bg+3"] = "#484848",
+ ["bg+4"] = "#52494e",
+ ["red-1"] = "#c73c3f",
+ ["red"] = "#f43841",
+ ["red+1"] = "#ff4f58",
+ ["green"] = "#73c936",
+ ["yellow"] = "#ffdd33",
+ ["brown"] = "#cc8c3c",
+ ["quartz"] = "#95a99f",
+ ["niagara-2"] = "#303540",
+ ["niagara-1"] = "#565f73",
+ ["niagara"] = "#96a6c8",
+ ["wisteria"] = "#9e95c7"
+}
+
+-- To use your terminal's default background (e.g. for transparency), set the value below to 'back:default,fore:'..gruber_darker.fg
+lexers.STYLE_DEFAULT = 'back:'..gruber_darker.bg..',fore:'..gruber_darker.fg
+lexers.STYLE_NOTHING = ''
+lexers.STYLE_CLASS = 'fore:'..gruber_darker.yellow
+lexers.STYLE_COMMENT = 'fore:'..gruber_darker.brown..',italics'
+lexers.STYLE_CONSTANT = 'fore:'..gruber_darker.quartz
+lexers.STYLE_DEFINITION = 'fore:'..gruber_darker.yellow
+lexers.STYLE_ERROR = 'fore:'..gruber_darker["red+1"]..',back:'..gruber_darker.bg
+lexers.STYLE_FUNCTION = 'fore:'..gruber_darker.niagara..',bold'
+lexers.STYLE_KEYWORD = 'fore:'..gruber_darker.yellow..',bold'
+lexers.STYLE_LABEL = 'fore:'..gruber_darker.green..',back:'..gruber_darker["bg+1"]
+lexers.STYLE_NUMBER = 'fore:'..gruber_darker.wisteria
+lexers.STYLE_OPERATOR = lexers.STYLE_DEFAULT
+lexers.STYLE_REGEX = 'fore:'..gruber_darker.quartz
+lexers.STYLE_STRING = 'fore:'..gruber_darker.green
+lexers.STYLE_PREPROCESSOR = 'fore:'..gruber_darker.quartz
+lexers.STYLE_TAG = 'fore:'..gruber_darker.yellow
+lexers.STYLE_TYPE = 'fore:'..gruber_darker.quartz
+lexers.STYLE_VARIABLE = 'fore:'..gruber_darker["fg+1"]
+lexers.STYLE_WHITESPACE = 'fore:'..gruber_darker["bg+1"]
+lexers.STYLE_EMBEDDED = 'fore:'..gruber_darker["niagara-1"]
+lexers.STYLE_IDENTIFIER = lexers.STYLE_DEFAULT -- 'fore:'..gruber_darker["niagara-2"]
+
+lexers.STYLE_LINENUMBER = 'fore:'..gruber_darker["bg+4"]
+lexers.STYLE_LINENUMBER_CURSOR = 'fore:'..gruber_darker.yellow
+lexers.STYLE_CURSOR = 'back:'..gruber_darker["niagara-2"]
+lexers.STYLE_CURSOR_PRIMARY = 'back:'..gruber_darker["niagara-1"]
+lexers.STYLE_CURSOR_LINE = 'back:'..gruber_darker["bg+1"]
+lexers.STYLE_COLOR_COLUMN = 'back:'..gruber_darker["bg+1"]
+lexers.STYLE_SELECTION = 'back:'..gruber_darker["bg+1"]
+lexers.STYLE_STATUS = 'fore:'..gruber_darker["fg"]..',back:'..gruber_darker["bg+1"]
+lexers.STYLE_STATUS_FOCUSED = 'fore:'..gruber_darker["fg"]..',back:'..gruber_darker["bg+1"]..',bold'
+lexers.STYLE_SEPARATOR = ''
+lexers.STYLE_INFO = ''
+lexers.STYLE_EOF = lexers.STYLE_LINENUMBER
diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua
index 76aa7fd..c53634b 100644
--- a/.config/vis/visrc.lua
+++ b/.config/vis/visrc.lua
@@ -19,8 +19,8 @@ format.formatters.terraform = format.stdio_formatter("terraform fmt -", {on_save
vis.events.subscribe(vis.events.INIT, function()
vis:command"set shell '/usr/bin/bash'"
vis:command"set edconfhooks on"
- vis:command"set change256colors off"
- vis:command"set theme lemonsoda"
+ -- vis:command"set change256colors off"
+ vis:command"set theme gruber-darker"
vis:map(m.NORMAL, '<C-[>', ':cp<Enter>')
vis:map(m.NORMAL, '<C-]>', ':cn<Enter>')
diff --git a/.config/x11/xprofile b/.config/x11/xprofile
index b9d27fa..588f9dd 100644
--- a/.config/x11/xprofile
+++ b/.config/x11/xprofile
@@ -7,7 +7,7 @@ xrandr --dpi 96 # Set DPI. User may want to use a larger number for larger scre
# setbg & # set the background with the `setbg` script
#xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources & xrdbpid=$! # Uncomment to use Xresources colors/settings on startup
-autostart="mpd xcompmgr dunst pipewire remapd"
+autostart="mpd xcompmgr dunst pipewire" # remapd, doesn't work that well with usb hubs.
for program in $autostart; do
pidof -sx "$program" || "$program" &