Skip to content

Commit f1345d8

Browse files
author
marcelarie
committed
Merge branch 'p14s' of github.com:marcelarie/dots into p14s
2 parents 90913aa + 2f8c82a commit f1345d8

File tree

12 files changed

+139
-23
lines changed

12 files changed

+139
-23
lines changed

.asoundrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
pcm.!default {
2+
type plug
3+
slave.pcm "multi"
4+
}
5+
6+
pcm.multi {
7+
type multi
8+
slaves.a.pcm "hw:0,3"
9+
slaves.b.pcm "hw:1,3"
10+
slaves.a.channels 2
11+
slaves.b.channels 2
12+
bindings.0.slave a
13+
bindings.0.channel 0
14+
bindings.1.slave a
15+
bindings.1.channel 1
16+
bindings.2.slave b
17+
bindings.2.channel 0
18+
bindings.3.slave b
19+
bindings.3.channel 1
20+
}

.bash_aliases

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ alias tree="erd"
5252
# alias glom="git pull origin (git branch -rl "*/HEAD" | rev | cut -d/ -f1 | rev)''"
5353
alias glof="git log --oneline -M --stat --follow --"
5454
alias glast="git log --pretty=format:"%h" HEAD^..HEAD"
55-
alias cglast="glast | copy"
55+
alias gclast="glast | copy"
5656
# alias grec='git log --graph --oneline --decorate ( git fsck --no-reflog | awk "/dangling commit/ {print $3}" )'
5757
alias gdfc=" git diff --name-only origin/HEAD"
5858
# alias gdsm='git diff (gst | rg "modified" | sed "s/modified://g" | fzf | awk \'{$1=$1};1\' )'
@@ -102,6 +102,7 @@ alias retro="~/scripts/open-retro-notes.sh"
102102
alias emulator="~/Library/Android/sdk/emulator/emulator"
103103
# alias vi="nvim"
104104
alias vi="~/scripts/vi.sh"
105+
alias feni='~/scripts/fennel-nvim.sh'
105106
alias vin="nvim-nightly"
106107
alias screen_shoot_partial='grim -g "$(slurp)" ~/screenshots/grim-"$(date '+%Y%m%d-%H:%M:%S')".png'
107108
alias cvi="vi"
@@ -157,8 +158,7 @@ alias mc="mcfly search"
157158
# alias af="xdotool type --delay 0 ( alias | fzy | awk -F' ' '{print $2}')"
158159
# alias chs="cht.sh"
159160

160-
alias ta="tmux attach -t"
161-
alias tas='~/scripts/tmux/tmux-attach-search.sh own work'
161+
alias ta='tmux attach -t $(tmux ls -F "#{session_name}" | fzf)'
162162
alias tcs='~/scripts/tmux/create-session-tmex.sh'
163163
alias trc='nvim ~/.config/tmux/tmux.conf'
164164
alias skrc='nvim ~/.config/skhd/skhdrc'
@@ -361,7 +361,7 @@ alias myip="dig +short myip.opendns.com @resolver1.opendns.com"
361361
alias nurc="nvim ~/.config/nushell/config.nu"
362362
alias nual="nvim ~/.config/nushell/alias.nu"
363363
alias nuenv="nvim ~/.config/nushell/env.nu"
364-
alias ta="tarea"
364+
alias ff="fzf --preview 'bat --style=numbers --color=always {}'"
365365

366366
alias nn="nnn -e"
367367
alias nnn="nnn -e"

.bashrc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export NIX_PROMPT=true
66
export VI_MODE_PROMPT=true
77

88
source ~/.bash_aliases
9+
910
if [[ $- == *i* ]] && [[ -t 0 ]]; then
1011
source ~/clones/forks/xelabash/xela.bash
1112
fi
@@ -21,6 +22,10 @@ set -o vi
2122
export CARAPACE_BRIDGES='zsh,fish,bash,inshellisense' # optional
2223
source <(carapace _carapace)
2324
eval "$(direnv hook bash)"
25+
26+
[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh
27+
# Turn on comments for commands executed from the command line so they can show in history
28+
# setopt interactivecomments
2429
eval "$(atuin init bash --disable-up-arrow)"
2530

2631
# Use bash-completion, if available
@@ -108,9 +113,9 @@ gstp() {
108113
git status --porcelain "$@" | awk '$1 ~ /^M/ { print $2 }' | paste -sd ' '
109114
}
110115

111-
# if [[ $- == *i* ]] && [[ -t 0 ]]; then
112-
# tarea
113-
# fi
116+
if [[ $- == *i* ]] && [[ -t 0 ]] && command -v tarea >/dev/null 2>&1; then
117+
tarea
118+
fi
114119

115120
if command -v tarea >/dev/null 2>&1; then
116121
eval "$(tarea --completions bash)"
@@ -121,4 +126,3 @@ fi
121126
# eval "$(gcs --completion bash)"
122127
# fi
123128

124-
# alias claude="/home/mmanzanares/.claude/local/claude"

.claude/CLAUDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@ When writing code:
1313
This project prefers minimal diffs and clean patches.
1414
Follow Unix-style conventions: small, focused changes that are easy to review.
1515
If the project has a flake.nix try to use nix develop to run commands.
16+
Check if there is a Makefile, Justfile or variants to see if there are already
17+
setup some command runs.
18+
Check if there is a flake.nix to know if you need to use nix develop to run
19+
commands.
1620

.claude/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"permissions": {
3+
"deny": [
4+
"Read(ENV)",
5+
"Read(./.env)",
6+
"Read(./.env.*)"
7+
]
8+
}
9+
}

