This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Set <space> as the leader key | |
| vim.g.mapleader = ' ' | |
| vim.g.maplocalleader = ' ' | |
| vim.g.loaded_netrw = 1 | |
| vim.g.loaded_netrwPlugin = 1 | |
| -- Install package manager | |
| local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' | |
| if not vim.loop.fs_stat(lazypath) then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set -g @plugin 'tmux-plugins/tmux-resurrect' | |
| set -g @plugin 'tmux-plugins/tmux-continuum' | |
| set -g @continuum-restore 'on' | |
| set -g @continuum-save-interval '10' | |
| set -g default-terminal "tmux-256color" | |
| set -ga terminal-overrides ",xterm-256color:Tc" | |
| set -g mouse on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Read the docs: https://www.lunarvim.org/docs/configuration | |
| -- Example configs: https://github.com/LunarVim/starter.lvim | |
| local first_start_marker = vim.fn.stdpath("data") .. "/first_start_completed" | |
| -- general | |
| lvim.log.level = "warn" | |
| lvim.format_on_save = true | |
| lvim.colorscheme = "onedarker" | |
| -- vim.opt.mouse = "" | |
| -- to disable icons and use a minimalist setup, uncomment the following |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PS1="\[\e[0;35m\]\u\[\e[1;36m\]\[\033[m\]@\[\e[1;36m\]\h\[\033[m\]:\[\e[0m\]\[\e[1;32m\][\w]> \[\e[0m\]" | |
| if [[ -n "$IS_WSL" || -n "$WSL_DISTRO_NAME" ]]; then | |
| alias ii="explorer.exe" | |
| alias iil="explorer.exe ." | |
| fi | |
| complete -W "\`grep -oE '^[a-zA-Z0-9_.-]+:([^=]|$)' ?akefile | sed 's/[^a-zA-Z0-9_.-]*$//'\`" make | |
| alias valgrind_quick="valgrind --tool=memcheck --leak-check=yes" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " -- Plugins -- | |
| " First Start | |
| let firstStart = 0 | |
| if !filereadable(expand('~/.vim/bundle/Vundle.vim/README.md')) | |
| echo "Setting up Vundle.vim!\nPlease ignore errors!\n" | |
| silent !git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
| let firstStart = 1 | |
| endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; Src: https://autohotkey.com/board/topic/21984-vista-audio-control-functions/ | |
| ; VA v2.3 | |
| ; MASTER CONTROLS | |
| VA_GetMasterVolume(channel="", device_desc="playback") | |
| { | |
| if ! aev := VA_GetAudioEndpointVolume(device_desc) | |
| return | |
| if channel = | |
| VA_IAudioEndpointVolume_GetMasterVolumeLevelScalar(aev, vol) |