chore: updates
This commit is contained in:
parent
b88cf78d26
commit
06e4ee6088
23 changed files with 340 additions and 2363 deletions
|
@ -6,12 +6,12 @@ env:
|
|||
|
||||
window:
|
||||
padding:
|
||||
x: 4
|
||||
y: 4
|
||||
opacity: 1
|
||||
x: 2
|
||||
y: 2
|
||||
opacity: 0.85
|
||||
|
||||
font:
|
||||
normal:
|
||||
family: FiraCode Nerd Font Mono
|
||||
style: Medium
|
||||
size: 12.0
|
||||
style: Light
|
||||
size: 10.0
|
||||
|
|
1
.config/alacritty/catppuccin
Submodule
1
.config/alacritty/catppuccin
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 3c808cbb4f9c87be43ba5241bc57373c793d2f17
|
99
.config/fish/24-bit-color.sh
Normal file
99
.config/fish/24-bit-color.sh
Normal file
|
@ -0,0 +1,99 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# This file echoes a bunch of 24-bit color codes
|
||||
# to the terminal to demonstrate its functionality.
|
||||
# The foreground escape sequence is ^[38;2;<r>;<g>;<b>m
|
||||
# The background escape sequence is ^[48;2;<r>;<g>;<b>m
|
||||
# <r> <g> <b> range from 0 to 255 inclusive.
|
||||
# The escape sequence ^[0m returns output to default
|
||||
|
||||
setBackgroundColor()
|
||||
{
|
||||
echo -en "\x1b[48;2;$1;$2;$3""m"
|
||||
}
|
||||
|
||||
resetOutput()
|
||||
{
|
||||
echo -en "\x1b[0m\n"
|
||||
}
|
||||
|
||||
# Gives a color $1/255 % along HSV
|
||||
# Who knows what happens when $1 is outside 0-255
|
||||
# Echoes "$red $green $blue" where
|
||||
# $red $green and $blue are integers
|
||||
# ranging between 0 and 255 inclusive
|
||||
rainbowColor()
|
||||
{
|
||||
let h=$1/43
|
||||
let f=$1-43*$h
|
||||
let t=$f*255/43
|
||||
let q=255-t
|
||||
|
||||
if [ $h -eq 0 ]
|
||||
then
|
||||
echo "255 $t 0"
|
||||
elif [ $h -eq 1 ]
|
||||
then
|
||||
echo "$q 255 0"
|
||||
elif [ $h -eq 2 ]
|
||||
then
|
||||
echo "0 255 $t"
|
||||
elif [ $h -eq 3 ]
|
||||
then
|
||||
echo "0 $q 255"
|
||||
elif [ $h -eq 4 ]
|
||||
then
|
||||
echo "$t 0 255"
|
||||
elif [ $h -eq 5 ]
|
||||
then
|
||||
echo "255 0 $q"
|
||||
else
|
||||
# execution should never reach here
|
||||
echo "0 0 0"
|
||||
fi
|
||||
}
|
||||
|
||||
for i in `seq 0 127`; do
|
||||
setBackgroundColor $i 0 0
|
||||
echo -en " "
|
||||
done
|
||||
resetOutput
|
||||
for i in `seq 255 128`; do
|
||||
setBackgroundColor $i 0 0
|
||||
echo -en " "
|
||||
done
|
||||
resetOutput
|
||||
|
||||
for i in `seq 0 127`; do
|
||||
setBackgroundColor 0 $i 0
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
for i in `seq 255 128`; do
|
||||
setBackgroundColor 0 $i 0
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
|
||||
for i in `seq 0 127`; do
|
||||
setBackgroundColor 0 0 $i
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
for i in `seq 255 128`; do
|
||||
setBackgroundColor 0 0 $i
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
|
||||
for i in `seq 0 127`; do
|
||||
setBackgroundColor `rainbowColor $i`
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
for i in `seq 255 128`; do
|
||||
setBackgroundColor `rainbowColor $i`
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
|
|
@ -21,8 +21,17 @@ source ~/.config/fish/myfunctions/pacman.fish
|
|||
source ~/.config/fish/myfunctions/qol.fish
|
||||
source ~/.config/fish/myfunctions/replacements.fish
|
||||
|
||||
starship init fish | source
|
||||
|
||||
# bun
|
||||
set --export BUN_INSTALL "$HOME/.bun"
|
||||
set --export PATH $BUN_INSTALL/bin $PATH
|
||||
|
||||
# >>> conda initialize >>>
|
||||
# !! Contents within this block are managed by 'conda init' !!
|
||||
if test -f /home/afonso/miniconda3/bin/conda
|
||||
eval /home/afonso/miniconda3/bin/conda "shell.fish" "hook" $argv | source
|
||||
end
|
||||
# <<< conda initialize <<<
|
||||
conda deactivate
|
||||
|
||||
starship init fish | source
|
||||
|
|
1
.config/kitty/.jukit/.jukit_info.json
Normal file
1
.config/kitty/.jukit/.jukit_info.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"terminal": "tmux"}
|
File diff suppressed because it is too large
Load diff
9
.config/kitty/neighboring_window.py
Normal file
9
.config/kitty/neighboring_window.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
def main():
|
||||
pass
|
||||
|
||||
|
||||
def handle_result(args, result, target_window_id, boss):
|
||||
boss.active_tab.neighboring_window(args[1])
|
||||
|
||||
|
||||
handle_result.no_ui = True
|
46
.config/kitty/pass_keys.py
Normal file
46
.config/kitty/pass_keys.py
Normal file
|
@ -0,0 +1,46 @@
|
|||
import re
|
||||
|
||||
from kittens.tui.handler import result_handler
|
||||
from kitty.key_encoding import KeyEvent, parse_shortcut
|
||||
|
||||
|
||||
def is_window_vim(window, vim_id):
|
||||
fp = window.child.foreground_processes
|
||||
return any(re.search(vim_id, p['cmdline'][0] if len(p['cmdline']) else '', re.I) for p in fp)
|
||||
|
||||
|
||||
def encode_key_mapping(window, key_mapping):
|
||||
mods, key = parse_shortcut(key_mapping)
|
||||
event = KeyEvent(
|
||||
mods=mods,
|
||||
key=key,
|
||||
shift=bool(mods & 1),
|
||||
alt=bool(mods & 2),
|
||||
ctrl=bool(mods & 4),
|
||||
super=bool(mods & 8),
|
||||
hyper=bool(mods & 16),
|
||||
meta=bool(mods & 32),
|
||||
).as_window_system_event()
|
||||
|
||||
return window.encoded_key(event)
|
||||
|
||||
|
||||
def main():
|
||||
pass
|
||||
|
||||
|
||||
@result_handler(no_ui=True)
|
||||
def handle_result(args, result, target_window_id, boss):
|
||||
window = boss.window_id_map.get(target_window_id)
|
||||
direction = args[2]
|
||||
key_mapping = args[3]
|
||||
vim_id = args[4] if len(args) > 4 else "n?vim"
|
||||
|
||||
if window is None:
|
||||
return
|
||||
if is_window_vim(window, vim_id):
|
||||
for keymap in key_mapping.split(">"):
|
||||
encoded = encode_key_mapping(window, keymap)
|
||||
window.write_to_child(encoded)
|
||||
else:
|
||||
boss.active_tab.neighboring_window(direction)
|
|
@ -30,3 +30,9 @@ vim.opt.undofile = true
|
|||
--Org mode hide links
|
||||
vim.opt.conceallevel = 2
|
||||
vim.opt.concealcursor = 'nc'
|
||||
--Jupyter notebooks
|
||||
vim.g.jukit_convert_overwrite_default = 1
|
||||
vim.g.jukit_convert_open_default = 1
|
||||
vim.g.jukit_shell_cmd = 'ipython3'
|
||||
vim.g.jukit_terminal = 'nvimterm'
|
||||
vim.g.jukit_inline_plotting=1
|
||||
|
|
1
.config/nvim/lua/plugins/.jukit/.jukit_info.json
Normal file
1
.config/nvim/lua/plugins/.jukit/.jukit_info.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"terminal": "tmux"}
|
|
@ -101,6 +101,7 @@ lazy.setup({
|
|||
}
|
||||
end
|
||||
},
|
||||
|
||||
-- Rename variable pop up
|
||||
'stevearc/dressing.nvim',
|
||||
{
|
||||
|
@ -108,21 +109,25 @@ lazy.setup({
|
|||
config = function()
|
||||
require("compiler-explorer").setup({
|
||||
url = "https://godbolt.org",
|
||||
infer_lang = true, -- Try to infer possible language based on file extension.
|
||||
infer_lang = true, -- Try to infer possible language based on file extension.
|
||||
line_match = {
|
||||
highlight = true, -- highlight the matching line(s) in the other buffer.
|
||||
jump = true, -- move the cursor in the other buffer to the first matching line.
|
||||
highlight = true, -- highlight the matching line(s) in the other buffer.
|
||||
jump = true, -- move the cursor in the other buffer to the first matching line.
|
||||
},
|
||||
open_qflist = true, -- Open qflist after compilation if there are diagnostics.
|
||||
split = "split", -- How to split the window after the second compile (split/vsplit).
|
||||
compiler_flags = "", -- Default flags passed to the compiler.
|
||||
open_qflist = true, -- Open qflist after compilation if there are diagnostics.
|
||||
split = "split", -- How to split the window after the second compile (split/vsplit).
|
||||
compiler_flags = "", -- Default flags passed to the compiler.
|
||||
job_timeout_ms = 25000, -- Timeout for libuv job in milliseconds.
|
||||
languages = { -- Language specific default compiler/flags
|
||||
languages = { -- Language specific default compiler/flags
|
||||
},
|
||||
})
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
'luk400/vim-jukit'
|
||||
},
|
||||
|
||||
{
|
||||
'windwp/nvim-autopairs',
|
||||
config = function()
|
||||
|
@ -207,12 +212,12 @@ lazy.setup({
|
|||
end
|
||||
},
|
||||
|
||||
-- {
|
||||
-- 'lervag/vimtex',
|
||||
-- config = function()
|
||||
-- require 'plugins.vimtex'
|
||||
-- end
|
||||
-- },
|
||||
{
|
||||
'lervag/vimtex',
|
||||
config = function()
|
||||
require 'plugins.vimtex'
|
||||
end
|
||||
},
|
||||
|
||||
-------------------------------------------------------------------------------------------
|
||||
-- Syntax Highlighting
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
vim.g.vimtex_view_method = 'zathura'
|
||||
|
||||
vim.g.vimtex_compiler_methor = 'latexmk'
|
||||
|
|
|
@ -202,7 +202,7 @@ opacity-rule = [
|
|||
"100:class_g = 'XTerm'",
|
||||
"100:class_g = 'URxvt'",
|
||||
"85:class_g = 'kitty'",
|
||||
"100:class_g = 'Alacritty'",
|
||||
"85:class_g = 'Alacritty'",
|
||||
"80:class_g = 'Polybar'",
|
||||
"100:class_g = 'code-oss'",
|
||||
"100:class_g = 'Meld'",
|
||||
|
|
99
.config/tmux/24-bit-color.sh
Normal file
99
.config/tmux/24-bit-color.sh
Normal file
|
@ -0,0 +1,99 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# This file echoes a bunch of 24-bit color codes
|
||||
# to the terminal to demonstrate its functionality.
|
||||
# The foreground escape sequence is ^[38;2;<r>;<g>;<b>m
|
||||
# The background escape sequence is ^[48;2;<r>;<g>;<b>m
|
||||
# <r> <g> <b> range from 0 to 255 inclusive.
|
||||
# The escape sequence ^[0m returns output to default
|
||||
|
||||
setBackgroundColor()
|
||||
{
|
||||
echo -en "\x1b[48;2;$1;$2;$3""m"
|
||||
}
|
||||
|
||||
resetOutput()
|
||||
{
|
||||
echo -en "\x1b[0m\n"
|
||||
}
|
||||
|
||||
# Gives a color $1/255 % along HSV
|
||||
# Who knows what happens when $1 is outside 0-255
|
||||
# Echoes "$red $green $blue" where
|
||||
# $red $green and $blue are integers
|
||||
# ranging between 0 and 255 inclusive
|
||||
rainbowColor()
|
||||
{
|
||||
let h=$1/43
|
||||
let f=$1-43*$h
|
||||
let t=$f*255/43
|
||||
let q=255-t
|
||||
|
||||
if [ $h -eq 0 ]
|
||||
then
|
||||
echo "255 $t 0"
|
||||
elif [ $h -eq 1 ]
|
||||
then
|
||||
echo "$q 255 0"
|
||||
elif [ $h -eq 2 ]
|
||||
then
|
||||
echo "0 255 $t"
|
||||
elif [ $h -eq 3 ]
|
||||
then
|
||||
echo "0 $q 255"
|
||||
elif [ $h -eq 4 ]
|
||||
then
|
||||
echo "$t 0 255"
|
||||
elif [ $h -eq 5 ]
|
||||
then
|
||||
echo "255 0 $q"
|
||||
else
|
||||
# execution should never reach here
|
||||
echo "0 0 0"
|
||||
fi
|
||||
}
|
||||
|
||||
for i in `seq 0 127`; do
|
||||
setBackgroundColor $i 0 0
|
||||
echo -en " "
|
||||
done
|
||||
resetOutput
|
||||
for i in `seq 255 128`; do
|
||||
setBackgroundColor $i 0 0
|
||||
echo -en " "
|
||||
done
|
||||
resetOutput
|
||||
|
||||
for i in `seq 0 127`; do
|
||||
setBackgroundColor 0 $i 0
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
for i in `seq 255 128`; do
|
||||
setBackgroundColor 0 $i 0
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
|
||||
for i in `seq 0 127`; do
|
||||
setBackgroundColor 0 0 $i
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
for i in `seq 255 128`; do
|
||||
setBackgroundColor 0 0 $i
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
|
||||
for i in `seq 0 127`; do
|
||||
setBackgroundColor `rainbowColor $i`
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
for i in `seq 255 128`; do
|
||||
setBackgroundColor `rainbowColor $i`
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
|
1
.config/tmux/plugins/tmux
Submodule
1
.config/tmux/plugins/tmux
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 4e48b09a76829edc7b55fbb15467cf0411f07931
|
1
.config/tmux/plugins/tmux-continuum
Submodule
1
.config/tmux/plugins/tmux-continuum
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 3e4bc35da41f956c873aea716c97555bf1afce5d
|
1
.config/tmux/plugins/tmux-resurrect
Submodule
1
.config/tmux/plugins/tmux-resurrect
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit cff343cf9e81983d3da0c8562b01616f12e8d548
|
1
.config/tmux/plugins/tmux-sensible
Submodule
1
.config/tmux/plugins/tmux-sensible
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 25cb91f42d020f675bb0a2ce3fbd3a5d96119efa
|
1
.config/tmux/plugins/tpm
Submodule
1
.config/tmux/plugins/tpm
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 99469c4a9b1ccf77fade25842dc7bafbc8ce9946
|
|
@ -1,5 +1,5 @@
|
|||
set -g default-terminal "tmux-256color"
|
||||
set -ag terminal-overrides ",$TERM:RGB"
|
||||
set -sa terminal-features ",*:RGB"
|
||||
set -sg escape-time 0
|
||||
setw -g mode-keys vi
|
||||
set -g mouse on
|
||||
|
|
|
@ -44,7 +44,7 @@ import Colors.Teal
|
|||
|
||||
|
||||
|
||||
myTerminal = "kitty"
|
||||
myTerminal = "kitty"
|
||||
myTerminalTmux = myTerminal ++ " -e tmux a"
|
||||
myTextEditor = "nvim"
|
||||
myWebBrowser = "firefox"
|
||||
|
@ -149,6 +149,8 @@ myStartupHook = do
|
|||
spawnOnce ("xsetroot -cursor_name left_ptr")
|
||||
spawnOnce ("killall trayer ;sleep 1 && trayer --monitor 0 --edge top --align right --margin 4 --widthtype request --padding 8 --iconspacing 12 --SetDockType true --SetPartialStrut true --expand true --transparent true --alpha 0 --tint 0x2B2E37 --height 30 --distance 5 &")
|
||||
spawnOnce ("slimbookbattery --minimize")
|
||||
spawnOnce ("slimbookintelcontroller")
|
||||
spawnOnce ("nextcloud")
|
||||
spawnOnOnce "web" myWebBrowser
|
||||
spawnOnOnce "main" myTerminalTmux
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ import Colors.Teal
|
|||
* Variables
|
||||
@code haskell
|
||||
|
||||
myTerminal = "kitty"
|
||||
myTerminal = "kitty"
|
||||
myTerminalTmux = myTerminal ++ " -e tmux a"
|
||||
myTextEditor = "nvim"
|
||||
myWebBrowser = "firefox"
|
||||
|
@ -169,6 +169,8 @@ myStartupHook = do
|
|||
spawnOnce ("xsetroot -cursor_name left_ptr")
|
||||
spawnOnce ("killall trayer ;sleep 1 && trayer --monitor 0 --edge top --align right --margin 4 --widthtype request --padding 8 --iconspacing 12 --SetDockType true --SetPartialStrut true --expand true --transparent true --alpha 0 --tint 0x2B2E37 --height 30 --distance 5 &")
|
||||
spawnOnce ("slimbookbattery --minimize")
|
||||
spawnOnce ("slimbookintelcontroller")
|
||||
spawnOnce ("nextcloud")
|
||||
spawnOnOnce "web" myWebBrowser
|
||||
spawnOnOnce "main" myTerminalTmux
|
||||
@end
|
||||
|
|
9
.xinitrc
Normal file → Executable file
9
.xinitrc
Normal file → Executable file
|
@ -43,4 +43,11 @@ if ! pgrep -f /usr/bin/easyeffects; then
|
|||
notify-send 'easyeffects daemon started'
|
||||
fi
|
||||
|
||||
/home/afonso/.local/bin/xmonad
|
||||
gpu_mode=$(/usr/bin/envycontrol -q)
|
||||
if [ "$gpu_mode" = "nvidia" ]; then
|
||||
xrandr --setprovideroutputsource modesetting NVIDIA-0
|
||||
xrandr --auto
|
||||
fi
|
||||
|
||||
|
||||
exec /home/afonso/.local/bin/xmonad
|
||||
|
|
Loading…
Add table
Reference in a new issue