.config/btop/btop.conf

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#? Config file for btop v. 1.2.13
1+
#? Config file for btop v. 1.3.0
22

33
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
44
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
@@ -25,7 +25,7 @@ presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:defaul
2525
vim_keys = False
2626

2727
#* Rounded corners on boxes, is ignored if TTY mode is ON.
28-
rounded_corners = True
28+
rounded_corners = False
2929

3030
#* Default symbols to use for graph creation, "braille", "block" or "tty".
3131
#* "braille" offers the highest resolution but might not be included in all fonts.
@@ -37,6 +37,9 @@ graph_symbol = "braille"
3737
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
3838
graph_symbol_cpu = "default"
3939

40+
# Graph symbol to use for graphs in gpu box, "default", "braille", "block" or "tty".
41+
graph_symbol_gpu = "default"
42+
4043
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
4144
graph_symbol_mem = "default"
4245

@@ -46,7 +49,7 @@ graph_symbol_net = "default"
4649
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
4750
graph_symbol_proc = "default"
4851

49-
#* Manually set which boxes to show. Available values are "cpu mem net proc", separate values with whitespace.
52+
#* Manually set which boxes to show. Available values are "cpu mem net proc" and "gpu0" through "gpu5", separate values with whitespace.
5053
shown_boxes = "cpu mem net proc"
5154

5255
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
@@ -66,7 +69,7 @@ proc_tree = False
6669
proc_colors = True
6770

6871
#* Use a darkening gradient in the process list.
69-
proc_gradient = True
72+
proc_gradient = False
7073

7174
#* If process cpu usage should be of the core it's running on or usage of the total available cpu power.
7275
proc_per_core = False
@@ -86,13 +89,19 @@ proc_left = False
8689
#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop).
8790
proc_filter_kernel = False
8891

92+
#* In tree-view, always accumulate child process resources in the parent process.
93+
proc_aggregate = False
94+
8995
#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available.
9096
#* Select from a list of detected attributes from the options menu.
91-
cpu_graph_upper = "total"
97+
cpu_graph_upper = "Auto"
9298

9399
#* Sets the CPU stat shown in lower half of the CPU graph, "total" is always available.
94100
#* Select from a list of detected attributes from the options menu.
95-
cpu_graph_lower = "total"
101+
cpu_graph_lower = "Auto"
102+
103+
#* If gpu info should be shown in the cpu box. Available values = "Auto", "On" and "Off".
104+
show_gpu_info = "Auto"
96105

97106
#* Toggles if the lower CPU graph should be inverted.
98107
cpu_invert_lower = True
@@ -209,4 +218,29 @@ selected_battery = "Auto"
209218

210219
#* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
211220
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
212-
log_level = "WARNING"
221+
log_level = "WARNING"
222+
223+
#* Measure PCIe throughput on NVIDIA cards, may impact performance on certain cards.
224+
nvml_measure_pcie_speeds = True
225+
226+
#* Horizontally mirror the GPU graph.
227+
gpu_mirror_graph = True
228+
229+
#* Custom gpu0 model name, empty string to disable.
230+
custom_gpu_name0 = ""
231+
232+
#* Custom gpu1 model name, empty string to disable.
233+
custom_gpu_name1 = ""
234+
235+
#* Custom gpu2 model name, empty string to disable.
236+
custom_gpu_name2 = ""
237+
238+
#* Custom gpu3 model name, empty string to disable.
239+
custom_gpu_name3 = ""
240+
241+
#* Custom gpu4 model name, empty string to disable.
242+
custom_gpu_name4 = ""
243+
244+
#* Custom gpu5 model name, empty string to disable.
245+
custom_gpu_name5 = ""
246+

.config/hypr/pyprland.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ lazy = true
3636
[scratchpads.volume]
3737
animation = ""
3838
command = "pavucontrol"
39-
class = "org.pulseaudio.pavucontrol"
39+
class = "Pavucontrol"
4040
position = "25% 25%"
4141
size = "50% 50%"
4242
unfocus = "hide"

.config/waybar/config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"hyprland/mode"
1111
],
1212
"modules-center": [
13-
"hyprland/window"
1413
],
1514
"modules-right": [
1615
"pulseaudio",

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11

22
.cargo/
33
old-scripts/
4+
.config/nushell/history.txt

.sops.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
keys:
2+
- &nixos age16phd3r65ggmhv090r57es8ygt7j0y0tjezfndkuaptgmk50rxyms56ys87
3+
- &work age1yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy # Add work host's public key here
4+
5+
creation_rules:
6+
- path_regex: secrets/secrets\.yaml$
7+
key_groups:
8+
- age:
9+
- *nixos
10+
- *work

0 commit comments

Comments
 (0)