Compare commits

...

43 Commits

Author SHA1 Message Date
1101759176 Forever battle 2025-02-16 15:17:21 -05:00
04ce9dcae0 Minimal ghostty config 2025-02-16 15:17:12 -05:00
043d35f0d8 Explicitly use seqoia for git signing 2025-02-16 15:16:17 -05:00
88ea9997d5 Use ghostty in sway 2025-02-16 12:02:55 -05:00
44016ea366 Oh right perl 2024-11-30 19:45:01 -05:00
db877d5f41 Migrate alacritty config 2024-11-30 19:45:01 -05:00
d1053c6541 Good grief vim 2024-10-05 17:09:13 -04:00
ef43de9101 Ignore sqlite files mostly for ipython 2024-10-05 17:07:25 -04:00
068dd457d8 Add stuff I like to ipython profile 2024-10-05 17:06:59 -04:00
b6c3430e20 Add default ipython profile 2024-10-05 17:04:41 -04:00
39c2f883e7 Add script to combine cb uri with URL munging to access via tailscale 2024-09-21 12:35:50 -04:00
950d1a928e What hath gawd wrought 2024-09-06 14:03:42 -04:00
2e449c15bd Making a mess of CoC settings for ruff and clang 2024-09-06 14:03:18 -04:00
a337d579ec fix terminal color at the intersection of tmux and alacritty 2024-09-06 14:03:17 -04:00
f230e41216 Tweak virtualenv/python bits in p10k 2024-09-06 14:03:17 -04:00
946c21e03f Fun with work-ish zsh stuff 2024-09-06 14:02:56 -04:00
f27cf30bd9 Add asdf plugin 2024-07-15 23:11:11 -04:00
8cb46e9a92 Add oh-my-zsh podman plugin 2024-05-23 12:20:33 -04:00
b1b24ba1ed Somewhat magical symfony completion 2024-05-20 11:31:15 -04:00
d4e51b6cd2 Do C style goop 2024-05-20 11:30:26 -04:00
dc30944a89 Updating many thermal and status things 2023-12-31 16:44:44 -05:00
a500a63a53 Minor modernizing of i3wrapper 2023-12-30 13:02:43 -05:00
f54f8bd5a8 Migrate alacritty config 2023-12-30 09:52:39 -05:00
72eee70488 Tofu time 2023-12-09 22:56:00 -05:00
306d54c05d Alacritty config cleanups and using themes 2023-11-17 10:32:19 -05:00
9c03139641 Switch back to dracula vim theme 2023-11-17 10:31:49 -05:00
c9703e735b Please gpg use this tty 2023-11-13 18:30:49 -05:00
6b498fcf35 Trimming cdpath, adding azure plugin, bumping gimme version 2023-11-13 10:53:12 -05:00
dc73294990 Recognize more virtualenv names in p10k 2023-11-13 10:51:04 -05:00
bfe70973e0 Always sign annotated tags 2023-11-13 10:51:04 -05:00
fca5263cf2 Moving color scheme bits in alacritty config 2023-11-13 10:51:04 -05:00
81990d68c5 Too many vimrc changes 2023-11-13 10:51:04 -05:00
0bd59a9115 Türn ôn fün ĉháràctërs 2023-11-12 09:20:44 -05:00
fe187070f3 Boop the cups 2023-11-04 13:03:17 -04:00
a7be93368a Bump default nvm node 2023-11-01 20:50:48 -04:00
9e967c0d1b Pointing at correct signing subkey 2023-11-01 20:46:46 -04:00
830a9f4ef3 Use symbolic pulseaudio devices in bindsym mappings 2023-10-01 09:28:09 -04:00
0a7779ea5e Slight sway bar tweak 2023-09-24 10:49:46 -04:00
7307c46bc3 keyboard goop + better background (for me) 2023-09-24 09:16:27 -04:00
77144a920e Use specific version in gimme 2023-09-21 00:06:01 -04:00
f121ee555f Use wofi in sway land 2023-09-21 00:05:28 -04:00
0dd992eb2f Use systemd ssh-agent user unit socket if available 2023-09-13 00:02:04 -04:00
557e9c690d Add gammastep config 2023-09-13 00:01:49 -04:00
23 changed files with 2386 additions and 589 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
/janus/*
byobu/.ssh-agent
*.sqlite

1
.python-version Normal file
View File

@@ -0,0 +1 @@
3.12.0

View File

@@ -3,10 +3,12 @@ SUDO ?= sudo
TOP_SOURCES := $(shell git ls-files | grep -vE 'README|Makefile|^config|^\.git|^\.travis' | grep -v /)
CONFIG_SOURCES := $(shell git ls-files config)
LOCAL_BIN_SOURCES := $(shell git ls-files local/bin)
LOCAL_BG_SOURCES := $(shell git ls-files local/share/backgrounds)
TARGETS := \
$(patsubst %,$(HOME)/.%,$(TOP_SOURCES)) \
$(patsubst %,$(HOME)/.%,$(CONFIG_SOURCES)) \
$(patsubst %,$(HOME)/.%,$(LOCAL_BIN_SOURCES)) \
$(patsubst %,$(HOME)/.%,$(LOCAL_BG_SOURCES)) \
$(HOME)/.config/i3/config \
/etc/udev/rules.d/90-trackman-marble.rules \
/usr/local/bin/handle-trackman-marble
@@ -15,7 +17,7 @@ $(HOME)/.%: %
$(RM) '$@' && mkdir -p $(dir $@) && ln -svf '$(PWD)/$^' '$@'
.PHONY: all
all: $(HOME)/.config $(HOME)/.local/bin $(TARGETS)
all: $(HOME)/.config $(HOME)/.local/bin $(HOME)/.local/share/backgrounds $(TARGETS)
$(HOME)/.config:
mkdir -p $@
@@ -23,6 +25,9 @@ $(HOME)/.config:
$(HOME)/.local/bin:
mkdir -p $@
$(HOME)/.local/share/backgrounds:
mkdir -p $@
/etc/udev/rules.d/90-trackman-marble.rules: udev/rules.d/90-trackman-marble.rules
$(SUDO) install -m 0644 -v udev/rules.d/90-trackman-marble.rules $@

View File

@@ -0,0 +1,599 @@
[bell]
animation = "EaseOutExpo"
color = "#ffffff"
duration = 0
[cursor]
unfocused_hollow = true
[debug]
persistent_logging = false
render_timer = false
[font]
size = 6.5
[font.bold]
family = "Comic Code"
style = "Bold"
[font.glyph_offset]
x = 0
y = 0
[font.italic]
family = "Comic Code"
style = "Italic"
[font.normal]
family = "Comic Code"
[font.offset]
x = 0
y = 0
[[hints.enabled]]
command = "xdg-open"
post_processing = true
regex = "(mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)[^\u0000-\u001F\u007F-Ÿ<>\"\\s{-}\\^⟨⟩`]+"
[hints.enabled.binding]
key = "U"
mods = "Control|Shift"
[hints.enabled.mouse]
enabled = true
mods = "None"
[[keyboard.bindings]]
action = "Paste"
key = "Paste"
[[keyboard.bindings]]
action = "Copy"
key = "Copy"
[[keyboard.bindings]]
action = "ClearLogNotice"
key = "L"
mods = "Control"
[[keyboard.bindings]]
chars = "\f"
key = "L"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[1;3H"
key = "Home"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001BOH"
key = "Home"
mode = "AppCursor"
[[keyboard.bindings]]
chars = "\u001B[H"
key = "Home"
mode = "~AppCursor"
[[keyboard.bindings]]
chars = "\u001B[1;3F"
key = "End"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001BOF"
key = "End"
mode = "AppCursor"
[[keyboard.bindings]]
chars = "\u001B[F"
key = "End"
mode = "~AppCursor"
[[keyboard.bindings]]
action = "ScrollPageUp"
key = "PageUp"
mode = "~Alt"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[5;2~"
key = "PageUp"
mode = "Alt"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[5;5~"
key = "PageUp"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[5;3~"
key = "PageUp"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[5~"
key = "PageUp"
[[keyboard.bindings]]
action = "ScrollPageDown"
key = "PageDown"
mode = "~Alt"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[6;2~"
key = "PageDown"
mode = "Alt"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[6;5~"
key = "PageDown"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[6;3~"
key = "PageDown"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[6~"
key = "PageDown"
[[keyboard.bindings]]
chars = "\u001B[Z"
key = "Tab"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u007F"
key = "Back"
[[keyboard.bindings]]
chars = "\u001B\u007F"
key = "Back"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[2~"
key = "Insert"
[[keyboard.bindings]]
chars = "\u001B[3~"
key = "Delete"
[[keyboard.bindings]]
chars = "\u001B[1;2D"
key = "Left"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[1;5D"
key = "Left"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[1;3D"
key = "Left"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[D"
key = "Left"
mode = "~AppCursor"
[[keyboard.bindings]]
chars = "\u001BOD"
key = "Left"
mode = "AppCursor"
[[keyboard.bindings]]
chars = "\u001B[1;2C"
key = "Right"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[1;5C"
key = "Right"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[1;3C"
key = "Right"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[C"
key = "Right"
mode = "~AppCursor"
[[keyboard.bindings]]
chars = "\u001BOC"
key = "Right"
mode = "AppCursor"
[[keyboard.bindings]]
chars = "\u001B[1;2A"
key = "Up"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[1;5A"
key = "Up"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[1;3A"
key = "Up"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[A"
key = "Up"
mode = "~AppCursor"
[[keyboard.bindings]]
chars = "\u001BOA"
key = "Up"
mode = "AppCursor"
[[keyboard.bindings]]
chars = "\u001B[1;2B"
key = "Down"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[1;5B"
key = "Down"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[1;3B"
key = "Down"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[B"
key = "Down"
mode = "~AppCursor"
[[keyboard.bindings]]
chars = "\u001BOB"
key = "Down"
mode = "AppCursor"
[[keyboard.bindings]]
chars = "\u001BOP"
key = "F1"
[[keyboard.bindings]]
chars = "\u001BOQ"
key = "F2"
[[keyboard.bindings]]
chars = "\u001BOR"
key = "F3"
[[keyboard.bindings]]
chars = "\u001BOS"
key = "F4"
[[keyboard.bindings]]
chars = "\u001B[15~"
key = "F5"
[[keyboard.bindings]]
chars = "\u001B[17~"
key = "F6"
[[keyboard.bindings]]
chars = "\u001B[18~"
key = "F7"
[[keyboard.bindings]]
chars = "\u001B[19~"
key = "F8"
[[keyboard.bindings]]
chars = "\u001B[20~"
key = "F9"
[[keyboard.bindings]]
chars = "\u001B[21~"
key = "F10"
[[keyboard.bindings]]
chars = "\u001B[23~"
key = "F11"
[[keyboard.bindings]]
chars = "\u001B[24~"
key = "F12"
[[keyboard.bindings]]
chars = "\u001B[1;2P"
key = "F1"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[1;2Q"
key = "F2"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[1;2R"
key = "F3"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[1;2S"
key = "F4"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[15;2~"
key = "F5"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[17;2~"
key = "F6"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[18;2~"
key = "F7"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[19;2~"
key = "F8"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[20;2~"
key = "F9"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[21;2~"
key = "F10"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[23;2~"
key = "F11"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[24;2~"
key = "F12"
mods = "Shift"
[[keyboard.bindings]]
chars = "\u001B[1;5P"
key = "F1"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[1;5Q"
key = "F2"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[1;5R"
key = "F3"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[1;5S"
key = "F4"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[15;5~"
key = "F5"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[17;5~"
key = "F6"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[18;5~"
key = "F7"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[19;5~"
key = "F8"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[20;5~"
key = "F9"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[21;5~"
key = "F10"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[23;5~"
key = "F11"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[24;5~"
key = "F12"
mods = "Control"
[[keyboard.bindings]]
chars = "\u001B[1;6P"
key = "F1"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[1;6Q"
key = "F2"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[1;6R"
key = "F3"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[1;6S"
key = "F4"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[15;6~"
key = "F5"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[17;6~"
key = "F6"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[18;6~"
key = "F7"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[19;6~"
key = "F8"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[20;6~"
key = "F9"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[21;6~"
key = "F10"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[23;6~"
key = "F11"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[24;6~"
key = "F12"
mods = "Alt"
[[keyboard.bindings]]
chars = "\u001B[1;3P"
key = "F1"
mods = "Super"
[[keyboard.bindings]]
chars = "\u001B[1;3Q"
key = "F2"
mods = "Super"
[[keyboard.bindings]]
chars = "\u001B[1;3R"
key = "F3"
mods = "Super"
[[keyboard.bindings]]
chars = "\u001B[1;3S"
key = "F4"
mods = "Super"
[[keyboard.bindings]]
chars = "\u001B[15;3~"
key = "F5"
mods = "Super"
[[keyboard.bindings]]
chars = "\u001B[17;3~"
key = "F6"
mods = "Super"
[[keyboard.bindings]]
chars = "\u001B[18;3~"
key = "F7"
mods = "Super"
[[keyboard.bindings]]
chars = "\u001B[19;3~"
key = "F8"
mods = "Super"
[[keyboard.bindings]]
chars = "\u001B[20;3~"
key = "F9"
mods = "Super"
[[keyboard.bindings]]
chars = "\u001B[21;3~"
key = "F10"
mods = "Super"
[[keyboard.bindings]]
chars = "\u001B[23;3~"
key = "F11"
mods = "Super"
[[keyboard.bindings]]
chars = "\u001B[24;3~"
key = "F12"
mods = "Super"
[[keyboard.bindings]]
chars = """
"""
key = "NumpadEnter"
[mouse]
hide_when_typing = false
[[mouse.bindings]]
action = "PasteSelection"
mouse = "Middle"
[scrolling]
history = 10000
multiplier = 3
[selection]
save_to_clipboard = false
semantic_escape_chars = ",│`|:\"' ()[]{}<>"
[terminal.shell]
args = ["-l"]
program = "/bin/zsh"
[window]
decorations = "full"
dynamic_padding = false
dynamic_title = true
opacity = 1.0
startup_mode = "Windowed"
[window.padding]
x = 2
y = 2
[general]
live_config_reload = true
import = ["~/.config/alacritty/themes/themes/tender.toml"]
[terminal]

View File

@@ -1,399 +0,0 @@
---
shell:
program: /bin/zsh
args:
- -l
window:
dynamic_title: true
dimensions:
columns: 0
lines: 0
padding:
x: 2
y: 2
dynamic_padding: false
decorations: full
opacity: 1.0
startup_mode: Windowed
scrolling:
history: 10000
multiplier: 3
font:
normal:
family: Comic Code
bold:
family: Comic Code
style: Bold
italic:
family: Comic Code
style: Italic
size: 6.5
offset:
x: 0
y: 0
glyph_offset:
x: 0
y: 0
#use_thin_strokes: true
debug:
render_timer: false
persistent_logging: false
draw_bold_text_with_bright_colors: true
colors:
primary:
background: '0x282a36'
foreground: '0xf8f8f2'
normal:
black: '0x000000'
red: '0xff5555'
green: '0x50fa7b'
yellow: '0xf1fa8c'
blue: '0xcaa9fa'
magenta: '0xff79c6'
cyan: '0x8be9fd'
white: '0xbfbfbf'
bright:
black: '0x575b70'
red: '0xff6e67'
green: '0x5af78e'
yellow: '0xf4f99d'
blue: '0xcaa9fa'
magenta: '0xff92d0'
cyan: '0x9aedfe'
white: '0xe6e6e6'
bell:
animation: EaseOutExpo
duration: 0
color: '0xffffff'
mouse_bindings:
- mouse: Middle
action: PasteSelection
mouse:
double_click:
threshold: 300
triple_click:
threshold: 300
hide_when_typing: false
hints:
enabled:
- regex: "(mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
[^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+"
command: xdg-open
post_processing: true
mouse:
enabled: true
mods: None
binding:
key: U
mods: Control|Shift
selection:
semantic_escape_chars: ',│`|:"'' ()[]{}<>'
save_to_clipboard: false
cursor:
style: Block
unfocused_hollow: true
live_config_reload: true
enable_experimental_conpty_backend: false
key_bindings:
- key: Paste
action: Paste
- key: Copy
action: Copy
- key: L
mods: Control
action: ClearLogNotice
- key: L
mods: Control
chars: "\f"
- key: Home
mods: Alt
chars: "\e[1;3H"
- key: Home
chars: "\eOH"
mode: AppCursor
- key: Home
chars: "\e[H"
mode: "~AppCursor"
- key: End
mods: Alt
chars: "\e[1;3F"
- key: End
chars: "\eOF"
mode: AppCursor
- key: End
chars: "\e[F"
mode: "~AppCursor"
- key: PageUp
mods: Shift
action: ScrollPageUp
mode: "~Alt"
- key: PageUp
mods: Shift
chars: "\e[5;2~"
mode: Alt
- key: PageUp
mods: Control
chars: "\e[5;5~"
- key: PageUp
mods: Alt
chars: "\e[5;3~"
- key: PageUp
chars: "\e[5~"
- key: PageDown
mods: Shift
action: ScrollPageDown
mode: "~Alt"
- key: PageDown
mods: Shift
chars: "\e[6;2~"
mode: Alt
- key: PageDown
mods: Control
chars: "\e[6;5~"
- key: PageDown
mods: Alt
chars: "\e[6;3~"
- key: PageDown
chars: "\e[6~"
- key: Tab
mods: Shift
chars: "\e[Z"
- key: Back
chars: "\x7F"
- key: Back
mods: Alt
chars: "\e\x7F"
- key: Insert
chars: "\e[2~"
- key: Delete
chars: "\e[3~"
- key: Left
mods: Shift
chars: "\e[1;2D"
- key: Left
mods: Control
chars: "\e[1;5D"
- key: Left
mods: Alt
chars: "\e[1;3D"
- key: Left
chars: "\e[D"
mode: "~AppCursor"
- key: Left
chars: "\eOD"
mode: AppCursor
- key: Right
mods: Shift
chars: "\e[1;2C"
- key: Right
mods: Control
chars: "\e[1;5C"
- key: Right
mods: Alt
chars: "\e[1;3C"
- key: Right
chars: "\e[C"
mode: "~AppCursor"
- key: Right
chars: "\eOC"
mode: AppCursor
- key: Up
mods: Shift
chars: "\e[1;2A"
- key: Up
mods: Control
chars: "\e[1;5A"
- key: Up
mods: Alt
chars: "\e[1;3A"
- key: Up
chars: "\e[A"
mode: "~AppCursor"
- key: Up
chars: "\eOA"
mode: AppCursor
- key: Down
mods: Shift
chars: "\e[1;2B"
- key: Down
mods: Control
chars: "\e[1;5B"
- key: Down
mods: Alt
chars: "\e[1;3B"
- key: Down
chars: "\e[B"
mode: "~AppCursor"
- key: Down
chars: "\eOB"
mode: AppCursor
- key: F1
chars: "\eOP"
- key: F2
chars: "\eOQ"
- key: F3
chars: "\eOR"
- key: F4
chars: "\eOS"
- key: F5
chars: "\e[15~"
- key: F6
chars: "\e[17~"
- key: F7
chars: "\e[18~"
- key: F8
chars: "\e[19~"
- key: F9
chars: "\e[20~"
- key: F10
chars: "\e[21~"
- key: F11
chars: "\e[23~"
- key: F12
chars: "\e[24~"
- key: F1
mods: Shift
chars: "\e[1;2P"
- key: F2
mods: Shift
chars: "\e[1;2Q"
- key: F3
mods: Shift
chars: "\e[1;2R"
- key: F4
mods: Shift
chars: "\e[1;2S"
- key: F5
mods: Shift
chars: "\e[15;2~"
- key: F6
mods: Shift
chars: "\e[17;2~"
- key: F7
mods: Shift
chars: "\e[18;2~"
- key: F8
mods: Shift
chars: "\e[19;2~"
- key: F9
mods: Shift
chars: "\e[20;2~"
- key: F10
mods: Shift
chars: "\e[21;2~"
- key: F11
mods: Shift
chars: "\e[23;2~"
- key: F12
mods: Shift
chars: "\e[24;2~"
- key: F1
mods: Control
chars: "\e[1;5P"
- key: F2
mods: Control
chars: "\e[1;5Q"
- key: F3
mods: Control
chars: "\e[1;5R"
- key: F4
mods: Control
chars: "\e[1;5S"
- key: F5
mods: Control
chars: "\e[15;5~"
- key: F6
mods: Control
chars: "\e[17;5~"
- key: F7
mods: Control
chars: "\e[18;5~"
- key: F8
mods: Control
chars: "\e[19;5~"
- key: F9
mods: Control
chars: "\e[20;5~"
- key: F10
mods: Control
chars: "\e[21;5~"
- key: F11
mods: Control
chars: "\e[23;5~"
- key: F12
mods: Control
chars: "\e[24;5~"
- key: F1
mods: Alt
chars: "\e[1;6P"
- key: F2
mods: Alt
chars: "\e[1;6Q"
- key: F3
mods: Alt
chars: "\e[1;6R"
- key: F4
mods: Alt
chars: "\e[1;6S"
- key: F5
mods: Alt
chars: "\e[15;6~"
- key: F6
mods: Alt
chars: "\e[17;6~"
- key: F7
mods: Alt
chars: "\e[18;6~"
- key: F8
mods: Alt
chars: "\e[19;6~"
- key: F9
mods: Alt
chars: "\e[20;6~"
- key: F10
mods: Alt
chars: "\e[21;6~"
- key: F11
mods: Alt
chars: "\e[23;6~"
- key: F12
mods: Alt
chars: "\e[24;6~"
- key: F1
mods: Super
chars: "\e[1;3P"
- key: F2
mods: Super
chars: "\e[1;3Q"
- key: F3
mods: Super
chars: "\e[1;3R"
- key: F4
mods: Super
chars: "\e[1;3S"
- key: F5
mods: Super
chars: "\e[15;3~"
- key: F6
mods: Super
chars: "\e[17;3~"
- key: F7
mods: Super
chars: "\e[18;3~"
- key: F8
mods: Super
chars: "\e[19;3~"
- key: F9
mods: Super
chars: "\e[20;3~"
- key: F10
mods: Super
chars: "\e[21;3~"
- key: F11
mods: Super
chars: "\e[23;3~"
- key: F12
mods: Super
chars: "\e[24;3~"
- key: NumpadEnter
chars: "\n"

View File

@@ -0,0 +1,11 @@
[general]
temp-day=5700
temp-night=3500
fade=1
gamma=0.8
location-provider=manual
adjustment-method=wayland
[manual]
lat=40.42
lon=-79.88

48
config/ghostty/config Normal file
View File

@@ -0,0 +1,48 @@
# This is the configuration file for Ghostty.
#
# This template file has been automatically created at the following
# path since Ghostty couldn't find any existing config files on your system:
#
# /home/me/.config/ghostty/config
#
# The template does not set any default options, since Ghostty ships
# with sensible defaults for all options. Users should only need to set
# options that they want to change from the default.
#
# Run `ghostty +show-config --default --docs` to view a list of
# all available config options and their default values.
#
# Additionally, each config option is also explained in detail
# on Ghostty's website, at https://ghostty.org/docs/config.
# Config syntax crash course
# ==========================
# # The config file consists of simple key-value pairs,
# # separated by equals signs.
# font-family = Iosevka
# window-padding-x = 2
#
# # Spacing around the equals sign does not matter.
# # All of these are identical:
# key=value
# key= value
# key =value
# key = value
#
# # Any line beginning with a # is a comment. It's not possible to put
# # a comment after a config option, since it would be interpreted as a
# # part of the value. For example, this will have a value of "#123abc":
# background = #123abc
#
# # Empty values are used to reset config keys to default.
# key =
#
# # Some config options have unique syntaxes for their value,
# # which is explained in the docs for that config option.
# # Just for example:
# resize-overlay-duration = 4s 200ms
font-family = Comic Code
font-family-bold = Comic Code Bold
font-family-italic = Comic Code Italic
font-family-bold-italic = Comic Code Bold Italic

View File

@@ -6,9 +6,9 @@ set $down j
set $up k
set $right l
set $menu dmenu_path | dmenu | xargs swaymsg exec --
set $menu wofi --show=run
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
output * bg ~/.local/share/backgrounds/hubble-extreme-deep-field-1214a-1920x1675.jpg fill
# Start a terminal
bindsym $mod+Return exec $term
@@ -135,7 +135,7 @@ font pango:Comic Code Bold 12
xwayland enable
set $term alacritty
set $term ghostty
exec swayidle -w \
timeout 300 'swaylock -f -c 000000' \
@@ -143,8 +143,9 @@ exec swayidle -w \
before-sleep 'swaylock -f -c 000000'
input "type:keyboard" {
xkb_layout us
xkb_variant dvorak
xkb_layout us(dvorak),us
xkb_options compose:ralt
xkb_numlock enabled
}
input "type:touchpad" {
@@ -156,10 +157,10 @@ input "type:touchpad" {
bindsym --locked Xf86MonBrightnessDown exec brightnessctl set 5%-
bindsym --locked Xf86MonBrightnessUp exec brightnessctl set 5%+
bindsym --locked XF86AudioMicMute exec pactl set-source-mute 1 toggle
bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume 0 -1000
bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume 0 +1000
bindsym --locked XF86AudioMute exec pactl set-sink-mute 0 toggle
bindsym --locked XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -1000
bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +1000
bindsym --locked XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym Print exec grim -g "$(slurp)" - | swappy -f -
bindsym $mod+Print exec grim - | swappy -f -
@@ -171,8 +172,8 @@ bar {
colors {
statusline #ffffff
background #323232
inactive_workspace #32323200 #32323200 #5c5c5c
background #32323288
inactive_workspace #32323288 #32323288 #acacaccc
}
}

1
cups/lpoptions Normal file
View File

@@ -0,0 +1 @@
Default home

View File

@@ -3,7 +3,7 @@
[user]
name = Dan Buch
email = dan@meatballhat.com
signingkey = A62A7ED9712E9DE1F3A4BF789685130D8B763EA7
signingkey = A12F782281063434!
[github]
user = meatballhat
@@ -66,9 +66,10 @@
[tag]
gpgsign = true
forceSignAnnotated = true
[gpg]
program = gpg2
program = gpg-sq
[init]
templatedir = ~/.config/git_template

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,11 @@
This is the IPython startup directory
.py and .ipy files in this directory will be run *prior* to any code or files specified
via the exec_lines or exec_files configurables whenever you load this profile.
Files will be run in lexicographical order, so you can control the execution order of files
with a prefix, e.g.::
00-first.py
50-middle.py
99-last.ipy

27
local/bin/cb-uri-tailscale Executable file
View File

@@ -0,0 +1,27 @@
#!/usr/bin/env python3
import subprocess
import sys
import urllib.parse
def main(sysargs=sys.argv[:]):
cb_uri = subprocess.check_output(["cb", "uri", *sysargs[1:]], text=True)
parsed_cb_uri = urllib.parse.urlsplit(cb_uri)
tailscale_cb_uri = parsed_cb_uri._replace(
netloc=str(parsed_cb_uri.username)
+ ":"
+ str(parsed_cb_uri.password)
+ "@"
+ str(parsed_cb_uri.hostname).split(".")[1]
+ ":"
+ str(parsed_cb_uri.port)
)
print(tailscale_cb_uri.geturl())
return 0
if __name__ == "__main__":
sys.exit(main())

View File

@@ -1,97 +1,105 @@
#!/usr/bin/env python
import json
import os
import shutil
import subprocess
import sys
import typing
_BITS = []
__all__ = ["_mem", "_backlight", "_hwtemp"]
_BITS: list[tuple[int, str, typing.Callable]] = []
def _bit(idx):
def wrapper(func):
_BITS.append([idx, func.__name__.replace('_', ''), func])
_BITS.append((idx, func.__name__.replace("_", ""), func))
return func
return wrapper
@_bit(6)
def _mem():
with open('/proc/meminfo') as meminfo_fp:
with open("/proc/meminfo") as meminfo_fp:
attrs = {}
for line in meminfo_fp.readlines():
parts = line.split(':', 2)
parts = line.split(":", 2)
attrs[parts[0].strip()] = parts[1].strip()
avail = int(attrs['MemAvailable'].split()[0])
total = int(attrs['MemTotal'].split()[0])
avail = int(attrs["MemAvailable"].split()[0])
total = int(attrs["MemTotal"].split()[0])
used = int(((total - avail) / total) * 100)
color = None
if used > 75:
color = '#ff0000'
color = "#ff0000"
if used < 25:
color = '#00ff00'
return 'M:{}%'.format(used), color
color = "#00ff00"
return "M:{}%".format(used), color
@_bit(0)
def _backlight(dev_dir='/sys/class/backlight/intel_backlight'):
with open('{}/brightness'.format(dev_dir)) as br_fp:
with open('{}/max_brightness'.format(dev_dir)) as mb_fp:
def _backlight(dev_dir="/sys/class/backlight/intel_backlight"):
with open("{}/brightness".format(dev_dir)) as br_fp:
with open("{}/max_brightness".format(dev_dir)) as mb_fp:
value = int(br_fp.read().strip())
max_value = int(mb_fp.read().strip())
pct = int(float(float(value) / float(max_value)) * 100)
color = None
if pct >= 75:
color = '#ffaa00'
color = "#ffaa00"
if pct <= 25:
color = '#5599ff'
return '☼:{}%'.format(pct), color
color = "#5599ff"
return "☼:{}%".format(pct), color
THINKFAN_CONF = '/etc/thinkfan.conf'
ACPI_IBM_FAN = '/proc/acpi/ibm/fan'
ACPI_IBM_FAN = "/proc/acpi/ibm/fan"
@_bit(7)
def _hwtemp(conf=THINKFAN_CONF, fan=ACPI_IBM_FAN):
if not os.path.exists(conf):
def _hwtemp(fan=ACPI_IBM_FAN):
acpi_exe = shutil.which("acpi")
if acpi_exe is None:
return None, None
temps = []
raw_temp = subprocess.run(
[acpi_exe, "-t"],
text=True,
capture_output=True,
check=False,
)
if raw_temp.returncode != 0 or raw_temp.stdout is None:
return None, None
with open('/etc/thinkfan.conf') as tfc_fp:
for line in tfc_fp.readlines():
if not line.startswith('hwmon '):
continue
try:
with open(line.split(' ')[1].strip()) as temp_fp:
temps.append(float(temp_fp.read()))
except (OSError, IOError) as exc:
sys.stderr.write(str(exc) + '\n')
temps_by_zone = {}
for line in raw_temp.stdout.splitlines():
zone_id, value = line.split(":")
human_temp = value.split(",")[-1]
temps_by_zone[zone_id.lower().lstrip("thermal ")] = float(
human_temp.lower().strip().rstrip("degrees c")
)
avg_temp = float(sum(temps)) / len(temps) / 1000.0
color = None
temps = list(temps_by_zone.values())
avg_temp = float(sum(temps)) / len(temps)
color = "#5599ff"
if avg_temp > 75:
color = "#ff0000"
if avg_temp >= 50:
color = "#ffaa00"
fan_level = 'unset'
fan_level = "unset"
try:
with open(fan) as fan_fp:
for line in fan_fp.readlines():
if not line.startswith('level:\t\t'):
if not line.startswith("level:\t\t"):
continue
fan_level = int(line.replace('level:\t\t', ''))
fan_level = int(line.replace("level:\t\t", ""))
except (OSError, IOError) as exc:
sys.stderr.write(str(exc) + '\n')
sys.stderr.write(str(exc) + "\n")
if avg_temp > 75:
color = '#ff0000'
if avg_temp >= 50:
color = '#ffaa00'
if avg_temp <= 25:
color = '#5599ff'
return 'T:{:.1f}°C L:{}'.format(avg_temp, fan_level), color
return "T:{:.1f}°C L:{}".format(avg_temp, fan_level), color
def _print_line(message):
sys.stdout.write(message + '\n')
sys.stdout.write(message + "\n")
sys.stdout.flush()
@@ -110,9 +118,9 @@ def main(bits=_BITS):
_print_line(_read_line())
while True:
line, prefix = _read_line(), ''
if line.startswith(','):
line, prefix = line[1:], ','
line, prefix = _read_line(), ""
if line.startswith(","):
line, prefix = line[1:], ","
loaded = json.loads(line)
for idx, name, func in bits:
@@ -127,11 +135,11 @@ def main(bits=_BITS):
loaded.insert(idx, record)
except Exception as exc:
sys.stderr.write(str(exc) + '\n')
sys.stderr.write(str(exc) + "\n")
sys.stderr.flush()
_print_line(prefix+json.dumps(loaded))
_print_line(prefix + json.dumps(loaded))
if __name__ == '__main__':
if __name__ == "__main__":
main()

View File

@@ -1,52 +0,0 @@
#!/usr/bin/env bash
set -o errexit
set -o pipefail
main() {
if [[ -f "${1}" ]]; then
exec 1>"${1}"
shift
fi
if [[ -f /etc/default/thinkfan-confgen ]]; then
source /etc/default/thinkfan-confgen
fi
: "${THINKFAN_LOWER_BOUND:=30}"
: "${THINKFAN_STEP:=4}"
printf '# thinkfan-confgen created %s\n' "$(date -u)"
printf '# THINKFAN_LOWER_BOUND=%s\n' "${THINKFAN_LOWER_BOUND}"
printf '# THINKFAN_STEP=%s\n\n' "${THINKFAN_STEP}"
find /sys -type f -name 'temp*_input' | while read -r line; do
if [[ "${line}" =~ thinkpad_hwmon ]]; then
continue
fi
printf 'hwmon %s\n' "${line}"
done
printf '\ntp_fan /proc/acpi/ibm/fan\n\n'
local halfstep="$((THINKFAN_STEP / 2))"
local cur="${THINKFAN_LOWER_BOUND}"
for level in 0 1 2 3 4 5 6 7; do
if [[ "${level}" == 0 ]]; then
printf '(0, 0, %s)\n' "${cur}"
continue
fi
if [[ "${level}" == 7 ]]; then
printf '(7, %s, 32767)\n' "$((cur - halfstep))"
continue
fi
printf '(%s, %s, %s)\n' \
"${level}" "$((cur - halfstep))" "$((cur + THINKFAN_STEP))"
cur="$((cur + THINKFAN_STEP))"
done
}
main "${@}"

126
local/bin/thinkfan_confgen.py Executable file
View File

@@ -0,0 +1,126 @@
#!/usr/bin/env python
import argparse
import datetime
import json
import os
import pathlib
import sys
import typing
class ThinkfanConfig(typing.TypedDict):
sensors: list[dict[str, str]]
fans: list[dict[str, str]]
levels: list[dict[str, int | list[int]]]
def main(sysargs=sys.argv[:]) -> int:
parser = argparse.ArgumentParser()
parser.add_argument(
"-l",
"--lower-bound",
default=int(os.environ.get("THINKFAN_LOWER_BOUND", "30")),
type=int,
help="lower bound of sensor value for min fan speed (THINKFAN_LOWER_BOUND)",
)
parser.add_argument(
"-u",
"--upper-bound",
default=int(os.environ.get("THINKFAN_UPPER_BOUND", "32767")),
type=int,
help="upper bound of sensor value for max fan speed (THINKFAN_UPPER_BOUND)",
)
parser.add_argument(
"-s",
"--step",
default=int(os.environ.get("THINKFAN_STEP", "4")),
type=int,
help="step size between fan speed levels (THINKFAN_STEP)",
)
args = parser.parse_args(sysargs[1:])
cfg: ThinkfanConfig = {
"sensors": [],
"fans": [],
"levels": [],
}
acpi_fan = pathlib.Path("/proc/acpi/ibm/fan")
if acpi_fan.exists():
cfg["fans"].append({"tpacpi": str(acpi_fan)})
acpi_thermal = pathlib.Path("/proc/acpi/ibm/thermal")
n_sensors: int = 0
if acpi_thermal.exists():
cfg["sensors"].append({"tpacpi": str(acpi_thermal)})
n_sensors = len(
[
l
for l in acpi_thermal.read_text().splitlines()
if l.startswith("temperatures:")
][0]
.split(":")[1]
.strip()
.split()
)
else:
for dirpath, dirnames, filenames in pathlib.Path("/sys/devices").walk(
on_error=print, follow_symlinks=False
):
if "thinkpad_hwmon" in dirnames:
dirnames.remove("thinkpad_hwmon")
for filename in filenames:
if filename.startswith("temp") and filename.endswith("_input"):
cfg["sensors"].append({"hwmon": str(dirpath.joinpath(filename))})
n_sensors += 1
cur: int = args.lower_bound
step: int = args.step
halfstep = step // 2
for level in range(8):
if level == 0:
cfg["levels"].append(
{
"speed": 0,
"lower_limit": [0] * n_sensors,
"upper_limit": [cur] * n_sensors,
}
)
continue
if level == 7:
cfg["levels"].append(
{
"speed": 7,
"upper_limit": [args.upper_bound] * n_sensors,
"lower_limit": [cur - halfstep] * n_sensors,
}
)
continue
cfg["levels"].append(
{
"speed": level,
"lower_limit": [cur - halfstep] * n_sensors,
"upper_limit": [cur + step] * n_sensors,
},
)
cur += step
print(f"# thinkfan_confgen.py created {datetime.datetime.now(datetime.UTC)}")
print(json.dumps(cfg))
return 0
if __name__ == "__main__":
sys.exit(main())

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

View File

@@ -946,15 +946,15 @@
# Python virtual environment color.
typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=0
typeset -g POWERLEVEL9K_VIRTUALENV_BACKGROUND=4
# Don't show Python version next to the virtual environment name.
typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_PYTHON_VERSION=false
typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_PYTHON_VERSION=true
# If set to "false", won't show virtualenv if pyenv is already shown.
# If set to "if-different", won't show virtualenv if it's the same as pyenv.
typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_WITH_PYENV=false
typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_WITH_PYENV=true
# Separate environment name from Python version only with a space.
typeset -g POWERLEVEL9K_VIRTUALENV_{LEFT,RIGHT}_DELIMITER=
# Custom icon.
# typeset -g POWERLEVEL9K_VIRTUALENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
typeset -g POWERLEVEL9K_VIRTUALENV_GENERIC_NAMES=(virtualenv venv .venv env)
#####################[ anaconda: conda environment (https://conda.io/) ]######################
# Anaconda environment color.

View File

@@ -1,7 +1,8 @@
bind-key C-b last-window
set-option -g default-command /bin/zsh
set-option -g default-shell /bin/zsh
set-option -g default-terminal 'screen-256color'
set-option -s default-terminal 'tmux-256color'
set -ga terminal-overrides ',alacritty:RGB,*256col*:RGB'
set-option -g history-limit 100000
set-option -g prefix C-b
set-option -g renumber-windows on

View File

@@ -1,33 +1,49 @@
{
"languageserver": {
"terraform": {
"command": "terraform-lsp",
"filetypes": [
"terraform"
]
},
"R": {
"command": "R",
"args": [
"--slave",
"-e",
"languageserver::run()"
],
"filetypes": [
"r"
]
},
"bash": {
"command": "bash-language-server",
"args": [
"start"
],
"filetypes": [
"sh"
],
"ignoredRootPaths": [
"~"
]
}
}
"languageserver": {
"terraform": {
"command": "terraform-lsp",
"filetypes": [
"terraform"
]
},
"R": {
"command": "R",
"args": [
"--slave",
"-e",
"languageserver::run()"
],
"filetypes": [
"r"
]
},
"bash": {
"command": "bash-language-server",
"args": [
"start"
],
"filetypes": [
"sh"
],
"ignoredRootPaths": [
"~"
]
},
"ruff-lsp": {
"command": [
"ruff-lsp"
],
"filetypes": [
"python"
]
}
},
"pyright.enable": true,
"pyright.inlayHints.functionReturnTypes": true,
"pyright.inlayHints.variableTypes": true,
"pyright.organizeimports.provider": "ruff",
"pyright.testing.provider": "pytest",
"python.formatting.provider": "ruff",
"python.linting.ruffEnabled": true,
"clangd.path": "~/.config/coc/extensions/coc-clangd-data/install/17.0.3/clangd_17.0.3/bin/clangd"
}

54
vimrc
View File

@@ -1,5 +1,4 @@
packloadall
call pathogen#infect()
syntax on
@@ -15,7 +14,7 @@ set backupdir^=~/.vim/_backup//
set cursorline
set cursorcolumn
set directory^=~/.vim/_temp//
set encoding=utf8
set encoding=utf-8
set hlsearch
set ignorecase
set incsearch
@@ -24,12 +23,13 @@ set linebreak
set modeline
set nowrap
set number
set signcolumn=yes
set smartcase
set statusline+=%#warningmsg#
set statusline+=%*
set tabstop=4
set updatetime=100
set textwidth=67
set updatetime=300
set textwidth=1000
if has("persistent_undo")
set undodir=~/.vim/_undo//
@@ -46,9 +46,16 @@ au BufRead,BufNewFile .envrc setfiletype sh
au BufRead,BufNewFile Dockerfile* setfiletype dockerfile
au BufRead,BufNewFile Pipfile setfiletype toml
au BufRead,BufNewFile kubectl-edit-status-* setfiletype yaml
au BufRead,BufNewFile *kubeconfig* setfiletype yaml
au BufRead,BufNewFile */.kube/config setfiletype yaml
au BufRead,BufNewFile .lintr setfiletype yaml
au BufRead,BufNewFile devcontainer.json setfiletype jsonc
au BufRead,BufNewFile devcontainer-feature.json setfiletype jsonc
au BufRead,BufNewFile *.bicepparam setfiletype bicep
au BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4
au FileType go nmap <leader>r <Plug>(go-run)
au FileType go nmap <leader>r <Plug>(go-run)
au FileType go nmap <Leader>c <Plug>(go-coverage-toggle)
au FileType sh set expandtab
au QuickFixCmdPost *grep* cwindow
" run :GoBuild or :GoTestCompile based on the go file
@@ -73,15 +80,21 @@ map <leader>l :Minimap<CR>
map <leader>L :MinimapClose<CR>
nmap <F8> :TagbarToggle<CR>
au FileType python nmap <leader>t :Black<CR>:w<CR>
"augroup black_on_save
" autocmd!
" autocmd BufWritePre *.py Black
"augroup end
autocmd BufNewFile,BufRead *.c set formatprg=astyle\ -t4\ -A14
let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
let g:airline_powerline_fonts = 1
let g:black_use_virtualenv = 1
let g:coc_global_extensions = ['coc-tsserver']
let g:coc_node_path = "/home/dan/.nvm/versions/node/v16.9.1/bin/node"
let g:go_auto_sameids = 1
let g:go_auto_type_info = 1
let g:go_def_mode='gopls'
let g:go_def_mode = 'gopls'
let g:go_fmt_command = "goimports"
let g:go_highlight_build_constraints = 1
let g:go_highlight_extra_types = 1
@@ -89,7 +102,7 @@ let g:go_highlight_fields = 1
let g:go_highlight_function_calls = 1
let g:go_highlight_functions = 1
let g:go_highlight_operators = 1
let g:go_info_mode='gopls'
let g:go_info_mode = 'gopls'
let g:html_indent_script1 = "inc"
let g:html_indent_style1 = "inc"
let g:minimap_auto_start = 1
@@ -99,6 +112,7 @@ let g:minimap_highlight_search = 1
let g:minimap_enable_highlight_colorgroup = 1
let g:minimap_width = 10
let g:python_highlight_all = 1
let g:rehash256 = 1
let g:rustfmt_autosave = 1
let g:shfmt_extra_args = '-i 2'
let g:shfmt_fmt_on_save = 1
@@ -108,8 +122,16 @@ let g:vim_markdown_folding_disabled = 1
let g:vim_markdown_frontmatter = 1
let g:yapf_style = "pep8"
packadd! dracula
if exists('+termguicolors')
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
endif
"colorscheme dichromatic
colorscheme dracula
"colorscheme molokai
"colorscheme elflord
hi Comment cterm=NONE ctermfg=DarkRed gui=NONE guifg=red2
hi minimapCursor ctermbg=59 ctermfg=228 guibg=#5F5F5F guifg=#FFFF87
@@ -123,16 +145,4 @@ function! <SID>SynStack()
echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
endfunc
" use <tab> to trigger completion and navigate to the next complete item
function! CheckBackspace() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
inoremap <silent><expr> <Tab>
\ coc#pum#visible() ? coc#pum#next(1) :
\ CheckBackspace() ? "\<Tab>" :
\ coc#refresh()
inoremap <expr> <Tab> coc#pum#visible() ? coc#pum#next(1) : "\<Tab>"
inoremap <expr> <S-Tab> coc#pum#visible() ? coc#pum#prev(1) : "\<S-Tab>"
"source ~/.vimrc.coc

