Juni Kim
2 weeks ago
7 changed files with 214 additions and 152 deletions
-
130dots/alacritty_ubuntu.toml
-
65dots/catppuccin-mocha.toml
-
52install_ubuntu.sh
-
39scripts/cht.sh
-
7scripts/doc2pdf
-
3scripts/gpl
-
70scripts/tmuxs
@ -0,0 +1,130 @@ |
|||
general.import = [ |
|||
"~/.config/alacritty/catppuccin-mocha.toml" |
|||
] |
|||
|
|||
[env] |
|||
TERM = "xterm-256color" |
|||
|
|||
[font] |
|||
size = 11.5 |
|||
|
|||
[font.bold] |
|||
family = "UbuntuMono Nerd Font" |
|||
style = "Bold" |
|||
|
|||
[font.bold_italic] |
|||
family = "UbuntuMono Nerd Font" |
|||
style = "Bold Italic" |
|||
|
|||
[font.italic] |
|||
family = "UbuntuMono Nerd Font" |
|||
style = "Italic" |
|||
|
|||
[font.normal] |
|||
family = "UbuntuMono Nerd Font" |
|||
style = "Regular" |
|||
|
|||
[font.offset] |
|||
x = 0 |
|||
y = 1 |
|||
|
|||
[[keyboard.bindings]] |
|||
action = "Paste" |
|||
key = "V" |
|||
mods = "Control|Shift" |
|||
|
|||
[[keyboard.bindings]] |
|||
action = "Copy" |
|||
key = "C" |
|||
mods = "Control|Shift" |
|||
|
|||
[[keyboard.bindings]] |
|||
action = "PasteSelection" |
|||
key = "Insert" |
|||
mods = "Shift" |
|||
|
|||
[[keyboard.bindings]] |
|||
action = "ResetFontSize" |
|||
key = "Key0" |
|||
mods = "Control" |
|||
|
|||
[[keyboard.bindings]] |
|||
action = "IncreaseFontSize" |
|||
key = "Equals" |
|||
mods = "Control" |
|||
|
|||
[[keyboard.bindings]] |
|||
action = "IncreaseFontSize" |
|||
key = "Plus" |
|||
mods = "Control" |
|||
|
|||
[[keyboard.bindings]] |
|||
action = "DecreaseFontSize" |
|||
key = "Minus" |
|||
mods = "Control" |
|||
|
|||
[[keyboard.bindings]] |
|||
action = "ToggleFullscreen" |
|||
key = "F11" |
|||
mods = "None" |
|||
|
|||
[[keyboard.bindings]] |
|||
action = "Paste" |
|||
key = "Paste" |
|||
mods = "None" |
|||
|
|||
[[keyboard.bindings]] |
|||
action = "Copy" |
|||
key = "Copy" |
|||
mods = "None" |
|||
|
|||
[[keyboard.bindings]] |
|||
action = "ClearLogNotice" |
|||
key = "L" |
|||
mods = "Control" |
|||
|
|||
[[keyboard.bindings]] |
|||
chars = "\f" |
|||
key = "L" |
|||
mods = "Control" |
|||
|
|||
[[keyboard.bindings]] |
|||
action = "ScrollPageUp" |
|||
key = "PageUp" |
|||
mode = "~Alt" |
|||
mods = "None" |
|||
|
|||
[[keyboard.bindings]] |
|||
action = "ScrollPageDown" |
|||
key = "PageDown" |
|||
mode = "~Alt" |
|||
mods = "None" |
|||
|
|||
[[keyboard.bindings]] |
|||
action = "ScrollToTop" |
|||
key = "Home" |
|||
mode = "~Alt" |
|||
mods = "Shift" |
|||
|
|||
[[keyboard.bindings]] |
|||
action = "ScrollToBottom" |
|||
key = "End" |
|||
mode = "~Alt" |
|||
mods = "Shift" |
|||
|
|||
[scrolling] |
|||
history = 5000 |
|||
|
|||
[window] |
|||
decorations = "none" |
|||
dynamic_padding = false |
|||
opacity = 0.9 |
|||
title = "Alacritty" |
|||
|
|||
[window.class] |
|||
general = "Alacritty" |
|||
instance = "Alacritty" |
|||
|
|||
[window.padding] |
|||
x = 10 |
|||
y = 15 |
@ -0,0 +1,65 @@ |
|||
[colors.primary] |
|||
background = "#1e1e2e" |
|||
foreground = "#cdd6f4" |
|||
dim_foreground = "#7f849c" |
|||
bright_foreground = "#cdd6f4" |
|||
|
|||
[colors.cursor] |
|||
text = "#1e1e2e" |
|||
cursor = "#f5e0dc" |
|||
|
|||
[colors.vi_mode_cursor] |
|||
text = "#1e1e2e" |
|||
cursor = "#b4befe" |
|||
|
|||
[colors.search.matches] |
|||
foreground = "#1e1e2e" |
|||
background = "#a6adc8" |
|||
|
|||
[colors.search.focused_match] |
|||
foreground = "#1e1e2e" |
|||
background = "#a6e3a1" |
|||
|
|||
[colors.footer_bar] |
|||
foreground = "#1e1e2e" |
|||
background = "#a6adc8" |
|||
|
|||
[colors.hints.start] |
|||
foreground = "#1e1e2e" |
|||
background = "#f9e2af" |
|||
|
|||
[colors.hints.end] |
|||
foreground = "#1e1e2e" |
|||
background = "#a6adc8" |
|||
|
|||
[colors.selection] |
|||
text = "#1e1e2e" |
|||
background = "#f5e0dc" |
|||
|
|||
[colors.normal] |
|||
black = "#45475a" |
|||
red = "#f38ba8" |
|||
green = "#a6e3a1" |
|||
yellow = "#f9e2af" |
|||
blue = "#89b4fa" |
|||
magenta = "#f5c2e7" |
|||
cyan = "#94e2d5" |
|||
white = "#bac2de" |
|||
|
|||
[colors.bright] |
|||
black = "#585b70" |
|||
red = "#f38ba8" |
|||
green = "#a6e3a1" |
|||
yellow = "#f9e2af" |
|||
blue = "#89b4fa" |
|||
magenta = "#f5c2e7" |
|||
cyan = "#94e2d5" |
|||
white = "#a6adc8" |
|||
|
|||
[[colors.indexed_colors]] |
|||
index = 16 |
|||
color = "#fab387" |
|||
|
|||
[[colors.indexed_colors]] |
|||
index = 17 |
|||
color = "#f5e0dc" |
@ -1,39 +0,0 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
languages=( |
|||
"zsh" |
|||
"typescript" |
|||
"bash" |
|||
"perl" |
|||
"python" |
|||
"javascript" |
|||
"go" |
|||
"rust" |
|||
) |
|||
|
|||
utilities=( |
|||
"awk" |
|||
"sed" |
|||
"grep" |
|||
"tr" |
|||
"xargs" |
|||
"tee" |
|||
) |
|||
|
|||
SEARCHED="$( (for x in "${languages[@]}"; do |
|||
echo "$x" |
|||
done |
|||
for x in "${utilities[@]}"; do |
|||
echo "$x" |
|||
done) | fzf)" |
|||
|
|||
if test -z "$SEARCHED"; then |
|||
exit 0 |
|||
fi |
|||
|
|||
if (IFS=$'\n' echo "${languages[@]}") | grep "$SEARCHED" > /dev/null 2> /dev/null; then |
|||
read -rp "Search Query: " QUERY |
|||
curl "https://cht.sh/$SEARCHED/$QUERY" | less |
|||
else |
|||
curl "https://cht.sh/$SEARCHED" | less |
|||
fi |
@ -1,7 +0,0 @@ |
|||
#!/bin/sh |
|||
|
|||
if [ -f "$1" ]; then |
|||
libreoffice --headless --convert-to pdf "$1" && rm -rf "$1" |
|||
else |
|||
echo "$1 is not a file." && exit 1 |
|||
fi |
@ -1,3 +0,0 @@ |
|||
#!/bin/sh |
|||
|
|||
curl -LJ https://www.gnu.org/licenses/gpl-3.0.md -o LICENSE.md |
@ -1,70 +0,0 @@ |
|||
#!/usr/bin/env sh |
|||
|
|||
WORKSPACES=${WORKSPACES:-$HOME/Documents:$HOME/docs/prg} |
|||
|
|||
IFS=':' findargs=$WORKSPACES |
|||
|
|||
while test $# -gt 0; do |
|||
case "$1" in |
|||
-d|--depth) |
|||
shift |
|||
if test -z "$1"; then |
|||
echo "No appropriate option given after depth" |
|||
exit 1 |
|||
else |
|||
depth="$1" |
|||
fi |
|||
shift; |
|||
;; |
|||
-*) |
|||
echo "Invalid option $1" |
|||
exit 1 |
|||
;; |
|||
*) |
|||
sessiondir="$1" |
|||
shift; |
|||
;; |
|||
esac |
|||
done |
|||
|
|||
if test -z "$sessiondir"; then |
|||
if ! test -z "$depth" && test "$depth" -eq 0; then |
|||
sessiondir="$(find $findargs\ |
|||
\! -name '*.git*'\ |
|||
\! -name '*.vscode*'\ |
|||
\! -name '*.idea*'\ |
|||
\! -name '*node_modules*'\ |
|||
\! -name '*__pycache__*'\ |
|||
\! -name '*venv*'\ |
|||
-type d 2>/dev/null | fzf)" |
|||
else |
|||
sessiondir="$(find $findargs -maxdepth ${depth:-2}\ |
|||
\! -name '*.git*'\ |
|||
\! -name '*.vscode*'\ |
|||
\! -name '*.idea*'\ |
|||
\! -name '*node_modules*'\ |
|||
\! -name '*__pycache__*'\ |
|||
\! -name '*venv*'\ |
|||
-type d 2>/dev/null | fzf)" |
|||
fi |
|||
fi |
|||
|
|||
if test -z "$sessiondir" || ! test -d "$sessiondir"; then |
|||
echo "$sessiondir is not a directory. Aborting..." |
|||
exit 0 |
|||
fi |
|||
|
|||
name="$(realpath "$sessiondir" | tr '.' '_')" |
|||
|
|||
if test -z "$TMUX" && test -z "$(pgrep tmux)"; then |
|||
tmux new-session -c "$sessiondir" -s "$name" |
|||
else |
|||
if ! tmux has-session -t="$name" 2> /dev/null; then |
|||
tmux new-session -d -c "$sessiondir" -s "$name" |
|||
fi |
|||
if test -z "$TMUX"; then |
|||
tmux attach -t "$name" |
|||
else |
|||
tmux switch-client -t "$name" |
|||
fi |
|||
fi |
Write
Preview
Loading…
Cancel
Save
Reference in new issue