Skip to content

Instantly share code, notes, and snippets.

View micaelviana's full-sized avatar

Micael Viana micaelviana

View GitHub Profile
@micaelviana
micaelviana / windows_terminal.json
Created October 22, 2024 23:35
Windows terminal config
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command": "unbound",
"keys": "ctrl+insert"
},
{
@micaelviana
micaelviana / kickstart.lua
Created February 18, 2024 14:56
Kickstart config
vim.keymap.set({"n","v"},"s",":",{noremap=true,silent=false})
vim.keymap.set("n","\\z",":xa<cr>",{noremap=true,silent=true})
vim.keymap.set("n","<space>w",":w<cr>",{noremap=true,silent=true})
vim.keymap.set("n","<space>q",":xa<cr>",{noremap=true,silent=true})
vim.opt.relativenumber=true
vim.api.nvim_create_user_command("WindowsCleaning",'%s/\r/',{})
@micaelviana
micaelviana / espanso.yml
Last active May 6, 2024 21:16
Espanso triggers
# espanso match file
# For a complete introduction, visit the official docs at: https://espanso.org/docs/
# You can use this file to define the base matches (aka snippets)
# that will be available in every application when using espanso.
# Matches are substitution rules: when you type the "trigger" string
# it gets replaced by the "replace" string.
matches:
@micaelviana
micaelviana / arch_mirrors.txt
Last active January 5, 2024 21:27
Brazil mirrors - put in /etc/pacman.d/mirrorlist
##
## Arch Linux repository mirrorlist
## Generated on 2023-12-15
##
## Brazil
Server = http://archlinux.c3sl.ufpr.br/$repo/os/$arch
Server = http://www.caco.ic.unicamp.br/archlinux/$repo/os/$arch
Server = https://www.caco.ic.unicamp.br/archlinux/$repo/os/$arch
Server = http://linorg.usp.br/archlinux/$repo/os/$arch
@micaelviana
micaelviana / asdf_neovim.sh
Last active October 4, 2024 22:47
A script to install my neovim config without sudo
#!/usr/bin/env bash
set -o pipefail
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
RESET='\033[0m' # Reset to default color
@micaelviana
micaelviana / lunarvim.lua
Last active February 18, 2024 14:55
Lunarvim config
-- Read the docs: https://www.lunarvim.org/docs/configuration
-- Video Tutorials: https://www.youtube.com/watch?v=sFA9kX-Ud_c&list=PLhoH5vyxr6QqGu0i7tt_XoVK9v-KvZ3m6
-- Forum: https://www.reddit.com/r/lunarvim/
-- Discord: https://discord.com/invite/Xb9B4Ny
vim.keymap.set({"n","v"},"s",":",{noremap=true,silent=false})
vim.keymap.set("n","\\z",":xa<cr>",{noremap=true,silent=true})
vim.opt.relativenumber=true
vim.api.nvim_create_user_command("WindowsCleaning",'%s/\r/',{})
@micaelviana
micaelviana / examples.ahk
Last active April 13, 2024 15:22
Collection of Autohotekey scripts
;Press Win+r and put %AppData%\Microsoft\Windows\Start Menu\Programs\Startup
;Put either this file or a shortcut to this file
#InstallKeybdHook
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#SingleInstance force ; Only one copy of this script should run at a time.
SendMode Input ; Recommended for new scripts due to its superior speed an
;f4->alt+tab
$Media_Prev::Send !{Tab} ;f4
@micaelviana
micaelviana / keybindings.json
Created September 28, 2022 14:41
Visual Code - Toggle between terminal and editor focus
/// Toggle between terminal and editor focus
[
{
"key": "ctrl+j",
"command": "workbench.action.terminal.focus",
},
{
"key": "ctrl+k",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
@micaelviana
micaelviana / settings.json
Last active December 26, 2022 02:51
Visual code
{
"editor.fontFamily": "'Monaco Nerd Font','CodeNewRoman NF',Consolas, 'Courier New', monospace",
"editor.fontSize": 18,
"editor.wordWrap": "on",
"editor.lineNumbers": "relative",
//Vim
"vim.easymotion": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
@micaelviana
micaelviana / Settings - KDE.md
Created December 25, 2021 14:33
Settings to KDE

Mouse scroll

System settings > Hardware div > Input devices > Touchpad > Invert scroll direction

Mouse Click

System settings > Workspace Div > Workspace behaviour > clicking files or folders> Selects them

Shortcuts