this repo has no description

clean up configs and add install script

Changed files
+229 -45
fontconfig
ghostty
.config
ghostty
+30
fontconfig/.config/fontconfig/conf.d/01-color-emoji.conf
···
···
+
<?xml version="1.0"?>
+
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+
<fontconfig>
+
<alias>
+
<family>sans-serif</family>
+
<prefer>
+
<family>Fira Code</family>
+
<family>Apple Color Emoji</family>
+
<family>Noto Color Emoji</family>
+
</prefer>
+
</alias>
+
+
<alias>
+
<family>serif</family>
+
<prefer>
+
<family>Fira Code</family>
+
<family>Apple Color Emoji</family>
+
<family>Noto Color Emoji</family>
+
</prefer>
+
</alias>
+
+
<alias>
+
<family>monospace</family>
+
<prefer>
+
<family>Fira Code</family>
+
<family>Apple Color Emoji</family>
+
<family>Noto Color Emoji</family>
+
</prefer>
+
</alias>
+
</fontconfig>
-31
fontconfig/.config/fontconfig/conf.d/01-noto-emoji.conf
···
-
<?xml version="1.0"?>
-
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
-
<fontconfig>
-
-
<alias>
-
<family>sans-serif</family>
-
<prefer>
-
<family>Fira Code</family>
-
<family>Noto Color Emoji</family>
-
<family>Noto Emoji</family>
-
</prefer>
-
</alias>
-
-
<alias>
-
<family>serif</family>
-
<prefer>
-
<family>Fira Code</family>
-
<family>Noto Color Emoji</family>
-
<family>Noto Emoji</family>
-
</prefer>
-
</alias>
-
-
<alias>
-
<family>monospace</family>
-
<prefer>
-
<family>Fira Code</family>
-
<family>Noto Color Emoji</family>
-
<family>Noto Emoji</family>
-
</prefer>
-
</alias>
-
</fontconfig>
···
+21
fontconfig/.config/fontconfig/fonts.conf
···
···
+
<?xml version="1.0"?>
+
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+
<fontconfig>
+
<match target="font">
+
<edit name="rgba" mode="assign">
+
<const>rgb</const>
+
</edit>
+
<edit name="hinting" mode="assign">
+
<bool>true</bool>
+
</edit>
+
<edit name="hintstyle" mode="assign">
+
<const>hintslight</const>
+
</edit>
+
<edit name="antialias" mode="assign">
+
<bool>true</bool>
+
</edit>
+
<edit name="lcdfilter" mode="assign">
+
<const>lcddefault</const>
+
</edit>
+
</match>
+
</fontconfig>
+122 -14
ghostty/.config/ghostty/config
···
-
# aesthetics
font-family = "Berkeley Mono"
font-family-bold = "Berkeley Mono"
font-family-italic = "Berkeley Mono"
font-family-bold-italic = "Berkeley Mono"
-
font-size = 16
theme = catppuccin-mocha
background-opacity = 0.9
unfocused-split-opacity = 0.95
-
shell-integration = fish
-
cursor-opacity = 1
-
cursor-style = bar
-
cursor-style-blink = true
window-padding-x = 8
window-padding-y = 8
-
window-decoration = false
-
gtk-adwaita = false
-
# disable popup for resizing
resize-overlay = never
-
# configs
-
scrollback-limit = 10000
focus-follows-mouse = true
-
clipboard-read = allow
-
clipboard-write = allow
-
clipboard-trim-trailing-spaces = true
···
+
# # # # # # # #
+
# FONT STUFF #
+
# # # # # # # #
font-family = "Berkeley Mono"
font-family-bold = "Berkeley Mono"
font-family-italic = "Berkeley Mono"
font-family-bold-italic = "Berkeley Mono"
+
font-feature = -liga
+
font-synthetic-style = false
font-size = 16
+
alpha-blending = native
+
+
# # # # # # # # #
+
# CURSOR STUFF #
+
# # # # # # # # #
+
adjust-cursor-thickness = 5
+
cursor-invert-fg-bg = true
+
cursor-opacity = 1
+
cursor-style = bar
+
cursor-style-blink = true
+
cursor-click-to-move = true
+
+
mouse-hide-while-typing = true
+
mouse-shift-capture = true
+
mouse-scroll-multiplier = 1
+
+
# # # # # # # #
+
# COLOR STUFF #
+
# # # # # # # #
theme = catppuccin-mocha
+
background-opacity = 0.9
+
background-blur = true
unfocused-split-opacity = 0.95
+
unfocused-split-opacity = 0.7
+
split-divider-color = #94e2d5
+
# # # # # # #
+
# CLIPBOARD #
+
# # # # # # #
+
clipboard-paste-bracketed-safe = true
+
clipboard-paste-protection = false
+
clipboard-read = allow
+
clipboard-trim-trailing-spaces = true
+
clipboard-write = allow
+
copy-on-select = false
+
# # ## # #
+
# WINDOW #
+
# # ## # #
+
window-decoration = none
+
window-inherit-font-size = true
+
window-inherit-working-directory = true
+
window-new-tab-position = end
+
window-padding-balance = true
+
window-padding-color = extend
window-padding-x = 8
window-padding-y = 8
+
window-save-state = never
+
window-step-resize = false
+
window-subtitle = working-directory
+
window-theme = system
+
window-title-font-family = "Berkeley Mono"
+
window-vsync = true
+
# # # # # # # #
+
# MAC CONFIG #
+
# # # # # # # #
+
macos-auto-secure-input = true
+
macos-icon = blueprint
+
macos-icon-frame = chrome
+
macos-non-native-fullscreen = false
+
macos-secure-input-indication = true
+
macos-titlebar-proxy-icon = hidden
+
macos-titlebar-style = transparent
+
macos-window-shadow = true
+
# # # # # # # #
+
# GTK CONFIG #
+
# # # # # # # #
+
gtk-adwaita = true
+
gtk-opengl-debug = false
+
gtk-single-instance = desktop
+
gtk-tabs-location = top
+
gtk-titlebar = true
+
gtk-titlebar-hide-when-maximized = false
+
gtk-wide-tabs = true
+
+
# # # # # # # # # #
+
# PREVENT POPUPS #
+
# # # # # # # # # #
+
confirm-close-surface = false
resize-overlay = never
+
quit-after-last-window-closed = true
+
quit-after-last-window-closed-delay = 1m
+
# # # # # ##
+
# SECURITY #
+
## # # # # #
+
title-report = false
+
vt-kam-allowed = false
+
# package manager does this :d
+
auto-update = off
+
# # # # # # # ##
+
# random stuff #
+
## # # # # # # #
+
adw-toolbar-style = raised
+
app-notifications = false
+
click-repeat-interval = 0
+
config-default-files = true
+
custom-shader-animation = false
+
desktop-notifications = true
focus-follows-mouse = true
+
fullscreen = false
+
image-storage-limit = 4294697295
+
initial-window = true
+
maximize = false
+
osc-color-report-format = 16-bit
+
resize-overlay = never
+
scrollback-limit = 10000000
+
shell-integration = fish
+
shell-integration-features = cursor,no-sudo,title
+
term = xterm-ghostty
+
working-directory = inherit
+
+
# # # # # ##
+
# KEYBINDS #
+
## # # # # #
+
keybind = ctrl+insert=copy_to_clipboard
+
keybind = shift+insert=paste_from_selection
+
keybind = ctrl+shift+c=copy_to_clipboard
+
keybind = ctrl+shift+v=paste_from_clipboard
+
keybind = ctrl+shift+a=select_all
+
keybind = ctrl+equal=increase_font_size:1
+
keybind = ctrl+plus=increase_font_size:1
+
keybind = ctrl+minus=decrease_font_size:1
+
keybind = ctrl+shift+comma=reload_config
+
keybind = ctrl+zero=reset_font_size
+
keybind = clear
+56
install.sh
···
···
+
#!/usr/bin/env bash
+
+
function command_exists() {
+
if ! command -v "$1" >/dev/null 2>&1
+
then
+
echo "<$1> could not be found"
+
return 1
+
else
+
return 0
+
fi
+
}
+
+
function command_needed() {
+
if ! command_exists "$1" ;
+
then
+
echo "$1 is a needed dependency"
+
fi
+
}
+
+
function font_exists() {
+
if ! fc-list | grep "$1" >/dev/null 2>&1
+
then
+
echo "please install font $1"
+
return 1
+
else
+
return 0
+
fi
+
}
+
+
function install_apple_emojis() {
+
local download_url=$(curl -s https://api.github.com/repos/samuelngs/apple-emoji-linux/releases/latest | jq --raw-output '.assets[0].browser_download_url')
+
mkdir -pv ~/.local/share/fonts
+
if [ -n "$download_url" ]; then
+
curl -L -o ~/.local/share/fonts/AppleColorEmoji.ttf "$download_url"
+
else
+
echo "error: could not find download url for apple emojis >.<"
+
fi
+
}
+
+
command_needed stow
+
command_needed fc-list
+
command_needed fc-cache
+
command_needed curl
+
command_needed jq
+
+
install_apple_emojis
+
+
font_exists "Berkeley Mono"
+
font_exists "Apple Color Emoji"
+
font_exists "Noto Color Emoji"
+
+
stow fontconfig
+
fc-cache -f -v
+
+
command_exists ghostty
+
stow ghostty