2
zprofile Normal file
View File

@@ -0,0 +1,2 @@
GPG_TTY=$(tty)
export GPG_TTY

76
zshrc
View File

@@ -36,16 +36,18 @@ COMPLETION_WAITING_DOTS="true"
# much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
if [[ -e "${XDG_RUNTIME_DIR}/ssh-agent.socket" ]]; then
export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.socket"
fi
path=(
$HOME/.rbenv/shims
$HOME/.pyenv/shims
$HOME/bin
$HOME/go/bin
$HOME/.local/bin
$HOME/.cargo/bin
$HOME/.rbenv/bin
$HOME/.phpenv/bin
$HOME/.pyenv/bin
$HOME/.yarn/bin
$HOME/.pulumi/bin
${KREW_ROOT:-$HOME/.krew}/bin
@@ -54,6 +56,7 @@ path=(
$HOME/perl5/bin
$HOME/Library/Python/3.8/bin
/usr/local/opt/python@3.8/bin
/usr/bin/core_perl
/usr/local/sbin
/usr/local/bin
/usr/bin/vendor_perl
@@ -69,7 +72,9 @@ path=(
plugins=(
archlinux
asdf
aws
azure
brew
bundler
command-not-found
@@ -89,8 +94,8 @@ plugins=(
node
nvm
pip
podman
postgres
pyenv
python
rails
rake-fast
@@ -99,10 +104,9 @@ plugins=(
rsync
ruby
rust
terraform
symfony-complete
tmux
vagrant
vault
vi-mode
yarn
)
@@ -126,6 +130,8 @@ export EDITOR=vim
export PYENV_ROOT="${HOME}/.pyenv"
export SDKMAN_DIR="${HOME}/.sdkman"
export VISUAL=vim
export PTD_CACHE="${HOME}/.local/ptd"
export PTD_ROOT="${HOME}/code/rstudio/ptd/infra"
# The completion for aws is not compatible with $fpath :scream_cat:
if [[ -f /usr/local/share/zsh/site-functions/_aws ]] ; then
@@ -157,11 +163,22 @@ if psql --version &>/dev/null; then
alias pgme='psql -d postgres://me@jool.meatballhat.com:15744/me'
fi
if terraform version &>/dev/null; then
alias terraform=tofu
alias tf=tofu
fi
unsetopt correct_all
bindkey '^R' history-incremental-search-backward
if which pyenv >/dev/null; then
eval "$(pyenv init - 2>/dev/null)"
if [[ "${HATCH_ENV_ACTIVE}" ]]; then
: skipping pyenv when inside a hatch env
else
path=($HOME/.pyenv/shims $HOME/.pyenv/bin "${path[@]}")
plugins=("${plugins[@]}" pyenv)
eval "$(pyenv init - 2>/dev/null)"
fi
fi
if which phpenv >/dev/null; then
@@ -173,16 +190,14 @@ if [[ -f ~/.cargo/env ]]; then
fi
if gimme --version &>/dev/null; then
eval "$(gimme stable)" 2>/dev/null
eval "$(gimme 1.21.4)" 2>/dev/null
export GOPATH="$HOME/go"
fi
CDPATH="$HOME/code:$HOME/src:$HOME/Development/src:$HOME/repos"
for prefix in github.com github.com/meatballhat code.google.com/p ; do
CDPATH="$HOME/go/src/$prefix:$CDPATH"
done
export GPG_TTY=$(tty)
cdpath=(
$HOME/code
$HOME/src
)
function __maybesource() {
if [[ -f "${1}" ]]; then
@@ -216,6 +231,23 @@ function docker-cleanup() {
done
}
function ptd-completion() {
if command -v ptd &>/dev/null; then
eval "$(_PTD_COMPLETE=zsh_source ptd)"
fi
}
function mksecret() {
local nbytes="${1:-42}"
python3 <<EOPYTHON | tr -d '/' | tr -d '+' | cut -b1-$((nbytes - 1))
import secrets
import base64
print(base64.b64encode(secrets.token_bytes(${nbytes} * 2)).decode(), end="")
EOPYTHON
}
export NVM_DIR="${HOME}/.nvm"
__maybesource ~/.zshenv
@@ -242,16 +274,26 @@ if [[ -d /usr/local/opt/python@3.8/lib/pkgconfig ]]; then
fi
if nvm &>/dev/null; then
nvm use --delete-prefix 16 --silent
nvm use --delete-prefix 20 --silent
fi
autoload -Uz compinit
compinit
if kitty --version &>/dev/null; then
autoload -Uz compinit
compinit
kitty + complete setup zsh | source /dev/stdin
fi
true
compdef _symfony_complete composer
compdef _symfony_complete dep
alias fz=fuzzbucket-client
if ptd --version &>/dev/null; then
ptd-completion
fi
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
true