commit 08cdff2f3f62ea0e470b62ebf1889bad3e81c4ca Author: LinlyBoi Date: Fri Nov 25 10:36:46 2022 +0200 First c ommit ever diff --git a/dot_zsh_aliases b/dot_zsh_aliases new file mode 100644 index 0000000..c8adf40 --- /dev/null +++ b/dot_zsh_aliases @@ -0,0 +1,303 @@ +####################################### +#### Frequently used aliases #### +####################################### + +alias clean='sed "s,\x1B\[[0-9;]*[a-zA-Z],,g"' +alias clr='clear' +alias cursor-hide="printf '\e[?25l'" +alias cursor-show="printf '\e[?25h'" +alias drive-speed='hdparam -Tt' +alias sudo='sudo ' +alias termbin='nc termbin.com 9999' +alias xclip-i='xclip -i -selection clipboard' +alias xclip-o='xclip -o -selection clipboard' +#-- Global --# +alias -g L="| less" +alias -g H="| head" +alias -g T="| tail" +alias -g G="| grep --color=auto" +alias -g N=">/dev/null" +#-- Suffix --# +alias -s html='$BROWSER' +alias -s com='$BROWSER' +alias -s org='$BROWSER' +alias -s .git='git clone' + +################################ +#### Simple functions #### +################################ + +# Use curl and jq to search for packages in the Arch Linux AUR +aursearch () { + curl -sSL "https://aur.archlinux.org/rpc/?v=5&type=search&arg=$@" | jq -r '.results[]' +} + +# Convert to and from binary +binary-convert () { + case $1 in + -b|b) + echo "$2" | perl -lpe '$_=join " ", unpack"(B8)*"' + ;; + -a|a) + echo "$2" | perl -lape '$_=pack"(B8)*",@F' + ;; + 0*|1*) + echo "$@" | perl -lape '$_=pack"(B8)*",@F' + ;; + *) + echo "$@" | perl -lpe '$_=join " ", unpack"(B8)*"' + ;; + esac +} + +# Use awk as a calculator +calc () { + awk "BEGIN {print $@}" +} + +# Use owlbot.info to get definitions; requires jq +define () { + curl -sL "https://owlbot.info/api/v2/dictionary/"$1"?format=json" | jq -r '.' +} + +# check Discord client versions +discord-versions () { + echo "Canary: $(curl -sSL -I -X GET "https://discordapp.com/api/download/canary?platform=linux&format=tar.gz" | grep -im1 '^location:' | rev | cut -f1 -d'/' | rev)" + echo "PTB: $(curl -sSL -I -X GET "https://discordapp.com/api/download/ptb?platform=linux&format=tar.gz" | grep -im1 '^location:' | rev | cut -f1 -d'/' | rev)" + echo "Stable: $(curl -sSL -I -X GET "https://discordapp.com/api/download?platform=linux&format=tar.gz" | grep -im1 '^location:' | rev | cut -f1 -d'/' | rev)" +} + +# List size of directories +dirsize () { du -h --max-depth=0 "$@" | sort -h -r } +dirsize-a () { du -h "$@" | sort -h -r } + +#Check to see if site is down for you or everyone +downforme () { + wget -qO - "http://downforeveryoneorjustme.com/$1" | grep -qo "It's just you" && echo -e "$(tput setaf 1)It's just you.\n$(tput setaf 2)$1 is up.$(tput sgr0)" || echo -e "$(tput setaf 3)It's not just you! \n$(tput setaf 1)$1 looks down from here.$(tput sgr0)" +} + +# List size of file +filesize () { du -h -a --max-depth=1 "$@" | sort -h -r } +filesize-a () { du -h -a "$@" | sort -h -r } + +# Output Github commits and messages for chosen repo; requires jq +gitcommits () { + wget -qO - "https://api.github.com/repos/$1/$2/commits" | jq -r '.[] | .sha, .commit.message' | paste -sd ' \n' | tail -n +2 +} + +# View info about a github repo; requires jq +gitinfo () { + curl -sSL "https://api.github.com/repos/$1" | jq -r ".$2" +} + +# View latest github release; requires jq +gitrelease () { + curl -sSL "https://api.github.com/repos/$1/$2/releases" | jq -r ".[$3].assets[]" +} + +# get the first google result and info about it using w3.org's html2txt and document-parser-api.lateral.io; requires perl and jq +google () { + SEARCH_QUERY="$(perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$@")" + RESULT_URL="$(curl -sL "https://www.w3.org/services/html2txt?url=https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3D$SEARCH_QUERY&noinlinerefs=on&nonums=on&endrefs=on" | grep -m1 'url?q=' | \ + sed 's% 26\. https:\/\/www\.google\.com\/url?q=%%g;s%&sa=.*%%g')" + echo -e "Google Result for '$@':\n$RESULT_URL" + URL_ENCODED="$(perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$RESULT_URL")" + INFO_JSON="$(curl -sL "https://document-parser-api.lateral.io/?url=$URL_ENCODED&subscription-key=1ce62f323290e0eea861d171bb32a001")" + echo -e "Title: $(echo "$INFO_JSON" | jq -r '.title')" + echo -e "Description:\n$(echo "$INFO_JSON" | jq -r '.description')" +} + +# Use cht.sh to get simple help outputs for all sorts of Linux things +help () { + curl -s "https://cht.sh/$@" +} + +# Output currently playing mpc song +mpc-current () { + printf '\e[?25l' + while true; do + echo + echo + echo "$(tput setaf 4)$(mpc current --wait -f "\n\nArtist: %artist%\nSong: %title%")" + done +} + +# Show resource use for specific process +sps () { + ps -eLo pid,rss,%cpu,comm --sort -rss | grep -i "%CPU\|$@" | grep -v 'grep' +} + +# Search for and play a youtube video +mpvyt () { mpv ytdl://ytsearch10:"$*" } + +# Use rsstail to view feeds easily +rss () { + case $1 in + o*) + rsstail -NrHd1plu https://build.opensuse.org/main/latest_updates.rss + ;; + p*) + rsstail -NrHd1plu https://www.phoronix.com/rss.php + ;; + t*) + twreleaselink="$(rsstail -1ln 1 -u http://review.tumbleweed.boombatower.com/feed.xml | tail -n 1 | cut -f2 -d' ')" + w3m "$twreleaselink" + ;; + esac +} + +# watch travis logs +traviswatch () { + watch -tcn 2 "curl -sL "https://api.travis-ci.org/v3/job/$1/log.txt" | tail -n 50" +} + +# decode url encoded strings using perl +urldecode () { + perl -MURI::Escape -e 'print uri_unescape($ARGV[0]);' "$@" + echo +} + +# url encode strings using perl +urlencode () { + perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$@" + echo +} + +# get weather using w3.org html2txt and google +weather () { + location="$(echo "$@" | sed 's/ /%20/g')" + curl -sL "https://www.w3.org/services/html2txt?url=https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dweather%2520$location&noinlinerefs=on&nonums=on&endrefs=on" | grep '°C\|°F' | cut -f1 -d'|' | sed 's/^[ \t]*//' | tr '�' '°' | tr -d '\n' + echo +} + +# Use wttr.in to output weather +wttr (){ + LOCATION="$1" + FLOCATION="$2" + case $1 in + 0*) + if [ -z "$FLOCATION" ]; then + FLOCATION="$location" + fi + tput reset + curl "wttr.in/$FLOCATION?0" + LOCATION="" + FLOCATION="" + ;; + 1*) + if [ -z "$FLOCATION" ]; then + FLOCATION="$location" + fi + tput reset + curl "wttr.in/$FLOCATION?1" + LOCATION="" + FLOCATION="" + ;; + 2*) + if [ -z "$FLOCATION" ]; then + FLOCATION="$location" + fi + tput reset + curl "wttr.in/$FLOCATION?2" + LOCATION="" + FLOCATION="" + ;; + *) + if [ -z "$LOCATION" ]; then + LOCATION="$location" + fi + tput reset + curl "wttr.in/$LOCATION" + LOCATION="" + esac +} + +# Decompress any archive type +x () { + if [ -f "$1" ] ; then + case "$1" in + *.tar.*|*.tar) + tar -xf "$1" + ;; + *.bz2) + bunzip2 "$1" + ;; + *.rar) + unrar x "$1" + ;; + *.gz) + gunzip "$1" + ;; + *.jar|*.zip) + unzip "$1" + ;; + *.Z) + uncompress "$1" + ;; + *.deb) + ar x "$1" + ;; + *) + echo "'$1' cannot be extracted" + ;; + esac + else + echo "'$1' is not a file" + fi +} + +# Search for youtube videos +yt () { + curl -sL "https://www.w3.org/services/html2txt?url=https%3A%2F%2Fwww.youtube.com%2Fresults%3Fsearch_query%3D"$(echo "$@" | sed "s/ /%2520/g")"&noinlinerefs=on&nonums=on&endrefs=on" | grep " http.*watch?v=" | cut -f4 -d" " | grep . +} + +#LolCatHere +alias wtf='dmesg' +alias onoz='cat /var/log/errors.log' +alias rtfm='man' + +alias :3='echo' +alias visible='echo' +alias invisible='cat' +alias moar='more' +alias tldr='less' +alias alwayz='tail -f' + +alias icanhas='mkdir' +alias gimmeh='touch' +alias donotwant='rm' +alias dowant='cp' +alias gtfo='mv' +alias nowai='chmod' + +alias hai='cd' +alias iz='ls' +alias plz='pwd' +alias ihasbucket='df -h' + +alias inur='locate' +alias iminurbase='finger' + +alias btw='nice' +alias obtw='nohup' + +alias nomz='ps aux' +alias nomnom='killall' + +alias byes='exit' +alias cya='reboot' +alias kthxbai='halt' + +alias pwned='ssh' + +alias hackzor='git init' +alias rulz='git push' +alias bringz='git pull' +alias chicken='git add' +alias oanward='git commit -m' +alias ooanward='git commit -am' +alias yolo='git commit -m "$(curl -s http://whatthecommit.com/index.txt)"' +alias letcat='git checkout' +alias violenz='git rebase' +alias ani-cli='ani-cli -q 480' + diff --git a/dot_zshrc b/dot_zshrc new file mode 100644 index 0000000..7fa9f98 --- /dev/null +++ b/dot_zshrc @@ -0,0 +1,146 @@ +# {{{ Reminders to install useful extensions +if [[ -e /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh ]]; then + . /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh +elif [[ -e /usr/share/zsh-history-substring-search/zsh-history-substring-search.zsh ]]; then + . /usr/share/zsh-history-substring-search/zsh-history-substring-search.zsh +elif [[ -x "$(whence yay)" ]]; then + echo 'yay -S zsh-history-substring-search' +elif [[ -x "$(whence zyp)" ]]; then + echo 'zyp in zsh-history-substring-search' +else + echo "zsh-history-substring-search not found" +fi +#if [[ -e /usr/share/zsh/plugins/zsh-directory-history/zsh-directory-history.zsh ]]; then + #. /usr/share/zsh/plugins/zsh-directory-history/zsh-directory-history.zsh +#elif [[ -x "$(whence yay)" ]]; then + #echo 'yay -S zsh-directory-history-git' +#fi +if [[ -e /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then + . /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh +elif [[ -e /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then + . /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh +elif [[ -x "$(whence yay)" ]]; then + echo 'yay -S zsh-autosuggestions' +elif [[ -x "$(whence zyp)" ]]; then + echo 'zyp in zsh-autosuggestions' +else + echo "zsh-autosuggestions not found" +fi +if [[ -e /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]]; then + . /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +elif [[ -e /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]]; then + . /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +elif [[ -x "$(whence yay)" ]]; then + echo 'yay -S zsh-syntax-highlighting' +elif [[ -x "$(whence apt)" ]]; then + echo 'sudo apt install zsh-syntax-highlighting' +elif [[ -x "$(whence zyp)" ]]; then + echo 'zyp in zsh-syntax-highlighting' +else + echo "zsh-syntax-highlighting not found" +fi +if [[ -x "$(whence direnv)" ]]; then + eval "$(direnv hook zsh)" +elif [[ -x "$(whence pacman)" ]]; then + echo 'pacman -S direnv' +else + echo "direnv tool not found" +fi +# }}} + +zmodload -i zsh/complist +autoload -U compaudit compinit && compinit + +unsetopt flowcontrol + +unsetopt menucomplete +setopt list_ambiguous +setopt complete_in_word +setopt glob_complete +unsetopt complete_aliases +setopt always_to_end +setopt auto_param_slash +setopt interactivecomments +setopt no_nomatch +setopt no_nullglob +setopt no_listbeep + +bindkey -M menuselect '^o' accept-and-infer-next-history +zle -C all-matches complete-word _generic +bindkey '^Xa' all-matches +zstyle ':completion:*' menu select=2 +zstyle ':completion:*' verbose yes +zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*' +zstyle ':completion:*' list-colors '' +zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} +zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01' +zstyle ':completion:*:*:*:*:processes' command "ps -u $USER -o pid,user,comm -w -w" +zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories +zstyle ':completion::complete:*' use-cache 1 +zstyle ':completion::complete:*' cache-path "$HOME/.cache/zsh/completion/" +zstyle ':completion:all-matches:*' old-matches only +zstyle ':completion:all-matches::::' completer _all_matches + +zstyle ':completion:*:*:*:users' ignored-patterns \ + adm amanda apache at avahi avahi-autoipd beaglidx bin cacti canna \ + clamav daemon dbus distcache dnsmasq dovecot fax ftp games gdm \ + gkrellmd gopher hacluster haldaemon halt hsqldb ident junkbust kdm \ + ldap lp mail mailman mailnull man messagebus mldonkey mysql nagios \ + named netdump news nfsnobody nobody nscd ntp nut nx obsrun openvpn \ + operator pcap polkitd postfix postgres privoxy pulse pvm quagga radvd \ + rpc rpcuser rpm rtkit scard shutdown squid sshd statd svn sync tftp \ + usbmux uucp vcsa wwwrun xfs '_*' +zstyle '*' single-ignored show + +source $HOME/.sh_aliases +source $HOME/.sh_paths +source $HOME/.sh_functions +source $HOME/.sh_colorize +source $HOME/.zsh_aliases + +# correct_all is stupid and whoever thought it was a good idea to set it is stupid. +setopt correct nocorrect_all + +if [ -z "$HISTFILE" ]; then + HISTFILE=$HOME/.zsh_history +fi +HISTSIZE=30000 +SAVEHIST=100000 +setopt append_history +setopt extended_history +setopt hist_expire_dups_first +setopt hist_ignore_dups +setopt hist_ignore_space +setopt hist_verify +setopt inc_append_history +setopt share_history +setopt extendedglob notify +bindkey '[3~' delete-char + +if [ -f ~/.profile ]; then + source ~/.profile +fi + +autoload -Uz vcs_info + +zstyle ':vcs_info:*' stagedstr '%F{28}●' +zstyle ':vcs_info:*' unstagedstr '%F{11}●' +zstyle ':vcs_info:*' check-for-changes true +zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{11}%r' +zstyle ':vcs_info:*' enable git svn cvs darcs hg +zstyle ':vcs_info:*' disable bzr + + +if [[ -e NEXT_TO_RUN ]] +then + cat NEXT_TO_RUN +fi +export PATH=$PATH:/sbin/ +export PATH=$PATH:/home/libkyy/.spicetify:/home/libkyy/.cargo/bin +export TERMINAL=kitty +export MPD_HOST=127.0.0.1 +export MPD_PORT=6969 + + +# Load Angular CLI autocompletion. +source <(ng completion script) diff --git a/private_dot_config/i3/autostart.conf b/private_dot_config/i3/autostart.conf new file mode 100644 index 0000000..e1f0dff --- /dev/null +++ b/private_dot_config/i3/autostart.conf @@ -0,0 +1,7 @@ +exec --no-startup-id ~/bin/autostart +exec --no-startup-id /usr/lib/gnome-settings-daemon/gnome-settings-daemon +#notifications +exec killall -q notify-osd +exec bash ~/scripts/res.sh +exec_always --no-startup-id dunst -config ~/.config/dunst/dunstrc +exec redshift -l $(curl -s "https://location.services.mozilla.com/v1/geolocate?key=geoclue" | jq -r '"\(.location.lat):\(.location.lng)"') diff --git a/private_dot_config/i3/bar b/private_dot_config/i3/bar new file mode 100644 index 0000000..e695bf8 --- /dev/null +++ b/private_dot_config/i3/bar @@ -0,0 +1,24 @@ +# font used by i3 for titles and bars +font pango:Hack 8 + +#start of bar section +bar { + position top + status_command i3blocks -c ~/.config/i3/i3blocks.conf + colors { + # bar background color + background $bg + # text color used for blocks that do not have a color specified. + statusline $yellow + # workspaces section + # border backgr. text + focused_workspace $aqua $green $black + inactive_workspace $darkgray $black $orange + active_workspace $darkgray $black $orange + urgent_workspace $red $red $bg + } +} +#end of bar section + +#start of window title bars & borders section + diff --git a/private_dot_config/i3/colors.conf b/private_dot_config/i3/colors.conf new file mode 100644 index 0000000..f76221d --- /dev/null +++ b/private_dot_config/i3/colors.conf @@ -0,0 +1,17 @@ +# set primary gruvbox colorscheme colors +set $bg #282828 +set $red #cc241d +set $green #98971a +set $yellow #d79921 +set $blue #458588 +set $purple #b16286 +set $aqua #689d68 +set $gray #a89984 +set $darkgray #1d2021 +set $white #ffffff + +# class border|backgr|text|indicator|child_border +client.focused $green $green $darkgray $purple $green +client.focused_inactive $darkgray $darkgray $yellow $purple $darkgray +client.unfocused $darkgray $darkgray $yellow $purple $darkgray +client.urgent $red $red $white $red $red diff --git a/private_dot_config/i3/config b/private_dot_config/i3/config new file mode 100644 index 0000000..a5ec4c8 --- /dev/null +++ b/private_dot_config/i3/config @@ -0,0 +1,250 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +#I split my conf so I don't lose my sanity +include colors.conf +include misc.conf +# include bar + + +set $mod Mod4 +set $alt Mod1 +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +#font pango:Source Code Pro 10 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +font pango:DejaVu Sans Mono 10 + +# The combination of xss-lock, nm-applet and pactl is a popular choice, so +# they are included here as an example. Modify as you see fit. + +# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the +# screen before suspend. Use loginctl lock-session to lock your screen. +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -i ~/Pictures/lockscreen.png + +# NetworkManager is the most popular way to manage wireless networks on Linux, +# and nm-applet is a desktop environment-independent system tray GUI for it. +exec --no-startup-id nm-applet + + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec kitty +bindsym $mod+Shift+Return exec i3-sensible-terminal + +# kill focused window +#bindsym $mod+F4 kill +bindsym $mod+shift+Q kill + +# start dmenu (a program launcher) +bindsym $mod+d exec rofi -show drun -modi drun +bindsym $alt+Tab exec rofi -show window -modi window + +# change focus +bindsym $mod+h focus left +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+h move left +bindsym $mod+Shift+j move down +bindsym $mod+Shift+k move up +bindsym $mod+Shift+l move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+y split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +#bindsym $mod+d focus child + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $Terminal "1" +set $Browsers "2" +set $Youtube "3" +set $IRC "4" +set $Game "5" +set $College "6" +set $Mail "7" +set $Steam "8" +set $Vm "9" +set $10 "10" +set $Work "11" + + +# switch to workspace +bindsym $mod+1 workspace number $Terminal +bindsym $mod+2 workspace number $Browsers +bindsym $mod+3 workspace number $Youtube +bindsym $mod+4 workspace number $IRC +bindsym $mod+5 workspace number $Game +bindsym $mod+6 workspace number $College +bindsym $mod+7 workspace number $Mail +bindsym $mod+c workspace number $College +bindsym $mod+8 workspace number $Steam +bindsym $mod+g workspace number $Game +bindsym $mod+9 workspace number $Vm +bindsym $mod+m workspace number $Mail +bindsym $mod+0 workspace number $10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $Terminal +bindsym $mod+Shift+2 move container to workspace number $Browsers +bindsym $mod+Shift+3 move container to workspace number $Youtube +bindsym $mod+Shift+4 move container to workspace number $IRC +bindsym $mod+Shift+5 move container to workspace number $Game +bindsym $mod+Shift+6 move container to workspace number $College +bindsym $mod+Shift+7 move container to workspace number $Mail +bindsym $mod+Shift+8 move container to workspace number $Steam +bindsym $mod+Shift+9 move container to workspace number $Vm +bindsym $mod+Shift+0 move container to workspace number $10 +bindsym $mod+Shift+g move container to workspace number $Game +bindsym $mod+Shift+m move container to workspace number $Mail + + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym h resize shrink width 10 px or 10 ppt + bindsym j resize grow height 10 px or 10 ppt + bindsym k resize shrink height 10 px or 10 ppt + bindsym l resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} +mode "switch"{ +# Can't decide if I want it to jump double time or not so I'm adding both +bindsym h workspace prev +bindsym l workspace next +bindsym Shift+h workspace prev;workspace prev +bindsym Shift+l workspace next;workspace next +# My finger do not like reaching for the numbers +bindsym a workspace number $Terminal +bindsym s workspace number $Browsers +bindsym d workspace number $Youtube +bindsym f workspace number $IRC +bindsym g workspace number $Game +bindsym c workspace number $College +bindsym q workspace number $Steam +bindsym v workspace number $Vm +bindsym m workspace number $Mail +bindsym w workspace number $10 +bindsym e workspace number $Work +bindsym Return mode "default" +bindsym Escape mode "default" +bindsym $mod+semicolon mode "default" +} + +bindsym $mod+r mode "resize" +bindsym $mod+semicolon mode "switch" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) + +# Only enable gaps on a workspace when there is at least one container +#smart_gaps on +smart_borders on + +# Only enable outer gaps when there is exactly one container +smart_gaps inverse_outer + + +#gaps +for_window [class="^.*"] border pixel 1 +gaps inner 1 +gaps outer 1 + +#Screenshot +#bindsym $mod+shift+s exec --no-startup-id flameshot gui +exec_always --no-startup-id flameshot + +#Actually TouchPad Tap-To-Click +#exec xinput --set-prop "SynPS/2 Synaptics TouchPad" 287 1 1 1 1 1 1 1 +#Gap Size changing +bindsym $mod+F9 gaps inner current plus 2 +bindsym $mod+F10 gaps inner current minus 2 + +#fancylock +bindsym $mod+shift+F11 exec --no-startup-id i3lock -i ~/Pictures/lockscreen.png + +#bindsym $mod+shift+s ~/scripts/screenshot.sh +bindsym $mod+shift+s exec flameshot gui + + + + + + + + +#This Is night colors +exec redshift + +include window_rules.conf +include autostart.conf diff --git a/private_dot_config/i3/config.save b/private_dot_config/i3/config.save new file mode 100644 index 0000000..b25b05e --- /dev/null +++ b/private_dot_config/i3/config.save @@ -0,0 +1,182 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +set $mod Mod4 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font pango:monospace 8 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +#font pango:DejaVu Sans Mono 8 + +# The combination of xss-lock, nm-applet and pactl is a popular choice, so +# they are included here as an example. Modify as you see fit. + +# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the +# screen before suspend. Use loginctl lock-session to lock your screen. +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork + +# NetworkManager is the most popular way to manage wireless networks on Linux, +# and nm-applet is a desktop environment-independent system tray GUI for it. +exec --no-startup-id nm-applet + +# Use pactl to adjust volume in PulseAudio. +set $refresh_i3status killall -SIGUSR1 i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec i3-sensible-terminal + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +bindsym $mod+d exec --no-startup-id dmenu_run +# A more modern dmenu replacement is rofi: +# bindcode $mod+40 exec rofi -modi drun,run -show drun +# There also is i3-dmenu-desktop which only displays applications shipping a +# .desktop file. It is a wrapper around dmenu, so you need that installed. +bindsym $mod+d exec --no-startup-id i3-dmenu-desktop + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+semicolon move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +#bindsym $mod+d focus child + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# switch to workspace +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym semicolon resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + status_command i3status +} diff --git a/private_dot_config/i3/config.save.1 b/private_dot_config/i3/config.save.1 new file mode 100644 index 0000000..06e81cd --- /dev/null +++ b/private_dot_config/i3/config.save.1 @@ -0,0 +1,224 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +set $mod Mod1 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +#font pango:monospace 8 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +font pango:DejaVu Sans Mono 8 + +# The combination of xss-lock, nm-applet and pactl is a popular choice, so +# they are included here as an example. Modify as you see fit. + +# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the +# screen before suspend. Use loginctl lock-session to lock your screen. +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork + +# NetworkManager is the most popular way to manage wireless networks on Linux, +# and nm-applet is a desktop environment-independent system tray GUI for it. +exec --no-startup-id nm-applet + +# Use pactl to adjust volume in PulseAudio. +# set $refresh_i3status killall -SIGUSR1 i3status +# bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status +# bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +# bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +# bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec alacritty + +# kill focused window +bindsym $mod+f4 kill + +# start dmenu (a program launcher) +bindsym $mod+d exec --no-startup-id rofi -show run +# A more modern dmenu replacement is rofi: +# bindcode $mod+40 exec rofi -modi drun,run -show drun +# There also is i3-dmenu-desktop which only displays applications shipping a +# .desktop file. It is a wrapper around dmenu, so you need that installed. +#bindsym $mod+d exec --no-startup-id i3-dmenu-desktop + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +#bindsym $mod+Down focus down +#bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+semicolon move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +#bindsym $mod+d focus child + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# switch to workspace +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym semicolon resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) + +# This is Wallpaper +exec --no-startup-id nitrogen --restore + +#This Is night shift +exec --no-startup-id redshift -O 3000K + +#Just for RGB keybOARD +#exec --no-startup-id xset led named "Scroll Lock" + +# Only enable gaps on a workspace when there is at least one container +smart_gaps on +smart_borders on +# Only enable outer gaps when there is exactly one container +#smart_gaps inverse_outer + + +# Media Controls +bindsym $mod+F3 exec --no-startup-id playerctl next +bindsym $mod+F2 exec --no-startup-id playerctl play-pause +bindsym $mod+F1 exec --no-startup-id playerctl previous + +#gaps pls work + +for_window [class="^.*"] border pixel 4 +gaps inner 14 +gaps outer 0 + +#Screenshot +bindsym F12 exec --no-startup-id flameshot gui + +#touchpad clicking :D +exec --nostartup-id "xinput set-prop 11 281 1" + +#resolution Script +exec xrandr --newmode "1368x768" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync +exec xrandr --addmode LVDS-1 1368x768 +exec xrandr --addmode VGA-1 1368x768 +exec xrandr --output LVDS-1 --mode 1368x768 +exec xrandr --output VGA-1 --mode 1368x768 + +#polybar +#exec "polybar -c /home/linly/.config/polybar/config.ini main" +exec ~/.config/polybar/launch.sh +exec "xinput set-prop "SynPS/2 Synaptics TouchPad" 292 1 1 1 1 1 1 1 " diff --git a/private_dot_config/i3/executable_i3blocks.conf b/private_dot_config/i3/executable_i3blocks.conf new file mode 100644 index 0000000..c11ae29 --- /dev/null +++ b/private_dot_config/i3/executable_i3blocks.conf @@ -0,0 +1,189 @@ +# align +# color +# command +# full_text +# instance +# interval +# label +# min_width +# name +# separator +# separator_block_width +# short_text +# signal +# urgent +# Global properties +# +# The top properties below are applied to every block, but can be overridden. +# Each block command defaults to the script name to avoid boilerplate. + +# Global properties +# +# The top properties below are applied to every block, but can be overridden. +# Each block command defaults to the script name to avoid boilerplate. +command=~/.config/i3/i3blocks/$BLOCK_NAME +separator_block_width=20 +markup=none +separator=false + +# Find your own networking interfaces by typing +# 'ip link' or 'ifconfig' in a terminal window. +# Yours are probably different than mine! + +#my ethernet interface is eno1 +#most people is eth0 +[bandwidth] +instance=enp37s0 +interval=5 +color=#fabd2f +label= ETH + +#my wifi interface is wlp2s0 +[wifi] +instance=wlp2s0 +interval=10 +color=#b8bb26 +label= WIFI +separator_block_width=5 + +[bandwidth] +instance=wlp2s0 +interval=5 +color=#b8bb26 + +######################## +separator_block_width=10 +[spacer] +separator_block_width=10 +full_text= +color=#b16286 +######################## + + +# CPU usage +# +# The script may be called with -w and -c switches to specify thresholds, +# see the script for details. +[cpu_usage] +label= CPU +interval=10 +min_width=CPU: 100.00% +color=#fb4934 + + +######################## +separator_block_width=10 +[spacer] +separator_block_width=10 +full_text= +color=#b16286 +######################## + + +# Temperature +# +# Support multiple chips, though lm-sensors. +# The script may be called with -w and -c switches to specify thresholds, +# see the script for details. +[temperature] +label= TEMP +interval=10 +color=#fabd2f + + +######################## +separator_block_width=10 +[spacer] +separator_block_width=10 +full_text= +color=#b16286 +######################## + + + + +# Memory usage +# +# The type defaults to "mem" if the instance is not specified. +[memory] +label= FREE +interval=30 +color=#b8bb26 + +######################## +separator_block_width=10 +[spacer] +separator_block_width=10 +full_text= +color=#b16286 +######################## + + + +# Disk usage +# +# The directory defaults to $HOME if the instance is not specified. +# The script may be called with a optional argument to set the alert +# (defaults to 10 for 10%). +[disk] +label= HD /home +interval=30 +color=#fb4934 +separator_block_width=10 + +# my root / partition +[disk] +label=/ +instance=/dev/sda3 +interval=30 +color=#fb4934 + + +######################## +separator_block_width=10 +[spacer] +separator_block_width=10 +full_text= +color=#b16286 +######################## + + + +# Battery indicator +# +# The battery instance defaults to 0. +#[battery] +#label=BATT +#label= BATT +#instance=1 +#interval=30 +#color=#fabd2f + + +######################## +separator_block_width=10 +[spacer] +separator_block_width=10 +full_text= +color=#b16286 +######################## + + + +[date] +command=date +interval=1 +label= +color=#b8bb26 + +#lightred #fb4934 +#red #cc241d +#green #98971a +#lightgreen #b8bb26 +#yellow #d79921 +#lightyellow #fabd2f +#blue #458588 +#purple #b16286 +#aqua #689d68 +# + diff --git a/private_dot_config/i3/i3.code-workspace b/private_dot_config/i3/i3.code-workspace new file mode 100644 index 0000000..876a149 --- /dev/null +++ b/private_dot_config/i3/i3.code-workspace @@ -0,0 +1,8 @@ +{ + "folders": [ + { + "path": "." + } + ], + "settings": {} +} \ No newline at end of file diff --git a/private_dot_config/i3/i3blocks/executable_bandwidth b/private_dot_config/i3/i3blocks/executable_bandwidth new file mode 100644 index 0000000..822aff5 --- /dev/null +++ b/private_dot_config/i3/i3blocks/executable_bandwidth @@ -0,0 +1,90 @@ +#!/bin/bash +# Copyright (C) 2012 Stefan Breunig +# Copyright (C) 2014 kaueraal +# Copyright (C) 2015 Thiago Perrotta + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Use the provided interface, otherwise the device used for the default route. +if [[ -n $BLOCK_INSTANCE ]]; then + INTERFACE=$BLOCK_INSTANCE +else + INTERFACE=$(ip route | awk '/^default/ { print $5 ; exit }') +fi + +# Issue #36 compliant. +if ! [ -e "/sys/class/net/${INTERFACE}/operstate" ] || ! [ "`cat /sys/class/net/${INTERFACE}/operstate`" = "up" ] +then + echo "" + echo "" + echo "" + exit 0 +fi + +# path to store the old results in +path="/dev/shm/$(basename $0)-${INTERFACE}" + +# grabbing data for each adapter. +read rx < "/sys/class/net/${INTERFACE}/statistics/rx_bytes" +read tx < "/sys/class/net/${INTERFACE}/statistics/tx_bytes" + +# get time +time=$(date +%s) + +# write current data if file does not exist. Do not exit, this will cause +# problems if this file is sourced instead of executed as another process. +if ! [[ -f "${path}" ]]; then + echo "${time} ${rx} ${tx}" > "${path}" + chmod 0666 "${path}" +fi + +# read previous state and update data storage +read old < "${path}" +echo "${time} ${rx} ${tx}" > "${path}" + +# parse old data and calc time passed +old=(${old//;/ }) +time_diff=$(( $time - ${old[0]} )) + +# sanity check: has a positive amount of time passed +[[ "${time_diff}" -gt 0 ]] || exit + +# calc bytes transferred, and their rate in byte/s +rx_diff=$(( $rx - ${old[1]} )) +tx_diff=$(( $tx - ${old[2]} )) +rx_rate=$(( $rx_diff / $time_diff )) +tx_rate=$(( $tx_diff / $time_diff )) + +# shift by 10 bytes to get KiB/s. If the value is larger than +# 1024^2 = 1048576, then display MiB/s instead + +# incoming +echo -n "IN " +rx_kib=$(( $rx_rate >> 10 )) +if [[ "$rx_rate" -gt 1048576 ]]; then + printf '%sM' "`echo "scale=1; $rx_kib / 1024" | bc`" +else + echo -n "${rx_kib}K" +fi + +echo -n " " + +# outgoing +echo -n "OUT " +tx_kib=$(( $tx_rate >> 10 )) +if [[ "$tx_rate" -gt 1048576 ]]; then + printf '%sM' "`echo "scale=1; $tx_kib / 1024" | bc`" +else + echo -n "${tx_kib}K" +fi diff --git a/private_dot_config/i3/i3blocks/executable_battery b/private_dot_config/i3/i3blocks/executable_battery new file mode 100644 index 0000000..20b65a9 --- /dev/null +++ b/private_dot_config/i3/i3blocks/executable_battery @@ -0,0 +1,74 @@ +#!/usr/bin/perl +# +# Copyright 2014 Pierre Mavro +# Copyright 2014 Vivien Didelot +# +# Licensed under the terms of the GNU GPL v3, or any later version. +# +# This script is meant to use with i3blocks. It parses the output of the "acpi" +# command (often provided by a package of the same name) to read the status of +# the battery, and eventually its remaining time (to full charge or discharge). +# +# The color will gradually change for a percentage below 85%, and the urgency +# (exit code 33) is set if there is less that 5% remaining. + +use strict; +use warnings; +use utf8; + +my $acpi; +my $status; +my $percent; +my $full_text; +my $short_text; +my $bat_number = $ENV{BLOCK_INSTANCE} || 0; + +# read the first line of the "acpi" command output +open (ACPI, "acpi -b | grep 'Battery $bat_number' |") or die; +$acpi = ; +close(ACPI); + +# fail on unexpected output +if ($acpi !~ /: (\w+), (\d+)%/) { + die "$acpi\n"; +} + +$status = $1; +$percent = $2; +$full_text = "$percent%"; + +if ($status eq 'Discharging') { + $full_text .= ' DIS'; +} elsif ($status eq 'Charging') { + $full_text .= ' CHR'; +} + +$short_text = $full_text; + +if ($acpi =~ /(\d\d:\d\d):/) { + $full_text .= " ($1)"; +} + +# print text +print "$full_text\n"; +print "$short_text\n"; + +# consider color and urgent flag only on discharge +if ($status eq 'Discharging') { + + if ($percent < 20) { + print ""; + } elsif ($percent < 40) { + print ""; + } elsif ($percent < 60) { + print ""; + } elsif ($percent < 85) { + print ""; + } + + if ($percent < 5) { + exit(33); + } +} + +exit(0); diff --git a/private_dot_config/i3/i3blocks/executable_cpu_usage b/private_dot_config/i3/i3blocks/executable_cpu_usage new file mode 100644 index 0000000..8c3c1f5 --- /dev/null +++ b/private_dot_config/i3/i3blocks/executable_cpu_usage @@ -0,0 +1,55 @@ +#!/usr/bin/perl +# +# Copyright 2014 Pierre Mavro +# Copyright 2014 Vivien Didelot +# Copyright 2014 Andreas Guldstrand +# +# Licensed under the terms of the GNU GPL v3, or any later version. + +use strict; +use warnings; +use utf8; +use Getopt::Long; + +# default values +my $t_warn = 50; +my $t_crit = 80; +my $cpu_usage = -1; + +sub help { + print "Usage: cpu_usage [-w ] [-c ]\n"; + print "-w : warning threshold to become yellow\n"; + print "-c : critical threshold to become red\n"; + exit 0; +} + +GetOptions("help|h" => \&help, + "w=i" => \$t_warn, + "c=i" => \$t_crit); + +# Get CPU usage +$ENV{LC_ALL}="en_US"; # if mpstat is not run under en_US locale, things may break, so make sure it is +open (MPSTAT, 'mpstat 1 1 |') or die; +while () { + if (/^.*\s+(\d+\.\d+)\s+$/) { + $cpu_usage = 100 - $1; # 100% - %idle + last; + } +} +close(MPSTAT); + +$cpu_usage eq -1 and die 'Can\'t find CPU information'; + +# Print short_text, full_text +printf "%.2f%%\n", $cpu_usage; +printf "%.2f%%\n", $cpu_usage; + +# Print color, if needed +if ($cpu_usage >= $t_crit) { + print "#FF0000\n"; + exit 33; +} elsif ($cpu_usage >= $t_warn) { + print "#FFFC00\n"; +} + +exit 0; diff --git a/private_dot_config/i3/i3blocks/executable_disk b/private_dot_config/i3/i3blocks/executable_disk new file mode 100644 index 0000000..5511eac --- /dev/null +++ b/private_dot_config/i3/i3blocks/executable_disk @@ -0,0 +1,41 @@ +#!/bin/sh +# Copyright (C) 2014 Julien Bonjean + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +DIR="${BLOCK_INSTANCE:-$HOME}" +ALERT_LOW="${1:-10}" # color will turn red under this value (default: 10%) + +df -h -P -l "$DIR" | awk -v alert_low=$ALERT_LOW ' +/\/.*/ { + # full text + print $4 + + # short text + print $4 + + use=$5 + + # no need to continue parsing + exit 0 +} + +END { + gsub(/%$/,"",use) + if (100 - use < alert_low) { + # color + print "#FF0000" + } +} +' diff --git a/private_dot_config/i3/i3blocks/executable_iface b/private_dot_config/i3/i3blocks/executable_iface new file mode 100644 index 0000000..7014979 --- /dev/null +++ b/private_dot_config/i3/i3blocks/executable_iface @@ -0,0 +1,61 @@ +#!/bin/bash +# Copyright (C) 2014 Julien Bonjean +# Copyright (C) 2014 Alexander Keller + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +#------------------------------------------------------------------------ + +# Use the provided interface, otherwise the device used for the default route. +if [[ -n $BLOCK_INSTANCE ]]; then + IF=$BLOCK_INSTANCE +else + IF=$(ip route | awk '/^default/ { print $5 ; exit }') +fi + +#------------------------------------------------------------------------ + +# As per #36 -- It is transparent: e.g. if the machine has no battery or wireless +# connection (think desktop), the corresponding block should not be displayed. +[[ ! -d /sys/class/net/${IF} ]] && exit + +#------------------------------------------------------------------------ + +if [[ "$(cat /sys/class/net/$IF/operstate)" = 'down' ]]; then + echo down # full text + echo down # short text + echo \#FF0000 # color + exit +fi + +case $1 in + -4) + AF=inet ;; + -6) + AF=inet6 ;; + *) + AF=inet6? ;; +esac + +# if no interface is found, use the first device with a global scope +IPADDR=$(ip addr show $IF | perl -n -e "/$AF ([^\/]+).* scope global/ && print \$1 and exit") + +case $BLOCK_BUTTON in + 3) echo -n "$IPADDR" | xclip -q -se c ;; +esac + +#------------------------------------------------------------------------ + +echo "$IPADDR" # full text +echo "$IPADDR" # short text diff --git a/private_dot_config/i3/i3blocks/executable_keyindicator b/private_dot_config/i3/i3blocks/executable_keyindicator new file mode 100644 index 0000000..9c21505 --- /dev/null +++ b/private_dot_config/i3/i3blocks/executable_keyindicator @@ -0,0 +1,70 @@ +#!/usr/bin/perl +# +# Copyright 2014 Marcelo Cerri +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +use strict; +use warnings; +use utf8; +use Getopt::Long; +use File::Basename; + +# Default values +my $indicator = $ENV{BLOCK_INSTANCE} || "CAPS"; +my $color_on = "#00FF00"; +my $color_off = "#222222"; + +sub help { + my $program = basename($0); + printf "Usage: %s [-c ] [-C ]\n", $program; + printf " -c : hex color to use when indicator is on\n"; + printf " -C : hex color to use when indicator is off\n"; + printf "\n"; + printf "Note: environment variable \$BLOCK_INSTANCE should be one of:\n"; + printf " CAPS, NUM (default is CAPS).\n"; + exit 0; +} + +Getopt::Long::config qw(no_ignore_case); +GetOptions("help|h" => \&help, + "c=s" => \$color_on, + "C=s" => \$color_off) or exit 1; + +# Key mapping +my %indicators = ( + CAPS => 0x00000001, + NUM => 0x00000002, +); + +# Retrieve key flags +my $mask = 0; +open(XSET, "xset -q |") or die; +while () { + if (/LED mask:\s*([0-9]+)/) { + $mask = $1; + last; + } +} +close(XSET); + +# Output +printf "%s\n", $indicator; +printf "%s\n", $indicator; +if (($indicators{$indicator} || 0) & $mask) { + printf "%s\n", $color_on; +} else { + printf "%s\n", $color_off; +} +exit 0 diff --git a/private_dot_config/i3/i3blocks/executable_load_average b/private_dot_config/i3/i3blocks/executable_load_average new file mode 100644 index 0000000..37a5c71 --- /dev/null +++ b/private_dot_config/i3/i3blocks/executable_load_average @@ -0,0 +1,34 @@ +#!/bin/sh +# Copyright (C) 2014 Julien Bonjean + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +load="$(cut -d ' ' -f1 /proc/loadavg)" +cpus="$(nproc)" + +# full text +echo "$load" + +# short text +echo "$load" + +# color if load is too high +awk -v cpus=$cpus -v cpuload=$load ' + BEGIN { + if (cpus <= cpuload) { + print "#FF0000"; + exit 33; + } + } +' diff --git a/private_dot_config/i3/i3blocks/executable_mediaplayer b/private_dot_config/i3/i3blocks/executable_mediaplayer new file mode 100644 index 0000000..b3d3ecb --- /dev/null +++ b/private_dot_config/i3/i3blocks/executable_mediaplayer @@ -0,0 +1,76 @@ +#!/usr/bin/perl +# Copyright (C) 2014 Tony Crisci + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Requires playerctl binary to be in your path (except cmus) +# See: https://github.com/acrisci/playerctl + +# Set instance=NAME in the i3blocks configuration to specify a music player +# (playerctl will attempt to connect to org.mpris.MediaPlayer2.[NAME] on your +# DBus session). + +use Env qw(BLOCK_INSTANCE); + +my @metadata = (); +my $player_arg = ""; + +if ($BLOCK_INSTANCE) { + $player_arg = "--player='$BLOCK_INSTANCE'"; +} + +if ($ENV{'BLOCK_BUTTON'} == 1) { + system("playerctl $player_arg previous"); +} elsif ($ENV{'BLOCK_BUTTON'} == 2) { + system("playerctl $player_arg play-pause"); +} elsif ($ENV{'BLOCK_BUTTON'} == 3) { + system("playerctl $player_arg next"); +} + +if ($player_arg eq '' or $player_arg =~ /cmus$/) { + # try cmus first + my @cmus = split /^/, qx(cmus-remote -Q); + if ($? == 0) { + foreach my $line (@cmus) { + my @data = split /\s/, $line; + if (shift @data eq 'tag') { + my $key = shift @data; + my $value = join ' ', @data; + + @metadata[0] = $value if $key eq 'artist'; + @metadata[1] = $value if $key eq 'title'; + } + } + + if (@metadata) { + # metadata found so we are done + print(join ' - ', @metadata); + exit 0; + } + } + + # if cmus was given, we are done + exit 0 unless $player_arg eq ''; +} + +my $artist = qx(playerctl $player_arg metadata artist); +# exit status will be nonzero when playerctl cannot find your player +exit(0) if $?; +push(@metadata, $artist) if $artist; + +my $title = qx(playerctl $player_arg metadata title); +exit(0) if $?; +push(@metadata, $title) if $title; + +print(join(" - ", @metadata)) if @metadata; diff --git a/private_dot_config/i3/i3blocks/executable_memory b/private_dot_config/i3/i3blocks/executable_memory new file mode 100644 index 0000000..e28af4e --- /dev/null +++ b/private_dot_config/i3/i3blocks/executable_memory @@ -0,0 +1,49 @@ +#!/bin/sh +# Copyright (C) 2014 Julien Bonjean + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +TYPE="${BLOCK_INSTANCE:-mem}" + +awk -v type=$TYPE ' +/^MemTotal:/ { + mem_total=$2 +} +/^MemFree:/ { + mem_free=$2 +} +/^Buffers:/ { + mem_free+=$2 +} +/^Cached:/ { + mem_free+=$2 +} +/^SwapTotal:/ { + swap_total=$2 +} +/^SwapFree:/ { + swap_free=$2 +} +END { + # full text + if (type == "swap") + printf("%.1fG\n", (swap_total-swap_free)/1024/1024) + else + printf("%.1fG\n", mem_free/1024/1024) + + # TODO: short text + + # TODO: color (if less than X%) +} +' /proc/meminfo diff --git a/private_dot_config/i3/i3blocks/executable_openvpn b/private_dot_config/i3/i3blocks/executable_openvpn new file mode 100644 index 0000000..02aaba4 --- /dev/null +++ b/private_dot_config/i3/i3blocks/executable_openvpn @@ -0,0 +1,149 @@ +#!/usr/bin/perl +# Made by Pierre Mavro/Deimosfr +# Licensed under the terms of the GNU GPL v3, or any later version. +# Version: 0.2 + +# Usage: +# 1. The configuration name of OpenVPN should be familiar for you (home,work...) +# 2. The device name in your configuration file should be fully named (tun0,tap1...not only tun or tap) +# 3. When you launch one or multiple OpenVPN connexion, be sure the PID file is written in the correct folder (ex: --writepid /run/openvpn/home.pid) + +use strict; +use warnings; +use utf8; +use Getopt::Long; + +my $openvpn_enabled='/dev/shm/openvpn_i3blocks_enabled'; +my $openvpn_disabled='/dev/shm/openvpn_i3blocks_disabled'; + +# Print output +sub print_output { + my $ref_pid_files = shift; + my @pid_files = @$ref_pid_files; + my $change=0; + + # Total pid files + my $total_pid = @pid_files; + if ($total_pid == 0) { + print "VPN: down\n"x2; + # Delete OpenVPN i3blocks temp files + if (-f $openvpn_enabled) { + unlink $openvpn_enabled or die "Can't delete $openvpn_enabled\n"; + # Colorize if VPN has just went down + print '#FF0000\n'; + } + unless (-f $openvpn_disabled) { + open(my $shm, '>', $openvpn_disabled) or die "Can't write $openvpn_disabled\n"; + } + exit(0); + } + + # Check if interface device is present + my $vpn_found=0; + my $pid; + my $cmd_line; + my @config_name; + my @config_path; + my $interface; + my $current_config_path; + my $current_config_name; + foreach (@pid_files) { + # Get current PID + $pid=0; + open(PID, '<', $_); + while() { + chomp $_; + $pid = $_; + } + close(PID); + # Check if PID has been found + if ($pid ==0) { + print "Can't get PID $_: $!\n"; + } + + # Check if PID is still alive + $cmd_line='/proc/'.$pid.'/cmdline'; + if (-f $cmd_line) { + # Get config name + open(CMD_LINE, '<', $cmd_line); + while() { + chomp $_; + if ($_ =~ /--config\s*(.*\.conf)/) { + # Get interface from config file + $current_config_path = $1; + # Remove unwanted escape chars + $current_config_path =~ s/\x{00}//g; + $interface = 'null'; + # Get configuration name + if ($current_config_path =~ /(\w+).conf/) { + $current_config_name=$1; + } else { + $current_config_name='unknow'; + } + # Get OpenVPN interface device name + open(CONFIG, '<', $current_config_path) or die "Can't read config file '$current_config_path': $!\n"; + while() { + chomp $_; + if ($_ =~ /dev\s+(\w+)/) { + $interface=$1; + last; + } + } + close(CONFIG); + # check if interface exist + unless ($interface eq 'null') { + if (-d "/sys/class/net/$interface") { + push @config_name, $current_config_name; + $vpn_found=1; + # Write enabled file + unless (-f $openvpn_enabled) { + open(my $shm, '>', $openvpn_enabled) or die "Can't write $openvpn_enabled\n"; + $change=1; + } + } + } + } + } + close(CMD_LINE); + } + } + + # Check if PID found + my $names; + my $short_status; + if ($vpn_found == 1) { + $names = join('/', @config_name); + $short_status='up'; + } else { + $short_status='down'; + $names = $short_status; + } + + print "VPN: $names\n"; + print "VPN: $short_status\n"; + + # Print color if there were changes + print "#00FF00\n" if ($change == 1); + + exit(0); +} + +sub check_opts { + # Vars + my @pid_file=glob '/run/openvpn/*.pid'; + + # Set options + GetOptions( "help|h" => \&help, + "p=s" => \@pid_file); + + print_output(\@pid_file); +} + +sub help { + print "Usage: openvpn [-d pid folder files]\n"; + print "-d : pid folder files (default /run/openvpn/*.pid)\n"; + print "Note: devices in configuration file should be named with their number (ex: tun0, tap1)\n"; + exit(1); +} + +&check_opts; diff --git a/private_dot_config/i3/i3blocks/executable_temperature b/private_dot_config/i3/i3blocks/executable_temperature new file mode 100644 index 0000000..ad745c3 --- /dev/null +++ b/private_dot_config/i3/i3blocks/executable_temperature @@ -0,0 +1,69 @@ +#!/usr/bin/perl +# Copyright 2014 Pierre Mavro +# Copyright 2014 Vivien Didelot +# Copyright 2014 Andreas Guldstrand +# Copyright 2014 Benjamin Chretien + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +use strict; +use warnings; +use utf8; +use Getopt::Long; + +binmode(STDOUT, ":utf8"); + +# default values +my $t_warn = 70; +my $t_crit = 90; +my $chip = ""; +my $temperature = -9999; + +sub help { + print "Usage: temperature [-w ] [-c ] [--chip ]\n"; + print "-w : warning threshold to become yellow\n"; + print "-c : critical threshold to become red\n"; + print "--chip : sensor chip\n"; + exit 0; +} + +GetOptions("help|h" => \&help, + "w=i" => \$t_warn, + "c=i" => \$t_crit, + "chip=s" => \$chip); + +# Get chip temperature +open (SENSORS, "sensors -u $chip |") or die; +while () { + if (/^\s+temp1_input:\s+[\+]*([\-]*\d+\.\d)/) { + $temperature = $1; + last; + } +} +close(SENSORS); + +$temperature eq -9999 and die 'Cannot find temperature'; + +# Print short_text, full_text +print "$temperature°C\n" x2; + +# Print color, if needed +if ($temperature >= $t_crit) { + print "#FF0000\n"; + exit 33; +} elsif ($temperature >= $t_warn) { + print "#FFFC00\n"; +} + +exit 0; diff --git a/private_dot_config/i3/i3blocks/executable_volume b/private_dot_config/i3/i3blocks/executable_volume new file mode 100644 index 0000000..a55db88 --- /dev/null +++ b/private_dot_config/i3/i3blocks/executable_volume @@ -0,0 +1,70 @@ +#!/bin/bash +# Copyright (C) 2014 Julien Bonjean +# Copyright (C) 2014 Alexander Keller + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +#------------------------------------------------------------------------ + +# The second parameter overrides the mixer selection +# For PulseAudio users, use "pulse" +# For Jack/Jack2 users, use "jackplug" +# For ALSA users, you may use "default" for your primary card +# or you may use hw:# where # is the number of the card desired +MIXER="default" +[ -n "$(lsmod | grep pulse)" ] && MIXER="pulse" +[ -n "$(lsmod | grep jack)" ] && MIXER="jackplug" +MIXER="${2:-$MIXER}" + +# The instance option sets the control to report and configure +# This defaults to the first control of your selected mixer +# For a list of the available, use `amixer -D $Your_Mixer scontrols` +SCONTROL="${BLOCK_INSTANCE:-$(amixer -D $MIXER scontrols | + sed -n "s/Simple mixer control '\([A-Za-z ]*\)',0/\1/p" | + head -n1 + )}" + +# The first parameter sets the step to change the volume by (and units to display) +# This may be in in % or dB (eg. 5% or 3dB) +STEP="${1:-5%}" + +#------------------------------------------------------------------------ + +capability() { # Return "Capture" if the device is a capture device + amixer -D $MIXER get $SCONTROL | + sed -n "s/ Capabilities:.*cvolume.*/Capture/p" +} + +volume() { + amixer -D $MIXER get $SCONTROL $(capability) +} + +format() { + perl_filter='if (/.*\[(\d+%)\] (\[(-?\d+.\d+dB)\] )?\[(on|off)\]/)' + perl_filter+='{CORE::say $4 eq "off" ? "MUTE" : "' + # If dB was selected, print that instead + perl_filter+=$([[ $STEP = *dB ]] && echo '$3' || echo '$1') + perl_filter+='"; exit}' + perl -ne "$perl_filter" +} + +#------------------------------------------------------------------------ + +case $BLOCK_BUTTON in + 3) amixer -q -D $MIXER sset $SCONTROL $(capability) toggle ;; # right click, mute/unmute + 4) amixer -q -D $MIXER sset $SCONTROL $(capability) ${STEP}+ unmute ;; # scroll up, increase + 5) amixer -q -D $MIXER sset $SCONTROL $(capability) ${STEP}- unmute ;; # scroll down, decrease +esac + +volume | format diff --git a/private_dot_config/i3/i3blocks/executable_wifi b/private_dot_config/i3/i3blocks/executable_wifi new file mode 100644 index 0000000..1d2ae1d --- /dev/null +++ b/private_dot_config/i3/i3blocks/executable_wifi @@ -0,0 +1,46 @@ +#!/bin/bash +# Copyright (C) 2014 Alexander Keller + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +#------------------------------------------------------------------------ + +INTERFACE="${BLOCK_INSTANCE:-wlan0}" + +#------------------------------------------------------------------------ + +# As per #36 -- It is transparent: e.g. if the machine has no battery or wireless +# connection (think desktop), the corresponding block should not be displayed. +[[ ! -d /sys/class/net/${INTERFACE}/wireless ]] || + [[ "$(cat /sys/class/net/$INTERFACE/operstate)" = 'down' ]] && exit + +#------------------------------------------------------------------------ + +QUALITY=$(grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }') + +#------------------------------------------------------------------------ + +echo $QUALITY% # full text +echo $QUALITY% # short text + +# color +if [[ $QUALITY -ge 80 ]]; then + echo "" +elif [[ $QUALITY -lt 80 ]]; then + echo "" +elif [[ $QUALITY -lt 60 ]]; then + echo "" +elif [[ $QUALITY -lt 40 ]]; then + echo "" +fi diff --git a/private_dot_config/i3/i3status/config b/private_dot_config/i3/i3status/config new file mode 100644 index 0000000..e7a6022 --- /dev/null +++ b/private_dot_config/i3/i3status/config @@ -0,0 +1,64 @@ +# i3status configuration file. +# see "man i3status" for documentation. + +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! + +general { + colors = true + interval = 5 +} + +order += "wireless _first_" +order += "ethernet _first_" +order += "ipv6" +order += "battery all" +order += "disk /" +order += "disk /home" +order += "load" +order += "memory" +order += "tztime local" + +wireless _first_ { + format_up = "W: (%quality at %essid) %ip" + format_down = "W: down" +} + +ethernet _first_ { + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +battery all { + format = "%status %percentage %remaining" + format_down = "" +} + +disk "/" { + format = "/:%avail" +} + +disk "/home" { + format = "h:%avail" +} + +load { + format = "%1min" +} + +cpu_temperature 0 { + format = "C0: %degrees°C" + max_threshold = 75 +} + +memory { + format = "%used | %available" + threshold_degraded = "1G" + format_degraded = "MEMORY < %available" +} + +tztime local { + format = "%Y-%m-%d %H:%M:%S" +} diff --git a/private_dot_config/i3/misc.conf b/private_dot_config/i3/misc.conf new file mode 100644 index 0000000..b3a2130 --- /dev/null +++ b/private_dot_config/i3/misc.conf @@ -0,0 +1,72 @@ +#The best hot key ever +bindsym ctrl+$mod+v exec firefox https://www.youtube.com/watch?v=dQw4w9WgXcQ + +#disable mouse binds +#bindsym $mod+shift+a exec ~/scripts/mouse.sh -0.5 0 +#bindsym $mod+shift+b exec ~/scripts/mouse.sh -0.5 1 + +# This is Wallpaper +exec_always --no-startup-id nitrogen --restore + +#This Is night colors +#exec redshift + +#Just for RGB keybOARD +#exec --no-startup-id xset led named "Scroll Lock" + +# Media Controls +bindsym $mod+F3 exec --no-startup-id playerctl next +bindsym $mod+F2 exec --no-startup-id playerctl play-pause +bindsym $mod+F1 exec --no-startup-id playerctl previous + +#polybar +exec_always ~/.config/polybar/launch.sh --blocks + +#bar { +# status_command i3status +# tray_output primary +# } + +#picom +# exec_always picom + +#Turns caps lock to an extra escape +exec_always --no-startup-id xmodmap -e "clear lock" +exec_always --no-startup-id xmodmap -e "keysym Caps_Lock = Escape" + +#Resolution and Mouse sense scripts +#exec_always ~/scripts/res.sh +exec ~/scripts/mouse.sh -0.5 1 + +# move focused workspace between monitors +bindsym $mod+Ctrl+Right layout toggle split, move workspace to output right +bindsym $mod+Ctrl+l layout toggle split, move workspace to output right +bindsym $mod+Ctrl+Left layout toggle split, move workspace to output left +bindsym $mod+Ctrl+h layout toggle split, move workspace to output left + +# Compose key +exec setxkbmap -option "compose:ralt" + +#Useful thing to switch back when you press same switcher key +workspace_auto_back_and_forth yes + +# dunstctl binds +bindsym Ctrl+space exec --no-startup-id dunstctl close-all +bindsym Ctrl+shift+semicolon exec --no-startup-id dunstctl history-pop + + +#wacom tablet thingss +exec --no-startup-id xsetwacom set 'Wacom One by Wacom M Pen stylus' MaptoOutput HEAD-0 +exec --no-startup-id xinput --set-prop 'Wacom One by Wacom M Pen stylus' 'Wacom Rotation' 3 + + +# Useful for laptops +# media keys +bindsym XF86AudioMute exec --no-startup-id "pactl set-sink-mute @DEFAULT_SINK@ toggle" +bindsym XF86LowerAudio exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ -5% && paplay /usr/share/sounds/freedesktop/stereo/bell.oga" +bindsym XF86RaiseAudio exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ +5% && paplay /usr/share/sounds/freedesktop/stereo/bell.oga" +bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ -5% && paplay /usr/share/sounds/freedesktop/stereo/bell.oga" +bindsym XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ +5% && paplay /usr/share/sounds/freedesktop/stereo/bell.oga" +#adjust this according to how many mics you got +#bindsym XF86AduioMicMute exec --no-startup-id "pactl set-source-mute 0 toggle" +bindsym ctrl+Shift+m exec --no-startup-id "pactl set-source-mute 0 toggle" diff --git a/private_dot_config/i3/window_rules.conf b/private_dot_config/i3/window_rules.conf new file mode 100644 index 0000000..13c5590 --- /dev/null +++ b/private_dot_config/i3/window_rules.conf @@ -0,0 +1,115 @@ + +#Workspaces to monitors +workspace $Terminal output DP-0 primary HDMI-0 DP-3 DVI-D-0 DVI-I-1 +workspace $Browsers output HDMI-0 DP-3 DVI-D-0 DVI-I-1 primary DP-0 +workspace $Terminal output primary HDMI-0 DP-3 DVI-D-0 DVI-I-1 +workspace $Youtube output primary HDMI-0 DP-3 DVI-D-0 DVI-I-1 DP-0 +workspace $Generic output primary DP-0 HDMI-0 DP-3 DVI-D-0 DVI-I-1 +workspace $IRC output HDMI-0 DP-3 DVI-D-0 DVI-I-1 primary DP-0 +workspace $College output DP-0 primary HDMI-0 DP-3 DVI-D-0 DVI-I-1 +workspace $Steam output HDMI-0 DP-3 DVI-D-0 DVI-I-1 primary DP-0 +workspace $Game output primary DP-0 HDMI-0 DP-3 DVI-D-0 DVI-I-1 +workspace $Mail output HDMI-0 DP-3 DVI-D-0 DVI-I-1 primary DP-0 +workspace $Vm output primary DP-0 HDMI-0 DP-3 DVI-D-0 DVI-I-1 +workspace $10 output HDMI-0 DP-3 DVI-D-0 DVI-I-1 primary DP-0 +workspace $Work output primary DP-0 HDMI-0 DP-3 DVI-D-0 DVI-I-1 + +#Window Rules + + +#Terminal +assign [class = "kitty"] $Terminal +assign [class = "jetbrains-idea"] $Terminal +assign [class = "jetbrains-studio"] $Terminal +assign [class = "Code"] $Terminal +assign [class = "qutebrowser"] $Terminal + + +#Browsers +assign [class = "firefox"] $Browsers +assign [class = "Microsoft-edge"] $Browsers +assign [class = "Nemo"] $Browsers +assign [class = "Google-chrome"] $Browsers +assign [class ="Pavucontrol"] $Browsers + + + +#Youtube/Vidyas +assign [class = "FreeTube"] $Youtube +assign [class = "mpv"] $Youtube + + +#Ircs +assign [class = "discord"] $IRC +assign [class = "Telegram"] $IRC + +#College +assign [class = "obsidian"] $College +assign [class = "^.*libreoffice"] $College +#assign [class = "wpsoffice"] $College #Gave up on WPS LOL +assign [class = "Trello Desktop"] $College + +#10 +assign [class = "Zathura"] $10 + +#Work +assign [class = "krita"] $Work +assign [class = "Scenarist"] $Work +assign [class = "Inkscape"] $Work + +#Game Launchers +assign [class = "heroic"] $Steam +assign [class = "Steam"] $Steam +assign [class = "Lutris"] $Steam +assign [class = "r2modman"] $Steam +assign [class = "MultiMC"] $Steam +assign [class = "Artix Game Launcher"] $Steam +assign [class = "battle.net.exe"] $Steam + +#Games +assign [class = "csgo_linux64"] $Game +assign [class = "steam_proton"] $Game +assign [class = "steam_app^.*"] $Game +assign [class = "^.*Minecraft"] $Game +assign [class = "^.*steam"] $Game +assign [class = "overwatch.exe"] $Game + +#Mail +assign [class = "Evolution"] $Mail +assign [class = "thunderbird"] $Mail + + +assign [class = "Virt-manager"] $Vm + + +#More Rules +#Classes +for_window [class = "Spotify"] move to workspace $IRC +for_window [class = "AppRun.wrapped"] floating enabled +for_window [class = "Soundux"] floating enabled +for_window [class = "Nemo"] floating enabled +for_window [class = "Thunar"] floating enabled +for_window [class = "Pavucontrol"] floating enabled +for_window [class = "GUI"] floating enabled +for_window [class = "NoiseTorch"] floating enabled +for_window [class = "flameshot"] floating enabled + +#Workspaces + +for_window [workspace = $Browsers] layout split horizontal +#for_window [workspace = $Steam] floating enabled +for_window [workspace = $Steam] layout split horizontal +#for_window [workspace = $Youtube] floating enabled +for_window [workspace = $IRC] layout split horizontal +# for_window [workspace = $Terminal] layout tabbed +for_window [class = ".*"] title_format "%class" +for_window [class = "XTerm"] floating enabled +for_window [class = "org.opensuse.YaST"] floating enabled + +#Names +for_window [title = "ani-cli"] move to workspace $Youtube +#for_window [title = "manga-cli"] move to workspace $Youtube + +# Roles (Thanks greyfade :D) +for_window [window_role="pop-up"] floating enable +for_window [window_role="task_dialog"] floating enable diff --git a/private_dot_config/kitty/kitty.conf b/private_dot_config/kitty/kitty.conf new file mode 100644 index 0000000..f14e5e1 --- /dev/null +++ b/private_dot_config/kitty/kitty.conf @@ -0,0 +1,3 @@ + +include misc.conf +include themes/gruvbox_dark.conf diff --git a/private_dot_config/kitty/misc.conf b/private_dot_config/kitty/misc.conf new file mode 100644 index 0000000..497f086 --- /dev/null +++ b/private_dot_config/kitty/misc.conf @@ -0,0 +1,2 @@ +font_family Hack Nerd Font +font_size 11.0 diff --git a/private_dot_config/kitty/themes/gruvbox_dark.conf b/private_dot_config/kitty/themes/gruvbox_dark.conf new file mode 100644 index 0000000..369da8d --- /dev/null +++ b/private_dot_config/kitty/themes/gruvbox_dark.conf @@ -0,0 +1,49 @@ +# gruvbox dark by morhetz, https://github.com/morhetz/gruvbox +# This work is licensed under the terms of the MIT license. +# For a copy, see https://opensource.org/licenses/MIT. + +background #282828 +foreground #ebdbb2 + +cursor #928374 + +selection_foreground #928374 +selection_background #3c3836 + +color0 #282828 +color8 #928374 + +# red +color1 #cc241d +# light red +color9 #fb4934 + +# green +color2 #98971a +# light green +color10 #b8bb26 + +# yellow +color3 #d79921 +# light yellow +color11 #fabd2d + +# blue +color4 #458588 +# light blue +color12 #83a598 + +# magenta +color5 #b16286 +# light magenta +color13 #d3869b + +# cyan +color6 #689d6a +# lighy cyan +color14 #8ec07c + +# light gray +color7 #a89984 +# dark gray +color15 #928374 diff --git a/private_dot_config/kitty/themes/gruvbox_light.conf b/private_dot_config/kitty/themes/gruvbox_light.conf new file mode 100644 index 0000000..6d8b89b --- /dev/null +++ b/private_dot_config/kitty/themes/gruvbox_light.conf @@ -0,0 +1,49 @@ +# gruvbox light by morhetz, https://github.com/morhetz/gruvbox +# This work is licensed under the terms of the MIT license. +# For a copy, see https://opensource.org/licenses/MIT. + +background #fbf1c7 +foreground #3c3836 + +cursor #928374 + +selection_foreground #3c3836 +selection_background #928374 + +color0 #fbf1c7 +color8 #282828 + +# red +color1 #cc241d +# light red +color9 #9d0006 + +# green +color2 #98971a +# light green +color10 #79740e + +# yellow +color3 #d79921 +# light yellow +color11 #b57614 + +# blue +color4 #458588 +# light blue +color12 #076678 + +# magenta +color5 #b16286 +# light magenta +color13 #8f3f71 + +# cyan +color6 #689d6a +# lighy cyan +color14 #427b58 + +# light gray +color7 #7c6f64 +# dark gray +color15 #928374 diff --git a/private_dot_config/nvim/LICENSE b/private_dot_config/nvim/LICENSE new file mode 100644 index 0000000..f288702 --- /dev/null +++ b/private_dot_config/nvim/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/private_dot_config/nvim/dot_git/COMMIT_EDITMSG b/private_dot_config/nvim/dot_git/COMMIT_EDITMSG new file mode 100644 index 0000000..a9a5aec --- /dev/null +++ b/private_dot_config/nvim/dot_git/COMMIT_EDITMSG @@ -0,0 +1 @@ +tmp diff --git a/private_dot_config/nvim/dot_git/FETCH_HEAD b/private_dot_config/nvim/dot_git/FETCH_HEAD new file mode 100644 index 0000000..aa945be --- /dev/null +++ b/private_dot_config/nvim/dot_git/FETCH_HEAD @@ -0,0 +1 @@ +0611d5c5283f2b0af227c57209678eca7dc380dc branch 'main' of https://github.com/NvChad/NvChad diff --git a/private_dot_config/nvim/dot_git/HEAD b/private_dot_config/nvim/dot_git/HEAD new file mode 100644 index 0000000..b870d82 --- /dev/null +++ b/private_dot_config/nvim/dot_git/HEAD @@ -0,0 +1 @@ +ref: refs/heads/main diff --git a/private_dot_config/nvim/dot_git/ORIG_HEAD b/private_dot_config/nvim/dot_git/ORIG_HEAD new file mode 100644 index 0000000..41b4c2b --- /dev/null +++ b/private_dot_config/nvim/dot_git/ORIG_HEAD @@ -0,0 +1 @@ +8a18f89b03b0aaf013c8832024687f6e981e7576 diff --git a/private_dot_config/nvim/dot_git/branches/.keep b/private_dot_config/nvim/dot_git/branches/.keep new file mode 100644 index 0000000..e69de29 diff --git a/private_dot_config/nvim/dot_git/config b/private_dot_config/nvim/dot_git/config new file mode 100644 index 0000000..d494342 --- /dev/null +++ b/private_dot_config/nvim/dot_git/config @@ -0,0 +1,11 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = false + logallrefupdates = true +[remote "origin"] + url = https://github.com/NvChad/NvChad + fetch = +refs/heads/main:refs/remotes/origin/main +[branch "main"] + remote = https://github.com/NvChad/NvChad + merge = refs/heads/main diff --git a/private_dot_config/nvim/dot_git/description b/private_dot_config/nvim/dot_git/description new file mode 100644 index 0000000..498b267 --- /dev/null +++ b/private_dot_config/nvim/dot_git/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/private_dot_config/nvim/dot_git/hooks/applypatch-msg.sample b/private_dot_config/nvim/dot_git/hooks/applypatch-msg.sample new file mode 100644 index 0000000..a5d7b84 --- /dev/null +++ b/private_dot_config/nvim/dot_git/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +commitmsg="$(git rev-parse --git-path hooks/commit-msg)" +test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} +: diff --git a/private_dot_config/nvim/dot_git/hooks/commit-msg.sample b/private_dot_config/nvim/dot_git/hooks/commit-msg.sample new file mode 100644 index 0000000..b58d118 --- /dev/null +++ b/private_dot_config/nvim/dot_git/hooks/commit-msg.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to check the commit log message. +# Called by "git commit" with one argument, the name of the file +# that has the commit message. The hook should exit with non-zero +# status after issuing an appropriate message if it wants to stop the +# commit. The hook is allowed to edit the commit message file. +# +# To enable this hook, rename this file to "commit-msg". + +# Uncomment the below to add a Signed-off-by line to the message. +# Doing this in a hook is a bad idea in general, but the prepare-commit-msg +# hook is more suited to it. +# +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} diff --git a/private_dot_config/nvim/dot_git/hooks/fsmonitor-watchman.sample b/private_dot_config/nvim/dot_git/hooks/fsmonitor-watchman.sample new file mode 100644 index 0000000..23e856f --- /dev/null +++ b/private_dot_config/nvim/dot_git/hooks/fsmonitor-watchman.sample @@ -0,0 +1,174 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use IPC::Open2; + +# An example hook script to integrate Watchman +# (https://facebook.github.io/watchman/) with git to speed up detecting +# new and modified files. +# +# The hook is passed a version (currently 2) and last update token +# formatted as a string and outputs to stdout a new update token and +# all files that have been modified since the update token. Paths must +# be relative to the root of the working tree and separated by a single NUL. +# +# To enable this hook, rename this file to "query-watchman" and set +# 'git config core.fsmonitor .git/hooks/query-watchman' +# +my ($version, $last_update_token) = @ARGV; + +# Uncomment for debugging +# print STDERR "$0 $version $last_update_token\n"; + +# Check the hook interface version +if ($version ne 2) { + die "Unsupported query-fsmonitor hook version '$version'.\n" . + "Falling back to scanning...\n"; +} + +my $git_work_tree = get_working_dir(); + +my $retry = 1; + +my $json_pkg; +eval { + require JSON::XS; + $json_pkg = "JSON::XS"; + 1; +} or do { + require JSON::PP; + $json_pkg = "JSON::PP"; +}; + +launch_watchman(); + +sub launch_watchman { + my $o = watchman_query(); + if (is_work_tree_watched($o)) { + output_result($o->{clock}, @{$o->{files}}); + } +} + +sub output_result { + my ($clockid, @files) = @_; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # binmode $fh, ":utf8"; + # print $fh "$clockid\n@files\n"; + # close $fh; + + binmode STDOUT, ":utf8"; + print $clockid; + print "\0"; + local $, = "\0"; + print @files; +} + +sub watchman_clock { + my $response = qx/watchman clock "$git_work_tree"/; + die "Failed to get clock id on '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + + return $json_pkg->new->utf8->decode($response); +} + +sub watchman_query { + my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty') + or die "open2() failed: $!\n" . + "Falling back to scanning...\n"; + + # In the query expression below we're asking for names of files that + # changed since $last_update_token but not from the .git folder. + # + # To accomplish this, we're using the "since" generator to use the + # recency index to select candidate nodes and "fields" to limit the + # output to file names only. Then we're using the "expression" term to + # further constrain the results. + my $last_update_line = ""; + if (substr($last_update_token, 0, 1) eq "c") { + $last_update_token = "\"$last_update_token\""; + $last_update_line = qq[\n"since": $last_update_token,]; + } + my $query = <<" END"; + ["query", "$git_work_tree", {$last_update_line + "fields": ["name"], + "expression": ["not", ["dirname", ".git"]] + }] + END + + # Uncomment for debugging the watchman query + # open (my $fh, ">", ".git/watchman-query.json"); + # print $fh $query; + # close $fh; + + print CHLD_IN $query; + close CHLD_IN; + my $response = do {local $/; }; + + # Uncomment for debugging the watch response + # open ($fh, ">", ".git/watchman-response.json"); + # print $fh $response; + # close $fh; + + die "Watchman: command returned no output.\n" . + "Falling back to scanning...\n" if $response eq ""; + die "Watchman: command returned invalid output: $response\n" . + "Falling back to scanning...\n" unless $response =~ /^\{/; + + return $json_pkg->new->utf8->decode($response); +} + +sub is_work_tree_watched { + my ($output) = @_; + my $error = $output->{error}; + if ($retry > 0 and $error and $error =~ m/unable to resolve root .* directory (.*) is not watched/) { + $retry--; + my $response = qx/watchman watch "$git_work_tree"/; + die "Failed to make watchman watch '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + $output = $json_pkg->new->utf8->decode($response); + $error = $output->{error}; + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # close $fh; + + # Watchman will always return all files on the first query so + # return the fast "everything is dirty" flag to git and do the + # Watchman query just to get it over with now so we won't pay + # the cost in git to look up each individual file. + my $o = watchman_clock(); + $error = $output->{error}; + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + output_result($o->{clock}, ("/")); + $last_update_token = $o->{clock}; + + eval { launch_watchman() }; + return 0; + } + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + return 1; +} + +sub get_working_dir { + my $working_dir; + if ($^O =~ 'msys' || $^O =~ 'cygwin') { + $working_dir = Win32::GetCwd(); + $working_dir =~ tr/\\/\//; + } else { + require Cwd; + $working_dir = Cwd::cwd(); + } + + return $working_dir; +} diff --git a/private_dot_config/nvim/dot_git/hooks/post-update.sample b/private_dot_config/nvim/dot_git/hooks/post-update.sample new file mode 100644 index 0000000..ec17ec1 --- /dev/null +++ b/private_dot_config/nvim/dot_git/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info diff --git a/private_dot_config/nvim/dot_git/hooks/pre-applypatch.sample b/private_dot_config/nvim/dot_git/hooks/pre-applypatch.sample new file mode 100644 index 0000000..4142082 --- /dev/null +++ b/private_dot_config/nvim/dot_git/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: diff --git a/private_dot_config/nvim/dot_git/hooks/pre-commit.sample b/private_dot_config/nvim/dot_git/hooks/pre-commit.sample new file mode 100644 index 0000000..e144712 --- /dev/null +++ b/private_dot_config/nvim/dot_git/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(git hash-object -t tree /dev/null) +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --type=bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/private_dot_config/nvim/dot_git/hooks/pre-merge-commit.sample b/private_dot_config/nvim/dot_git/hooks/pre-merge-commit.sample new file mode 100644 index 0000000..399eab1 --- /dev/null +++ b/private_dot_config/nvim/dot_git/hooks/pre-merge-commit.sample @@ -0,0 +1,13 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git merge" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message to +# stderr if it wants to stop the merge commit. +# +# To enable this hook, rename this file to "pre-merge-commit". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" +: diff --git a/private_dot_config/nvim/dot_git/hooks/pre-push.sample b/private_dot_config/nvim/dot_git/hooks/pre-push.sample new file mode 100644 index 0000000..4ce688d --- /dev/null +++ b/private_dot_config/nvim/dot_git/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +zero=$(git hash-object --stdin &2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/private_dot_config/nvim/dot_git/hooks/pre-rebase.sample b/private_dot_config/nvim/dot_git/hooks/pre-rebase.sample new file mode 100644 index 0000000..6cbef5c --- /dev/null +++ b/private_dot_config/nvim/dot_git/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/private_dot_config/nvim/dot_git/hooks/pre-receive.sample b/private_dot_config/nvim/dot_git/hooks/pre-receive.sample new file mode 100644 index 0000000..a1fd29e --- /dev/null +++ b/private_dot_config/nvim/dot_git/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/private_dot_config/nvim/dot_git/hooks/prepare-commit-msg.sample b/private_dot_config/nvim/dot_git/hooks/prepare-commit-msg.sample new file mode 100644 index 0000000..10fa14c --- /dev/null +++ b/private_dot_config/nvim/dot_git/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/private_dot_config/nvim/dot_git/hooks/push-to-checkout.sample b/private_dot_config/nvim/dot_git/hooks/push-to-checkout.sample new file mode 100644 index 0000000..af5a0c0 --- /dev/null +++ b/private_dot_config/nvim/dot_git/hooks/push-to-checkout.sample @@ -0,0 +1,78 @@ +#!/bin/sh + +# An example hook script to update a checked-out tree on a git push. +# +# This hook is invoked by git-receive-pack(1) when it reacts to git +# push and updates reference(s) in its repository, and when the push +# tries to update the branch that is currently checked out and the +# receive.denyCurrentBranch configuration variable is set to +# updateInstead. +# +# By default, such a push is refused if the working tree and the index +# of the remote repository has any difference from the currently +# checked out commit; when both the working tree and the index match +# the current commit, they are updated to match the newly pushed tip +# of the branch. This hook is to be used to override the default +# behaviour; however the code below reimplements the default behaviour +# as a starting point for convenient modification. +# +# The hook receives the commit with which the tip of the current +# branch is going to be updated: +commit=$1 + +# It can exit with a non-zero status to refuse the push (when it does +# so, it must not modify the index or the working tree). +die () { + echo >&2 "$*" + exit 1 +} + +# Or it can make any necessary changes to the working tree and to the +# index to bring them to the desired state when the tip of the current +# branch is updated to the new commit, and exit with a zero status. +# +# For example, the hook can simply run git read-tree -u -m HEAD "$1" +# in order to emulate git fetch that is run in the reverse direction +# with git push, as the two-tree form of git read-tree -u -m is +# essentially the same as git switch or git checkout that switches +# branches while keeping the local changes in the working tree that do +# not interfere with the difference between the branches. + +# The below is a more-or-less exact translation to shell of the C code +# for the default behaviour for git's push-to-checkout hook defined in +# the push_to_deploy() function in builtin/receive-pack.c. +# +# Note that the hook will be executed from the repository directory, +# not from the working tree, so if you want to perform operations on +# the working tree, you will have to adapt your code accordingly, e.g. +# by adding "cd .." or using relative paths. + +if ! git update-index -q --ignore-submodules --refresh +then + die "Up-to-date check failed" +fi + +if ! git diff-files --quiet --ignore-submodules -- +then + die "Working directory has unstaged changes" +fi + +# This is a rough translation of: +# +# head_has_history() ? "HEAD" : EMPTY_TREE_SHA1_HEX +if git cat-file -e HEAD 2>/dev/null +then + head=HEAD +else + head=$(git hash-object -t tree --stdin &2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --type=bool hooks.allowunannotated) +allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) +denycreatebranch=$(git config --type=bool hooks.denycreatebranch) +allowdeletetag=$(git config --type=bool hooks.allowdeletetag) +allowmodifytag=$(git config --type=bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero=$(git hash-object --stdin &2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/private_dot_config/nvim/dot_git/index b/private_dot_config/nvim/dot_git/index new file mode 100644 index 0000000..0f8a647 Binary files /dev/null and b/private_dot_config/nvim/dot_git/index differ diff --git a/private_dot_config/nvim/dot_git/info/exclude b/private_dot_config/nvim/dot_git/info/exclude new file mode 100644 index 0000000..a5196d1 --- /dev/null +++ b/private_dot_config/nvim/dot_git/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/private_dot_config/nvim/dot_git/logs/HEAD b/private_dot_config/nvim/dot_git/logs/HEAD new file mode 100644 index 0000000..36b40e4 --- /dev/null +++ b/private_dot_config/nvim/dot_git/logs/HEAD @@ -0,0 +1,9 @@ +0000000000000000000000000000000000000000 65cb9ba5fc64d9dd9c9fc838530de08e9cb3f565 LinlyBoi 1659991260 +0200 clone: from https://github.com/NvChad/NvChad +65cb9ba5fc64d9dd9c9fc838530de08e9cb3f565 65cb9ba5fc64d9dd9c9fc838530de08e9cb3f565 LinlyBoi 1662908005 +0200 checkout: moving from main to main +65cb9ba5fc64d9dd9c9fc838530de08e9cb3f565 65cb9ba5fc64d9dd9c9fc838530de08e9cb3f565 LinlyBoi 1662908052 +0200 reset: moving to 65cb9ba5fc64d9dd9c9fc838530de08e9cb3f565 +65cb9ba5fc64d9dd9c9fc838530de08e9cb3f565 8a18f89b03b0aaf013c8832024687f6e981e7576 LinlyBoi 1662908053 +0200 pull --set-upstream https://github.com/NvChad/NvChad main --rebase: Fast-forward +8a18f89b03b0aaf013c8832024687f6e981e7576 8a18f89b03b0aaf013c8832024687f6e981e7576 LinlyBoi 1662908064 +0200 checkout: moving from main to main +8a18f89b03b0aaf013c8832024687f6e981e7576 8a18f89b03b0aaf013c8832024687f6e981e7576 LinlyBoi 1667418436 +0200 checkout: moving from main to main +8a18f89b03b0aaf013c8832024687f6e981e7576 8a18f89b03b0aaf013c8832024687f6e981e7576 LinlyBoi 1667418445 +0200 reset: moving to 8a18f89b03b0aaf013c8832024687f6e981e7576 +8a18f89b03b0aaf013c8832024687f6e981e7576 0611d5c5283f2b0af227c57209678eca7dc380dc LinlyBoi 1667418446 +0200 pull --set-upstream https://github.com/NvChad/NvChad main --rebase: Fast-forward +0611d5c5283f2b0af227c57209678eca7dc380dc 0611d5c5283f2b0af227c57209678eca7dc380dc LinlyBoi 1667678189 +0200 checkout: moving from main to main diff --git a/private_dot_config/nvim/dot_git/logs/refs/heads/main b/private_dot_config/nvim/dot_git/logs/refs/heads/main new file mode 100644 index 0000000..b77a6e1 --- /dev/null +++ b/private_dot_config/nvim/dot_git/logs/refs/heads/main @@ -0,0 +1,3 @@ +0000000000000000000000000000000000000000 65cb9ba5fc64d9dd9c9fc838530de08e9cb3f565 LinlyBoi 1659991260 +0200 clone: from https://github.com/NvChad/NvChad +65cb9ba5fc64d9dd9c9fc838530de08e9cb3f565 8a18f89b03b0aaf013c8832024687f6e981e7576 LinlyBoi 1662908053 +0200 pull --set-upstream https://github.com/NvChad/NvChad main --rebase: Fast-forward +8a18f89b03b0aaf013c8832024687f6e981e7576 0611d5c5283f2b0af227c57209678eca7dc380dc LinlyBoi 1667418446 +0200 pull --set-upstream https://github.com/NvChad/NvChad main --rebase: Fast-forward diff --git a/private_dot_config/nvim/dot_git/logs/refs/remotes/origin/HEAD b/private_dot_config/nvim/dot_git/logs/refs/remotes/origin/HEAD new file mode 100644 index 0000000..18d26d7 --- /dev/null +++ b/private_dot_config/nvim/dot_git/logs/refs/remotes/origin/HEAD @@ -0,0 +1 @@ +0000000000000000000000000000000000000000 65cb9ba5fc64d9dd9c9fc838530de08e9cb3f565 LinlyBoi 1659991260 +0200 clone: from https://github.com/NvChad/NvChad diff --git a/private_dot_config/nvim/dot_git/logs/refs/remotes/origin/main b/private_dot_config/nvim/dot_git/logs/refs/remotes/origin/main new file mode 100644 index 0000000..6fd14a9 --- /dev/null +++ b/private_dot_config/nvim/dot_git/logs/refs/remotes/origin/main @@ -0,0 +1,2 @@ +65cb9ba5fc64d9dd9c9fc838530de08e9cb3f565 8a18f89b03b0aaf013c8832024687f6e981e7576 LinlyBoi 1662908007 +0200 fetch --quiet --prune --no-tags --unshallow --no-recurse-submodules origin main: fast-forward +8a18f89b03b0aaf013c8832024687f6e981e7576 0611d5c5283f2b0af227c57209678eca7dc380dc LinlyBoi 1667418437 +0200 fetch --quiet --prune --no-tags --no-recurse-submodules origin main: fast-forward diff --git a/private_dot_config/nvim/dot_git/objects/00/readonly_be26275ecd017427840a7c01617d2fe686582c b/private_dot_config/nvim/dot_git/objects/00/readonly_be26275ecd017427840a7c01617d2fe686582c new file mode 100644 index 0000000..984e668 --- /dev/null +++ b/private_dot_config/nvim/dot_git/objects/00/readonly_be26275ecd017427840a7c01617d2fe686582c @@ -0,0 +1,2 @@ +xu]J0F}*]$Oq I2iýIJ2oA_}|p8Erܱxy#pvLwF+[摷:q h aX \ No newline at end of file diff --git a/private_dot_config/nvim/dot_git/objects/01/readonly_7508282499c499426489d281c473e2045d9030 b/private_dot_config/nvim/dot_git/objects/01/readonly_7508282499c499426489d281c473e2045d9030 new file mode 100644 index 0000000..b11386a --- /dev/null +++ b/private_dot_config/nvim/dot_git/objects/01/readonly_7508282499c499426489d281c473e2045d9030 @@ -0,0 +1 @@ +xj!E_12H|}p8n7KHJQȸV &D&$$MVGZёz+S'rh0><'`ޠ7xgT-@ 9:6xkÓ-zN \ No newline at end of file diff --git a/private_dot_config/nvim/dot_git/objects/06/readonly_11d5c5283f2b0af227c57209678eca7dc380dc b/private_dot_config/nvim/dot_git/objects/06/readonly_11d5c5283f2b0af227c57209678eca7dc380dc new file mode 100644 index 0000000..9f5ea71 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/06/readonly_11d5c5283f2b0af227c57209678eca7dc380dc differ diff --git a/private_dot_config/nvim/dot_git/objects/06/readonly_6d1b45c1cd1e1507654a8ae4c7550cd001a883 b/private_dot_config/nvim/dot_git/objects/06/readonly_6d1b45c1cd1e1507654a8ae4c7550cd001a883 new file mode 100644 index 0000000..9ceebbd Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/06/readonly_6d1b45c1cd1e1507654a8ae4c7550cd001a883 differ diff --git a/private_dot_config/nvim/dot_git/objects/07/readonly_79579164a8463a79d440ad395f681364c2ec45 b/private_dot_config/nvim/dot_git/objects/07/readonly_79579164a8463a79d440ad395f681364c2ec45 new file mode 100644 index 0000000..e8c4d27 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/07/readonly_79579164a8463a79d440ad395f681364c2ec45 differ diff --git a/private_dot_config/nvim/dot_git/objects/08/readonly_e675b356536d953b7f1ac233346368d1265c5c b/private_dot_config/nvim/dot_git/objects/08/readonly_e675b356536d953b7f1ac233346368d1265c5c new file mode 100644 index 0000000..70917ea Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/08/readonly_e675b356536d953b7f1ac233346368d1265c5c differ diff --git a/private_dot_config/nvim/dot_git/objects/0a/readonly_d43bb136b93e54a1e20361c2cf31b089d106c5 b/private_dot_config/nvim/dot_git/objects/0a/readonly_d43bb136b93e54a1e20361c2cf31b089d106c5 new file mode 100644 index 0000000..18b0028 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/0a/readonly_d43bb136b93e54a1e20361c2cf31b089d106c5 differ diff --git a/private_dot_config/nvim/dot_git/objects/0b/readonly_70b2e88b309b582a73771d2c3cb3077cd7083a b/private_dot_config/nvim/dot_git/objects/0b/readonly_70b2e88b309b582a73771d2c3cb3077cd7083a new file mode 100644 index 0000000..9fa79ed Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/0b/readonly_70b2e88b309b582a73771d2c3cb3077cd7083a differ diff --git a/private_dot_config/nvim/dot_git/objects/12/readonly_484e81f9144d6cc1978d159c4806e4727f866c b/private_dot_config/nvim/dot_git/objects/12/readonly_484e81f9144d6cc1978d159c4806e4727f866c new file mode 100644 index 0000000..98cb289 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/12/readonly_484e81f9144d6cc1978d159c4806e4727f866c differ diff --git a/private_dot_config/nvim/dot_git/objects/17/readonly_4b7c79497099dff3fe2c51092a8efde848d97b b/private_dot_config/nvim/dot_git/objects/17/readonly_4b7c79497099dff3fe2c51092a8efde848d97b new file mode 100644 index 0000000..45be043 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/17/readonly_4b7c79497099dff3fe2c51092a8efde848d97b differ diff --git a/private_dot_config/nvim/dot_git/objects/18/readonly_4a8c1781d5b8810e2bda2abec2118ddf17e1b8 b/private_dot_config/nvim/dot_git/objects/18/readonly_4a8c1781d5b8810e2bda2abec2118ddf17e1b8 new file mode 100644 index 0000000..99bca58 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/18/readonly_4a8c1781d5b8810e2bda2abec2118ddf17e1b8 differ diff --git a/private_dot_config/nvim/dot_git/objects/18/readonly_9bd8a083e65373c1163c0a337f405e62f21b4a b/private_dot_config/nvim/dot_git/objects/18/readonly_9bd8a083e65373c1163c0a337f405e62f21b4a new file mode 100644 index 0000000..16c69ce Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/18/readonly_9bd8a083e65373c1163c0a337f405e62f21b4a differ diff --git a/private_dot_config/nvim/dot_git/objects/1c/readonly_c7f829022a116f060ac7cd82193bf2f12c39f6 b/private_dot_config/nvim/dot_git/objects/1c/readonly_c7f829022a116f060ac7cd82193bf2f12c39f6 new file mode 100644 index 0000000..c8fa562 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/1c/readonly_c7f829022a116f060ac7cd82193bf2f12c39f6 differ diff --git a/private_dot_config/nvim/dot_git/objects/1f/readonly_34e72aff11342581ba8f9da8bb265b43101c43 b/private_dot_config/nvim/dot_git/objects/1f/readonly_34e72aff11342581ba8f9da8bb265b43101c43 new file mode 100644 index 0000000..559a65e Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/1f/readonly_34e72aff11342581ba8f9da8bb265b43101c43 differ diff --git a/private_dot_config/nvim/dot_git/objects/21/readonly_e9e3cb097e1084089e7954ecade8be6503d4d8 b/private_dot_config/nvim/dot_git/objects/21/readonly_e9e3cb097e1084089e7954ecade8be6503d4d8 new file mode 100644 index 0000000..b3b5afe Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/21/readonly_e9e3cb097e1084089e7954ecade8be6503d4d8 differ diff --git a/private_dot_config/nvim/dot_git/objects/27/readonly_560319cc4cf753e5a4d8713f82206d84a70d61 b/private_dot_config/nvim/dot_git/objects/27/readonly_560319cc4cf753e5a4d8713f82206d84a70d61 new file mode 100644 index 0000000..21c086f Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/27/readonly_560319cc4cf753e5a4d8713f82206d84a70d61 differ diff --git a/private_dot_config/nvim/dot_git/objects/28/readonly_db7c752ea7337d866b88d56bc6327fd53a4dfd b/private_dot_config/nvim/dot_git/objects/28/readonly_db7c752ea7337d866b88d56bc6327fd53a4dfd new file mode 100644 index 0000000..64ae300 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/28/readonly_db7c752ea7337d866b88d56bc6327fd53a4dfd differ diff --git a/private_dot_config/nvim/dot_git/objects/2c/readonly_3e7368d15a16651fdb5098c2ee5adf45eab98c b/private_dot_config/nvim/dot_git/objects/2c/readonly_3e7368d15a16651fdb5098c2ee5adf45eab98c new file mode 100644 index 0000000..d58720e Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/2c/readonly_3e7368d15a16651fdb5098c2ee5adf45eab98c differ diff --git a/private_dot_config/nvim/dot_git/objects/2c/readonly_83041ee6ff6b02ab640d690d1e0bd9a4f6c794 b/private_dot_config/nvim/dot_git/objects/2c/readonly_83041ee6ff6b02ab640d690d1e0bd9a4f6c794 new file mode 100644 index 0000000..c78a5c4 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/2c/readonly_83041ee6ff6b02ab640d690d1e0bd9a4f6c794 differ diff --git a/private_dot_config/nvim/dot_git/objects/2d/readonly_e440a4ea7e3b3f4b459074ea7e90c91c848b7b b/private_dot_config/nvim/dot_git/objects/2d/readonly_e440a4ea7e3b3f4b459074ea7e90c91c848b7b new file mode 100644 index 0000000..75b9969 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/2d/readonly_e440a4ea7e3b3f4b459074ea7e90c91c848b7b differ diff --git a/private_dot_config/nvim/dot_git/objects/2e/readonly_5aa786ef542990f2b0808bc7c3cfdfd9218f0b b/private_dot_config/nvim/dot_git/objects/2e/readonly_5aa786ef542990f2b0808bc7c3cfdfd9218f0b new file mode 100644 index 0000000..c309340 --- /dev/null +++ b/private_dot_config/nvim/dot_git/objects/2e/readonly_5aa786ef542990f2b0808bc7c3cfdfd9218f0b @@ -0,0 +1,2 @@ +x[J1E* +Q!T@RNʬVW\΅ƺ6@l}(vI2'ekU.Sje V4$RhcDT%M;-K:h0tF=qNP@mt-HS \ No newline at end of file diff --git a/private_dot_config/nvim/dot_git/objects/3f/readonly_e07c88efd607ccb64127a332d36a910f647a04 b/private_dot_config/nvim/dot_git/objects/3f/readonly_e07c88efd607ccb64127a332d36a910f647a04 new file mode 100644 index 0000000..7fb5896 --- /dev/null +++ b/private_dot_config/nvim/dot_git/objects/3f/readonly_e07c88efd607ccb64127a332d36a910f647a04 @@ -0,0 +1 @@ +xEλN0aj?W+ ^`bd=,A;PRr0D(2a&$GAcp^SgȡCP ZKAf<^1^.y[k /-`[>F^$ مT=xP(FgO&Ɖqp`i +I}:*N[;ZppYi#>|m׵OƐ$㴂gԄ"~y`S=0z4w*9~Y \r'uv6tl?yϯP \ No newline at end of file diff --git a/private_dot_config/nvim/dot_git/objects/85/readonly_15032d02a64fb00a44b04f4324866d2ddbffd4 b/private_dot_config/nvim/dot_git/objects/85/readonly_15032d02a64fb00a44b04f4324866d2ddbffd4 new file mode 100644 index 0000000..2651135 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/85/readonly_15032d02a64fb00a44b04f4324866d2ddbffd4 differ diff --git a/private_dot_config/nvim/dot_git/objects/85/readonly_9338cdc011fa667d4dd3b15f2961ca4cea90fe b/private_dot_config/nvim/dot_git/objects/85/readonly_9338cdc011fa667d4dd3b15f2961ca4cea90fe new file mode 100644 index 0000000..5551ab1 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/85/readonly_9338cdc011fa667d4dd3b15f2961ca4cea90fe differ diff --git a/private_dot_config/nvim/dot_git/objects/86/readonly_dd973f08cc1039afd0053311809adee55e094e b/private_dot_config/nvim/dot_git/objects/86/readonly_dd973f08cc1039afd0053311809adee55e094e new file mode 100644 index 0000000..c03ca79 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/86/readonly_dd973f08cc1039afd0053311809adee55e094e differ diff --git a/private_dot_config/nvim/dot_git/objects/8f/readonly_011fd0558350eaccbbd9d14c8005ad73dc6412 b/private_dot_config/nvim/dot_git/objects/8f/readonly_011fd0558350eaccbbd9d14c8005ad73dc6412 new file mode 100644 index 0000000..8b2aac4 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/8f/readonly_011fd0558350eaccbbd9d14c8005ad73dc6412 differ diff --git a/private_dot_config/nvim/dot_git/objects/8f/readonly_8eea4808d6906549f7ecb14cb2b481a0fc6556 b/private_dot_config/nvim/dot_git/objects/8f/readonly_8eea4808d6906549f7ecb14cb2b481a0fc6556 new file mode 100644 index 0000000..e73d1cb Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/8f/readonly_8eea4808d6906549f7ecb14cb2b481a0fc6556 differ diff --git a/private_dot_config/nvim/dot_git/objects/92/readonly_52d986caaf8a0cb6ffd73df46acbdc9f5aea06 b/private_dot_config/nvim/dot_git/objects/92/readonly_52d986caaf8a0cb6ffd73df46acbdc9f5aea06 new file mode 100644 index 0000000..f062a75 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/92/readonly_52d986caaf8a0cb6ffd73df46acbdc9f5aea06 differ diff --git a/private_dot_config/nvim/dot_git/objects/94/readonly_3dd920afdbd620a059b73161762cd2f8b07483 b/private_dot_config/nvim/dot_git/objects/94/readonly_3dd920afdbd620a059b73161762cd2f8b07483 new file mode 100644 index 0000000..214fe3b Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/94/readonly_3dd920afdbd620a059b73161762cd2f8b07483 differ diff --git a/private_dot_config/nvim/dot_git/objects/97/readonly_062ae15fa301e3ffc5c6fcbd638080579ca05a b/private_dot_config/nvim/dot_git/objects/97/readonly_062ae15fa301e3ffc5c6fcbd638080579ca05a new file mode 100644 index 0000000..340aad4 --- /dev/null +++ b/private_dot_config/nvim/dot_git/objects/97/readonly_062ae15fa301e3ffc5c6fcbd638080579ca05a @@ -0,0 +1,3 @@ +xEN E]oo4@[ +Č[J9S:_/qws{q=VEZΣ6]>a#EqBiB89"cie\-^8k:}+QMMnGoOUʎp}Rt6*!an ް*_h-4 A +ظV+\ ZuR!c}zŷr?YX \ No newline at end of file diff --git a/private_dot_config/nvim/dot_git/objects/9d/readonly_3370a220ab4b94134ce75f9e5a89188cec9f75 b/private_dot_config/nvim/dot_git/objects/9d/readonly_3370a220ab4b94134ce75f9e5a89188cec9f75 new file mode 100644 index 0000000..db7c863 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/9d/readonly_3370a220ab4b94134ce75f9e5a89188cec9f75 differ diff --git a/private_dot_config/nvim/dot_git/objects/9d/readonly_797b2e1ce7a1f514f708f99d04c5f304ee4ae5 b/private_dot_config/nvim/dot_git/objects/9d/readonly_797b2e1ce7a1f514f708f99d04c5f304ee4ae5 new file mode 100644 index 0000000..3c5ba8c Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/9d/readonly_797b2e1ce7a1f514f708f99d04c5f304ee4ae5 differ diff --git a/private_dot_config/nvim/dot_git/objects/9e/readonly_566b5b53651ea53b14ef535586dff399aad29d b/private_dot_config/nvim/dot_git/objects/9e/readonly_566b5b53651ea53b14ef535586dff399aad29d new file mode 100644 index 0000000..10d4e70 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/9e/readonly_566b5b53651ea53b14ef535586dff399aad29d differ diff --git a/private_dot_config/nvim/dot_git/objects/9e/readonly_ebb9198c830faccc9cfa65f1cb8143c940eeda b/private_dot_config/nvim/dot_git/objects/9e/readonly_ebb9198c830faccc9cfa65f1cb8143c940eeda new file mode 100644 index 0000000..38a5deb --- /dev/null +++ b/private_dot_config/nvim/dot_git/objects/9e/readonly_ebb9198c830faccc9cfa65f1cb8143c940eeda @@ -0,0 +1,4 @@ +xKj0) }[0WHbnCN+ + +^mÛ f"l9W& 볣d. #' >:xxAAol$luH}$sgoor +] s ;vjwvҟ id0_;mL ~+T \ No newline at end of file diff --git a/private_dot_config/nvim/dot_git/objects/a0/readonly_97cd7a0b0bb81d69cb9d1803035e0cde528073 b/private_dot_config/nvim/dot_git/objects/a0/readonly_97cd7a0b0bb81d69cb9d1803035e0cde528073 new file mode 100644 index 0000000..3bbfa12 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/a0/readonly_97cd7a0b0bb81d69cb9d1803035e0cde528073 differ diff --git a/private_dot_config/nvim/dot_git/objects/a3/readonly_b876dd4e0916304fc9760f307c739c2000d453 b/private_dot_config/nvim/dot_git/objects/a3/readonly_b876dd4e0916304fc9760f307c739c2000d453 new file mode 100644 index 0000000..298749c Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/a3/readonly_b876dd4e0916304fc9760f307c739c2000d453 differ diff --git a/private_dot_config/nvim/dot_git/objects/a9/readonly_f7327bdcdbdd5f8b0e71f5f7faff152728983e b/private_dot_config/nvim/dot_git/objects/a9/readonly_f7327bdcdbdd5f8b0e71f5f7faff152728983e new file mode 100644 index 0000000..bdecdb3 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/a9/readonly_f7327bdcdbdd5f8b0e71f5f7faff152728983e differ diff --git a/private_dot_config/nvim/dot_git/objects/ad/readonly_828f30b09fc1211c5c986fafb50febf91a0f8e b/private_dot_config/nvim/dot_git/objects/ad/readonly_828f30b09fc1211c5c986fafb50febf91a0f8e new file mode 100644 index 0000000..d508c7c Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/ad/readonly_828f30b09fc1211c5c986fafb50febf91a0f8e differ diff --git a/private_dot_config/nvim/dot_git/objects/ad/readonly_c3130e8362c7b14d22b53402fb7c0b72a60d00 b/private_dot_config/nvim/dot_git/objects/ad/readonly_c3130e8362c7b14d22b53402fb7c0b72a60d00 new file mode 100644 index 0000000..3e113c8 --- /dev/null +++ b/private_dot_config/nvim/dot_git/objects/ad/readonly_c3130e8362c7b14d22b53402fb7c0b72a60d00 @@ -0,0 +1,2 @@ +xA +0E]$&Dd:mNoe 'T$_("ĚJkj9ɽyՠZdɣo,"ESl(5c:}y5{GPs"4ȶRmj;5Íllۮt u@`#)QB[m5vLSL8'=t;L V=✕iHMCl~=P&"+5T_x-9+0g[01%4©~>#a <3gFet~1tˠX_=?x ypg!/뿾wݬ4v/l)Ąp m_qx; \ No newline at end of file diff --git a/private_dot_config/nvim/dot_git/objects/b2/readonly_4afc27b2279873e6cf8f1d1e69f1cc51848a79 b/private_dot_config/nvim/dot_git/objects/b2/readonly_4afc27b2279873e6cf8f1d1e69f1cc51848a79 new file mode 100644 index 0000000..6b3e737 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/b2/readonly_4afc27b2279873e6cf8f1d1e69f1cc51848a79 differ diff --git a/private_dot_config/nvim/dot_git/objects/b5/readonly_4d0581f292840a5d3f051d8059ea4c5152419e b/private_dot_config/nvim/dot_git/objects/b5/readonly_4d0581f292840a5d3f051d8059ea4c5152419e new file mode 100644 index 0000000..50cae0c Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/b5/readonly_4d0581f292840a5d3f051d8059ea4c5152419e differ diff --git a/private_dot_config/nvim/dot_git/objects/b7/readonly_4278bf08871ea53f1887e42e1ead6bff74144e b/private_dot_config/nvim/dot_git/objects/b7/readonly_4278bf08871ea53f1887e42e1ead6bff74144e new file mode 100644 index 0000000..d9f7329 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/b7/readonly_4278bf08871ea53f1887e42e1ead6bff74144e differ diff --git a/private_dot_config/nvim/dot_git/objects/b9/readonly_f95c2a2a73c772918279c4f0fd07ddb42ab20d b/private_dot_config/nvim/dot_git/objects/b9/readonly_f95c2a2a73c772918279c4f0fd07ddb42ab20d new file mode 100644 index 0000000..10c4c74 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/b9/readonly_f95c2a2a73c772918279c4f0fd07ddb42ab20d differ diff --git a/private_dot_config/nvim/dot_git/objects/bf/readonly_05ec6ca4a9a3fd00be499c3c2f0db608a5c5bc b/private_dot_config/nvim/dot_git/objects/bf/readonly_05ec6ca4a9a3fd00be499c3c2f0db608a5c5bc new file mode 100644 index 0000000..98589f0 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/bf/readonly_05ec6ca4a9a3fd00be499c3c2f0db608a5c5bc differ diff --git a/private_dot_config/nvim/dot_git/objects/c3/readonly_0ac7ec67025bfdd6d254741ca225b3f98a0f3a b/private_dot_config/nvim/dot_git/objects/c3/readonly_0ac7ec67025bfdd6d254741ca225b3f98a0f3a new file mode 100644 index 0000000..481e286 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/c3/readonly_0ac7ec67025bfdd6d254741ca225b3f98a0f3a differ diff --git a/private_dot_config/nvim/dot_git/objects/c7/readonly_13847ded38bb71086e4c358b1f5cba467f29d5 b/private_dot_config/nvim/dot_git/objects/c7/readonly_13847ded38bb71086e4c358b1f5cba467f29d5 new file mode 100644 index 0000000..1b24782 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/c7/readonly_13847ded38bb71086e4c358b1f5cba467f29d5 differ diff --git a/private_dot_config/nvim/dot_git/objects/cb/readonly_b82f9ad86fcd0fc20b0ab4c5c336b94088d01b b/private_dot_config/nvim/dot_git/objects/cb/readonly_b82f9ad86fcd0fc20b0ab4c5c336b94088d01b new file mode 100644 index 0000000..cecabe5 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/cb/readonly_b82f9ad86fcd0fc20b0ab4c5c336b94088d01b differ diff --git a/private_dot_config/nvim/dot_git/objects/cd/readonly_c970a9e446172298d5cf6c19542b08bddc9b1f b/private_dot_config/nvim/dot_git/objects/cd/readonly_c970a9e446172298d5cf6c19542b08bddc9b1f new file mode 100644 index 0000000..0982dfd Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/cd/readonly_c970a9e446172298d5cf6c19542b08bddc9b1f differ diff --git a/private_dot_config/nvim/dot_git/objects/cd/readonly_ee6b965681240e5d6a0d34f4bb213a7240b0d1 b/private_dot_config/nvim/dot_git/objects/cd/readonly_ee6b965681240e5d6a0d34f4bb213a7240b0d1 new file mode 100644 index 0000000..57b96a7 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/cd/readonly_ee6b965681240e5d6a0d34f4bb213a7240b0d1 differ diff --git a/private_dot_config/nvim/dot_git/objects/d2/readonly_f0fb316b03c61136118c051f8e1d9476ad4f96 b/private_dot_config/nvim/dot_git/objects/d2/readonly_f0fb316b03c61136118c051f8e1d9476ad4f96 new file mode 100644 index 0000000..d136f5a Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/d2/readonly_f0fb316b03c61136118c051f8e1d9476ad4f96 differ diff --git a/private_dot_config/nvim/dot_git/objects/d6/readonly_334d467e4bc0dc14f79ad1de88768519f2133a b/private_dot_config/nvim/dot_git/objects/d6/readonly_334d467e4bc0dc14f79ad1de88768519f2133a new file mode 100644 index 0000000..f57c0ca Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/d6/readonly_334d467e4bc0dc14f79ad1de88768519f2133a differ diff --git a/private_dot_config/nvim/dot_git/objects/d7/readonly_d298dc6fce1a117f6535d5aa8bd5c70aa2a14f b/private_dot_config/nvim/dot_git/objects/d7/readonly_d298dc6fce1a117f6535d5aa8bd5c70aa2a14f new file mode 100644 index 0000000..427b939 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/d7/readonly_d298dc6fce1a117f6535d5aa8bd5c70aa2a14f differ diff --git a/private_dot_config/nvim/dot_git/objects/dc/readonly_669313c1e3e4348c65d622734e57d7459b6f83 b/private_dot_config/nvim/dot_git/objects/dc/readonly_669313c1e3e4348c65d622734e57d7459b6f83 new file mode 100644 index 0000000..82e74c0 --- /dev/null +++ b/private_dot_config/nvim/dot_git/objects/dc/readonly_669313c1e3e4348c65d622734e57d7459b6f83 @@ -0,0 +1,2 @@ +x}Mj0 } +Y@)=C{Vg?vݕ=އb+% .n&%^"6ƚU';wp[ 7A>&.8(*>:9^86[yEmY]Pt~7gN;ױO'?@Ok)/(|z\`͕{STO~Q \ No newline at end of file diff --git a/private_dot_config/nvim/dot_git/objects/e7/readonly_effdf04eacbee43111c137b8d2eae5e71fd204 b/private_dot_config/nvim/dot_git/objects/e7/readonly_effdf04eacbee43111c137b8d2eae5e71fd204 new file mode 100644 index 0000000..714ea20 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/e7/readonly_effdf04eacbee43111c137b8d2eae5e71fd204 differ diff --git a/private_dot_config/nvim/dot_git/objects/ea/readonly_9f9a2074265a24a28b839ea608cd8375f1c4ef b/private_dot_config/nvim/dot_git/objects/ea/readonly_9f9a2074265a24a28b839ea608cd8375f1c4ef new file mode 100644 index 0000000..c625d52 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/ea/readonly_9f9a2074265a24a28b839ea608cd8375f1c4ef differ diff --git a/private_dot_config/nvim/dot_git/objects/ed/readonly_22d0f48e403cb7e60bee8a414454be61297243 b/private_dot_config/nvim/dot_git/objects/ed/readonly_22d0f48e403cb7e60bee8a414454be61297243 new file mode 100644 index 0000000..c4b30ae Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/ed/readonly_22d0f48e403cb7e60bee8a414454be61297243 differ diff --git a/private_dot_config/nvim/dot_git/objects/f5/readonly_c82e4f730013bf3ba473466a08ce7100503ac1 b/private_dot_config/nvim/dot_git/objects/f5/readonly_c82e4f730013bf3ba473466a08ce7100503ac1 new file mode 100644 index 0000000..a17abcf Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/f5/readonly_c82e4f730013bf3ba473466a08ce7100503ac1 differ diff --git a/private_dot_config/nvim/dot_git/objects/f8/readonly_3a4c22a3bb24b832b0723d4853eaf601334380 b/private_dot_config/nvim/dot_git/objects/f8/readonly_3a4c22a3bb24b832b0723d4853eaf601334380 new file mode 100644 index 0000000..aa40e46 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/f8/readonly_3a4c22a3bb24b832b0723d4853eaf601334380 differ diff --git a/private_dot_config/nvim/dot_git/objects/f8/readonly_73bd5ec84d788d631b5393a435ef2e2e23b704 b/private_dot_config/nvim/dot_git/objects/f8/readonly_73bd5ec84d788d631b5393a435ef2e2e23b704 new file mode 100644 index 0000000..320bdf6 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/f8/readonly_73bd5ec84d788d631b5393a435ef2e2e23b704 differ diff --git a/private_dot_config/nvim/dot_git/objects/fb/readonly_dc8ebc3f4d73e1a8e53a99549afe584483ebc8 b/private_dot_config/nvim/dot_git/objects/fb/readonly_dc8ebc3f4d73e1a8e53a99549afe584483ebc8 new file mode 100644 index 0000000..051251b Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/fb/readonly_dc8ebc3f4d73e1a8e53a99549afe584483ebc8 differ diff --git a/private_dot_config/nvim/dot_git/objects/info/.keep b/private_dot_config/nvim/dot_git/objects/info/.keep new file mode 100644 index 0000000..e69de29 diff --git a/private_dot_config/nvim/dot_git/objects/pack/readonly_pack-8649f5bfa8879a035da150bce39167b3cab2e3a3.idx b/private_dot_config/nvim/dot_git/objects/pack/readonly_pack-8649f5bfa8879a035da150bce39167b3cab2e3a3.idx new file mode 100644 index 0000000..cc9926a Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/pack/readonly_pack-8649f5bfa8879a035da150bce39167b3cab2e3a3.idx differ diff --git a/private_dot_config/nvim/dot_git/objects/pack/readonly_pack-8649f5bfa8879a035da150bce39167b3cab2e3a3.pack b/private_dot_config/nvim/dot_git/objects/pack/readonly_pack-8649f5bfa8879a035da150bce39167b3cab2e3a3.pack new file mode 100644 index 0000000..fd6a7b4 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/pack/readonly_pack-8649f5bfa8879a035da150bce39167b3cab2e3a3.pack differ diff --git a/private_dot_config/nvim/dot_git/objects/pack/readonly_pack-898e1f9c14b1bb6a48cba57d43edc20af5a41667.idx b/private_dot_config/nvim/dot_git/objects/pack/readonly_pack-898e1f9c14b1bb6a48cba57d43edc20af5a41667.idx new file mode 100644 index 0000000..53cbd57 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/pack/readonly_pack-898e1f9c14b1bb6a48cba57d43edc20af5a41667.idx differ diff --git a/private_dot_config/nvim/dot_git/objects/pack/readonly_pack-898e1f9c14b1bb6a48cba57d43edc20af5a41667.pack b/private_dot_config/nvim/dot_git/objects/pack/readonly_pack-898e1f9c14b1bb6a48cba57d43edc20af5a41667.pack new file mode 100644 index 0000000..4000ae0 Binary files /dev/null and b/private_dot_config/nvim/dot_git/objects/pack/readonly_pack-898e1f9c14b1bb6a48cba57d43edc20af5a41667.pack differ diff --git a/private_dot_config/nvim/dot_git/packed-refs b/private_dot_config/nvim/dot_git/packed-refs new file mode 100644 index 0000000..8b91a48 --- /dev/null +++ b/private_dot_config/nvim/dot_git/packed-refs @@ -0,0 +1,2 @@ +# pack-refs with: peeled fully-peeled sorted +65cb9ba5fc64d9dd9c9fc838530de08e9cb3f565 refs/remotes/origin/main diff --git a/private_dot_config/nvim/dot_git/refs/heads/main b/private_dot_config/nvim/dot_git/refs/heads/main new file mode 100644 index 0000000..2afe0c9 --- /dev/null +++ b/private_dot_config/nvim/dot_git/refs/heads/main @@ -0,0 +1 @@ +0611d5c5283f2b0af227c57209678eca7dc380dc diff --git a/private_dot_config/nvim/dot_git/refs/remotes/origin/HEAD b/private_dot_config/nvim/dot_git/refs/remotes/origin/HEAD new file mode 100644 index 0000000..4b0a875 --- /dev/null +++ b/private_dot_config/nvim/dot_git/refs/remotes/origin/HEAD @@ -0,0 +1 @@ +ref: refs/remotes/origin/main diff --git a/private_dot_config/nvim/dot_git/refs/remotes/origin/main b/private_dot_config/nvim/dot_git/refs/remotes/origin/main new file mode 100644 index 0000000..2afe0c9 --- /dev/null +++ b/private_dot_config/nvim/dot_git/refs/remotes/origin/main @@ -0,0 +1 @@ +0611d5c5283f2b0af227c57209678eca7dc380dc diff --git a/private_dot_config/nvim/dot_git/refs/tags/.keep b/private_dot_config/nvim/dot_git/refs/tags/.keep new file mode 100644 index 0000000..e69de29 diff --git a/private_dot_config/nvim/dot_github/CONTRIBUTING.md b/private_dot_config/nvim/dot_github/CONTRIBUTING.md new file mode 100644 index 0000000..12d436d --- /dev/null +++ b/private_dot_config/nvim/dot_github/CONTRIBUTING.md @@ -0,0 +1,161 @@ +# [CONTRIBUTING](https://nvchad.github.io/contribute) + +## NvChad install for contributors + +If you wish to contribute to NvChad, you should: +1. [create a fork on GitHub](https://docs.github.com/en/get-started/quickstart/fork-a-repo) +2. clone your fork to your machine + - For ssh: + ```shell + $ git clone git@github.com:/NvChad.git ~/.config/nvim + ``` + - For https: + ```shell + $ git clone https://github.com//NvChad.git ~/.config/nvim + ``` +3. [add a new remote repo to track](https://www.atlassian.com/git/tutorials/git-forks-and-upstreams) + - this means you can push/pull as normal to your own repo, but also easily track & update from the NvChad repo + - for ssh: + ```shell + $ git remote add upstream git@github.com:NvChad/NvChad.git + ``` + - for https: + ```shell + $ git remote add upstream https://github.com/NvChad/NvChad.git + ``` +4. any time you create a branch to do some work, use + ```shell + $ git fetch upstream && git checkout -b dev-myFEAT upstream/main + ``` +5. only use the **--rebase** flag to update your dev branch + - this means that there are no `Merge NvChad/main into devBranch` commits, which are to be avoided + ```shell + $ git pull upstream --rebase + ``` + +## Things to know before contributing + +- When making a PR (pull request), please be very descriptive about what you've done! + +- PR titles should be formatted with 'fix', 'chore' or 'feat'. ex: `feat: add new plugin` + +- PRs should follow the pull request formats where applicable + +- We are open to all PRs, but may decline some for a myriad of reasons. Though don't be discouraged! We'll still be open to discussions. + +- PR's are always welcomed however NvChad aims to be less bloated. So PR's regarding existing plugin's enhancement and creating new features with existing plugins itself ( without adding a new plugin), bug fixes and corrections are more encouraged. + +- NvChad won't keep adding more and more features (like adding new plugins most likely) as requested if they feel unneeded and aren't usable by the majority!! If you think the plugin you want to be added is very useful and many NvChaders would find it useful, then such feature's PR is welcomed! + +- But adding specific features like adding config for [wakatime](https://github.com/wakatime/vim-wakatime) etc will be added in this [chad user configs](https://github.com/NvChad/NvChad/wiki/Chad-user-configs). This lets the user select the things only they want ( adding configs from extra configs ). + +## How to remove or edit commits from your PR +> You may have been directed here to remove a commit such as a merge commit: `Merge NvChad/main into devBranch` from your PR + +> As these commands edit your git history, you may need to **force push** with `git push origin --force` + +1. Run the following: + ``` + $ git rebase -i HEAD~ + ``` +
Example +

+ + ```shell + $ git rebase -i HEAD~4 + ``` + + ```shell + pick 28b2dcb statusline add lsp status + pick dad9a39 feat: Added lsp radial progress + pick 68f72f1 add clickable btn for exiting nvim + pick b281b53 avoid using q! for quitting vim + + # Rebase 52b655b..b281b53 onto 52b655b (4 commands) + # + # Commands: + # p, pick = use commit + # r, reword = use commit, but edit the commit message + # e, edit = use commit, but stop for amending + # s, squash = use commit, but meld into previous commit + # f, fixup = like "squash", but discard this commit's log message + # x, exec = run command (the rest of the line) using shell + # b, break = stop here (continue rebase later with 'git rebase --continue') + # d, drop = remove commit + # l, label

+
+ +2. Change the `pick` commands to whatever you wish, you may wish to `d` `drop` or `e` `edit` a commit. Then save & quit this git file to run it. + +
Example +

+ + ```shell {3,4} + pick 28b2dcb statusline add lsp status + pick dad9a39 feat: Added lsp radial progress + edit 68f72f1 add clickable btn for exiting nvim + d b281b53 avoid using q! for quitting vim + + # Rebase 52b655b..b281b53 onto 52b655b (4 commands) + # + # Commands: + # p, pick = use commit + # r, reword = use commit, but edit the commit message + # e, edit = use commit, but stop for amending + # s, squash = use commit, but meld into previous commit + # f, fixup = like "squash", but discard this commit's log message + # x, exec = run command (the rest of the line) using shell + # b, break = stop here (continue rebase later with 'git rebase --continue') + # d, drop = remove commit + # l, label

+
+ +3. If you picked `drop` you are done, if you picked `edit` then edit your files, then run: + ```shell + $ git add + ``` + +4. Once you have edited & added your files, run: + ```shell + $ git rebase --continue + ``` + +5. You will likely need to push using: + ```shell + $ git push origin --force + ``` + +## Help +For help with contributing and anything else nvChad related join the [discord](https://discord.gg/VyPxsGArXc) diff --git a/private_dot_config/nvim/dot_github/FUNDING.yml b/private_dot_config/nvim/dot_github/FUNDING.yml new file mode 100644 index 0000000..02611f2 --- /dev/null +++ b/private_dot_config/nvim/dot_github/FUNDING.yml @@ -0,0 +1,3 @@ +patreon: siduck +ko_fi: siduck +custom: ["https://www.buymeacoffee.com/siduck", "https://www.paypal.com/paypalme/siduck76"] diff --git a/private_dot_config/nvim/dot_github/ISSUE_TEMPLATE/bug_report.md b/private_dot_config/nvim/dot_github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..43b4ec0 --- /dev/null +++ b/private_dot_config/nvim/dot_github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,34 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + + + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - Operating System + - Terminal + - Version of Neovim + +**Additional context** +Add any other context about the problem here. diff --git a/private_dot_config/nvim/dot_github/ISSUE_TEMPLATE/config.yml b/private_dot_config/nvim/dot_github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..3495e93 --- /dev/null +++ b/private_dot_config/nvim/dot_github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,8 @@ +blank_issues_enabled: false +contact_links: + - name: Wiki + url: https://github.com/siduck76/NvChad/wiki + about: "Walks you through how to use and Configure NvChad." + - name: Visit our gitter chat + url: https://gitter.im/neovim-dotfiles/community + about: "A place where we dicuss NvChad related stuff." diff --git a/private_dot_config/nvim/dot_github/ISSUE_TEMPLATE/feature_request.md b/private_dot_config/nvim/dot_github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..24d2f24 --- /dev/null +++ b/private_dot_config/nvim/dot_github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,23 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem was. + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. + +**Screenshot** +Maybe a screenshot of the feature diff --git a/private_dot_config/nvim/dot_github/PULL_REQUEST_TEMPLATE/feature.md b/private_dot_config/nvim/dot_github/PULL_REQUEST_TEMPLATE/feature.md new file mode 100644 index 0000000..a622846 --- /dev/null +++ b/private_dot_config/nvim/dot_github/PULL_REQUEST_TEMPLATE/feature.md @@ -0,0 +1,14 @@ + +Fixes Issue # (If it doesn't fix an issue then delete this line) + +Features Added: +- Plugin Name (Add links if possible too) + +Reasoning: +List why the feature is needed + +Speed (If applicable): +Show the impact on the speed of nvChad + +Other: +Anything else relevant goes here diff --git a/private_dot_config/nvim/dot_github/PULL_REQUEST_TEMPLATE/plugin.md b/private_dot_config/nvim/dot_github/PULL_REQUEST_TEMPLATE/plugin.md new file mode 100644 index 0000000..28ae8d3 --- /dev/null +++ b/private_dot_config/nvim/dot_github/PULL_REQUEST_TEMPLATE/plugin.md @@ -0,0 +1,16 @@ +(Make sure your title is either: 'fix', 'chore', or 'feat' then your title. ex: `fix: add new plugin`) + +Fixes Issue # (If it doesn't fix an issue then delete this line) + +Plugins Added: +- [Plugin Name](Plugin Link) +- [Plugin Name](Plugin Link) + +Reasoning: +List why the plugin(s) should be added + +Speed: +Show the impact on the speed of nvChad + +Other: +Anything else relevant goes here diff --git a/private_dot_config/nvim/dot_github/README.md b/private_dot_config/nvim/dot_github/README.md new file mode 100644 index 0000000..12484e8 --- /dev/null +++ b/private_dot_config/nvim/dot_github/README.md @@ -0,0 +1,146 @@ +

NvChad

+ +
+ Home + + Install + + Contribute + + Support + + Features +

+
+ +
+ +[![Super Linter](https://img.shields.io/github/workflow/status/NvChad/NvChad/Super-Linter/main?style=flat-square&logo=github&label=Build&color=8DBBE9)]() +License +[![Neovim Minimum Version](https://img.shields.io/badge/Neovim-0.8.0-blueviolet.svg?style=flat-square&logo=Neovim&color=90E59A&logoColor=white)](https://github.com/neovim/neovim) +[![GitHub Issues](https://img.shields.io/github/issues/NvChad/NvChad.svg?style=flat-square&label=Issues&color=d77982)](https://github.com/NvChad/NvChad/issues) +[![Discord](https://img.shields.io/discord/869557815780470834?color=738adb&label=Discord&logo=discord&logoColor=white&style=flat-square)](https://discord.gg/gADmkJb9Fb) +[![Matrix](https://img.shields.io/badge/Matrix-40aa8b.svg?style=flat-square&logo=Matrix&logoColor=white)](https://matrix.to/#/#nvchad:matrix.org) +[![Telegram](https://img.shields.io/badge/Telegram-blue.svg?style=flat-square&logo=Telegram&logoColor=white)](https://t.me/DE_WM) + +
+ +## Showcase + + + + +( Zoom in the screenshot ) + + + + +## What is it? + +- NvChad is a neovim config written in lua aiming to provide a base configuration with very beautiful UI and blazing fast startuptime (around 0.02 secs ~ 0.07 secs). We tweak UI plugins such as telescope, nvim-tree, bufferline etc well to provide an aesthetic UI experience. + +- Lazy loading is done 93% of the time meaning that plugins will not be loaded by default, they will be loaded only when required also at specific commands, events etc. This lowers the startuptime and it was like 0.07~ secs tested on an old pentium machine 1.4ghz + 4gb ram & HDD. + +- NvChad isnt a framework! Its supposed to be used as a "base" config, so users could tweak the defaults well, can also remove the things they dont like in the default config and build their config on top of it. Users can tweak the entire default config while staying in their custom config (lua/custom dir). This is the control center of the user's config and gitignored so the users can stay update to-date with NvChad's latest config (main branch) while still controlling it with their chadrc (file that controls entire custom dir) + +## Theme Showcase + +
Images (Click to expand!) + +![main themes](https://github.com/NvChad/nvchad.github.io/blob/src/static/img/screenshots/four_Themes.png) +![radium](https://github.com/NvChad/nvchad.github.io/blob/src/static/img/screenshots/radium1.png) +![radium](https://github.com/NvChad/nvchad.github.io/blob/src/static/img/screenshots/radium2.png) +![radium](https://github.com/NvChad/nvchad.github.io/blob/src/static/img/screenshots/radium3.png) + +(Note: these are just 4-5 themes, NvChad has around 27+ themes) +
+ +## UI related plugins used + +
Images (Click to expand!) + +

Nvim-tree.lua

+ +Fast file tree: + +
+ +

Telescope-nvim

+ +A fuzzy file finder, picker, sorter, previewer and much more: + +
+ +

Indent-blankline.nvim

+ +Adds indentline: + +
+ +

Our own statusline written from scratch

+ +[NvChad UI](https://github.com/NvChad/ui) + +
+
+ +

Tabufline (our own pertab bufferline)

+ +
+
+
+ +

Nvim-web-devicons

+ +Lua fork of Vim Devicons which offers more file icon customisability: + +
+ +

Nvim-treesitter

+ +## Plugins list + +- Many beautiful themes, theme toggler by [our base46 plugin](https://github.com/NvChad/base46) +- Inbuilt terminal toggling & management with [Nvterm](https://github.com/NvChad/nvterm) +- NvChad updater, hide & unhide terminal buffers with [NvChad extensions](https://github.com/NvChad/extensions) +- Lightweight & performant ui plugin with [NvChad UI](https://github.com/NvChad/ui) +- File navigation with [nvim-tree.lua](https://github.com/kyazdani42/nvim-tree.lua) +- Managing tabs, buffers with [bufferline.nvim](https://github.com/akinsho/bufferline.nvim) +- Beautiful and configurable icons with [nvim-web-devicons](https://github.com/kyazdani42/nvim-web-devicons) +- Git diffs and more with [gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim) +- NeoVim Lsp configuration with [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) and [mason.nvim](https://github.com/williamboman/mason.nvim) +- Autocompletion with [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) +- File searching, previewing image and text files and more with [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim). +- Syntax highlighting with [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) +- Autoclosing braces and html tags with [nvim-autopairs](https://github.com/windwp/nvim-autopairs) +- Indentlines with [indent-blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim) +- Useful snippets with [friendly snippets](https://github.com/rafamadriz/friendly-snippets) + [LuaSnip](https://github.com/L3MON4D3/LuaSnip). +- Popup mappings keysheet [whichkey.nvim](https://github.com/folke/which-key.nvim) + +## History + +- I (@siduck i.e creator of NvChad) in my initial days of learning to program wanted a lightweight IDE for writing code, I had a very low end system which was like 1.4ghz pentium + 4gb ram & HDD. I was into web dev stuff so many suggested me to use vscode but that thing was very heavy on my system, It took more ram than my browser! ( minimal ungoogled chromium ) so I never tried it again, sublime text was nice but the fear of using proprietary software XD for a linux user bugged me a lot. Then I tried doom-emacs which looked pretty but it was slow and I was lost within its docs, I tried lunarvim but too lazy to read the docs. Doom-emacs and lunarvim inspired me to make a config which is the prettiest + very fast and simple. + +- I'm decent at ricing i.e customizing system and making it look pretty so I posted my neovim rice on [neovim subreddit](https://www.reddit.com/r/neovim/comments/m3xl4f/neovim_rice/), my neovim-dotfiles github repo blew up and then I had to come up with a name, I was amazed by the chad meme lol so I put NvChad as the name, the chad word in here doesnt literally mean the chad guy but in the sense such as chad linux vs windows i.e meaning superior, best etc. NvChad was made for my personal use but it gained some popularity which inspired me to make a public config i.e config usable by many and less hassle to update as everyone's going to use the same base config (NvChad) with their custom modifications (which are gitignored so that wont mess up), without the custom config stuff users would have to keep a track of every commit and copy paste git diffs to manually update nvchad. + +## :gift_heart: Support + +I'm (@siduck) really very sorry to remove the previous charity links but I had to do it for various reasons. A lot has been going here regarding financial issues and I do need some support if it's possible from your end. I haven't graduated yet and it would be great to earn some stuff as that'd help me with daily minor expenses. If you like NvChad and would like to support & appreciate it via donation then I'll gladly accept it. Dont worry! NvChad will still stay alive & active without your donations! I will remove the sponsor button and re-add the charity links once I get a job, probably a year or two. + +[![kofi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/siduck) +[![paypal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white)](https://paypal.me/siduck76) +[![buymeacoffee](https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/siduck) +[![patreon](https://img.shields.io/badge/Patreon-F96854?style=for-the-badge&logo=patreon&logoColor=white)](https://www.patreon.com/siduck) + +## Credits + +- [Elianiva](https://github.com/elianiva) helped me with NeoVim Lua related issues many times, NvChad wouldn't exist without his help at all as he helped me in my initial neovim journey! +- @lorvethe for making the beautiful NvChad logo. diff --git a/private_dot_config/nvim/dot_github/workflows/stale.yml b/private_dot_config/nvim/dot_github/workflows/stale.yml new file mode 100644 index 0000000..1f16ea2 --- /dev/null +++ b/private_dot_config/nvim/dot_github/workflows/stale.yml @@ -0,0 +1,22 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.' + close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.' + exempt-all-issue-assignees: true # doesn't close an issue if someone was assigned to it. + close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.' + exempt-all-pr-assignees: true # doesn't close a pr if someone was assigned to it. + days-before-issue-stale: 30 + days-before-pr-stale: 45 + days-before-issue-close: 5 + days-before-pr-close: 10 diff --git a/private_dot_config/nvim/dot_gitignore b/private_dot_config/nvim/dot_gitignore new file mode 100644 index 0000000..2de440a --- /dev/null +++ b/private_dot_config/nvim/dot_gitignore @@ -0,0 +1,6 @@ +plugin +custom +spell +ftplugin +coc-settings.json +.luarc.json diff --git a/private_dot_config/nvim/dot_stylua.toml b/private_dot_config/nvim/dot_stylua.toml new file mode 100644 index 0000000..ecb6dca --- /dev/null +++ b/private_dot_config/nvim/dot_stylua.toml @@ -0,0 +1,6 @@ +column_width = 120 +line_endings = "Unix" +indent_type = "Spaces" +indent_width = 2 +quote_style = "AutoPreferDouble" +call_parentheses = "None" diff --git a/private_dot_config/nvim/init.lua b/private_dot_config/nvim/init.lua new file mode 100644 index 0000000..7324b73 --- /dev/null +++ b/private_dot_config/nvim/init.lua @@ -0,0 +1,34 @@ +vim.defer_fn(function() + pcall(require, "impatient") +end, 0) + +require "core" +require "core.options" + +-- setup packer + plugins +local fn = vim.fn +local install_path = fn.stdpath "data" .. "/site/pack/packer/opt/packer.nvim" + +if fn.empty(fn.glob(install_path)) > 0 then + vim.api.nvim_set_hl(0, "NormalFloat", { bg = "#1e222a" }) + print "Cloning packer .." + fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path } + + -- install plugins + compile their configs + vim.cmd "packadd packer.nvim" + require "plugins" + vim.cmd "PackerSync" + + -- install binaries from mason.nvim & tsparsers + vim.api.nvim_create_autocmd("User", { + pattern = "PackerComplete", + callback = function() + vim.cmd "bw | silent! MasonInstallAll" -- close packer window + require("packer").loader "nvim-treesitter" + end, + }) +end + +pcall(require, "custom") + +require("core.utils").load_mappings() diff --git a/private_dot_config/nvim/lua/core/default_config.lua b/private_dot_config/nvim/lua/core/default_config.lua new file mode 100644 index 0000000..1c7152b --- /dev/null +++ b/private_dot_config/nvim/lua/core/default_config.lua @@ -0,0 +1,27 @@ +-- Chadrc overrides this file + +local M = {} + +M.options = { + nvChad = { + update_url = "https://github.com/NvChad/NvChad", + update_branch = "main", + }, +} + +M.ui = { + -- hl = highlights + hl_add = {}, + hl_override = {}, + changed_themes = {}, + theme_toggle = { "onedark", "one_light" }, + theme = "onedark", -- default theme + transparency = false, +} + +M.plugins = {} + +-- check core.mappings for table structure +M.mappings = require "core.mappings" + +return M diff --git a/private_dot_config/nvim/lua/core/init.lua b/private_dot_config/nvim/lua/core/init.lua new file mode 100644 index 0000000..e96ca1a --- /dev/null +++ b/private_dot_config/nvim/lua/core/init.lua @@ -0,0 +1,27 @@ +-- add binaries installed by mason.nvim to path +local is_windows = vim.loop.os_uname().sysname == "Windows_NT" +vim.env.PATH = vim.env.PATH .. (is_windows and ";" or ":") .. vim.fn.stdpath "data" .. "/mason/bin" + +-- commands +vim.cmd "silent! command! NvChadUpdate lua require('nvchad').update_nvchad()" +vim.cmd "silent! command! NvChadSnapshotCreate lua require('nvchad').snap_create()" +vim.cmd "silent! command! NvChadSnapshotDelete lua require('nvchad').snap_delete()" +vim.cmd "silent! command! NvChadSnapshotCheckout lua require('nvchad').snap_checkout()" + +-- autocmds +local autocmd = vim.api.nvim_create_autocmd + +-- dont list quickfix buffers +autocmd("FileType", { + pattern = "qf", + callback = function() + vim.opt_local.buflisted = false + end, +}) + +-- wrap the PackerSync command to warn people before using it in NvChadSnapshots +autocmd("VimEnter", { + callback = function() + vim.cmd "command! -nargs=* -complete=customlist,v:lua.require'packer'.plugin_complete PackerSync lua require('plugins') require('core.utils').packer_sync()" + end, +}) diff --git a/private_dot_config/nvim/lua/core/lazy_load.lua b/private_dot_config/nvim/lua/core/lazy_load.lua new file mode 100644 index 0000000..cbb82f9 --- /dev/null +++ b/private_dot_config/nvim/lua/core/lazy_load.lua @@ -0,0 +1,79 @@ +local M = {} +local autocmd = vim.api.nvim_create_autocmd + +-- require("packer").loader(tb.plugins) +-- This must be used for plugins that need to be loaded just after a file +-- ex : treesitter, lspconfig etc +M.lazy_load = function(tb) + autocmd(tb.events, { + group = vim.api.nvim_create_augroup(tb.augroup_name, {}), + callback = function() + if tb.condition() then + vim.api.nvim_del_augroup_by_name(tb.augroup_name) + + -- dont defer for treesitter as it will show slow highlighting + -- This deferring only happens only when we do "nvim filename" + if tb.plugin ~= "nvim-treesitter" then + vim.defer_fn(function() + require("packer").loader(tb.plugin) + if tb.plugin == "nvim-lspconfig" then + vim.cmd "silent! do FileType" + end + end, 0) + else + require("packer").loader(tb.plugin) + end + end + end, + }) +end + +-- load certain plugins only when there's a file opened in the buffer +-- if "nvim filename" is executed -> load the plugin after nvim gui loads +-- This gives an instant preview of nvim with the file opened + +M.on_file_open = function(plugin_name) + M.lazy_load { + events = { "BufRead", "BufWinEnter", "BufNewFile" }, + augroup_name = "BeLazyOnFileOpen" .. plugin_name, + plugin = plugin_name, + condition = function() + local file = vim.fn.expand "%" + return file ~= "NvimTree_1" and file ~= "[packer]" and file ~= "" + end, + } +end + +M.packer_cmds = { + "PackerSnapshot", + "PackerSnapshotRollback", + "PackerSnapshotDelete", + "PackerInstall", + "PackerUpdate", + "PackerSync", + "PackerClean", + "PackerCompile", + "PackerStatus", + "PackerProfile", + "PackerLoad", +} + +M.treesitter_cmds = { "TSInstall", "TSBufEnable", "TSBufDisable", "TSEnable", "TSDisable", "TSModuleInfo" } +M.mason_cmds = { "Mason", "MasonInstall", "MasonInstallAll", "MasonUninstall", "MasonUninstallAll", "MasonLog" } + +M.gitsigns = function() + autocmd({ "BufRead" }, { + group = vim.api.nvim_create_augroup("GitSignsLazyLoad", { clear = true }), + callback = function() + vim.fn.system("git rev-parse " .. vim.fn.expand "%:p:h") + if vim.v.shell_error == 0 then + vim.api.nvim_del_augroup_by_name "GitSignsLazyLoad" + vim.schedule(function() + require("packer").loader "gitsigns.nvim" + end) + end + end, + }) +end + +return M diff --git a/private_dot_config/nvim/lua/core/mappings.lua b/private_dot_config/nvim/lua/core/mappings.lua new file mode 100644 index 0000000..184a8c1 --- /dev/null +++ b/private_dot_config/nvim/lua/core/mappings.lua @@ -0,0 +1,471 @@ +-- n, v, i, t = mode names + +local function termcodes(str) + return vim.api.nvim_replace_termcodes(str, true, true, true) +end + +local M = {} + +M.general = { + i = { + -- go to beginning and end + [""] = { "^i", "beginning of line" }, + [""] = { "", "end of line" }, + + -- navigate within insert mode + [""] = { "", "move left" }, + [""] = { "", "move right" }, + [""] = { "", "move down" }, + [""] = { "", "move up" }, + }, + + n = { + [""] = { " noh ", "no highlight" }, + + -- switch between windows + [""] = { "h", "window left" }, + [""] = { "l", "window right" }, + [""] = { "j", "window down" }, + [""] = { "k", "window up" }, + + -- save + [""] = { " w ", "save file" }, + + -- Copy all + [""] = { " %y+ ", "copy whole file" }, + + -- line numbers + ["n"] = { " set nu! ", "toggle line number" }, + ["rn"] = { " set rnu! ", "toggle relative number" }, + + -- update nvchad + ["uu"] = { " :NvChadUpdate ", "update nvchad" }, + + ["tt"] = { + function() + require("base46").toggle_theme() + end, + "toggle theme", + }, + + -- Allow moving the cursor through wrapped lines with j, k, and + -- http://www.reddit.com/r/vim/comments/2k4cbr/problem_with_gj_and_gk/ + -- empty mode is same as using :map + -- also don't use g[j|k] when in operator pending mode, so it doesn't alter d, y or c behaviour + ["j"] = { 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', opts = { expr = true } }, + ["k"] = { 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', opts = { expr = true } }, + [""] = { 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', opts = { expr = true } }, + [""] = { 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', opts = { expr = true } }, + + -- new buffer + ["b"] = { " enew ", "new buffer" }, + }, + + t = { [""] = { termcodes "", "escape terminal mode" } }, + + v = { + [""] = { 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', opts = { expr = true } }, + [""] = { 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', opts = { expr = true } }, + }, + + x = { + ["j"] = { 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', opts = { expr = true } }, + ["k"] = { 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', opts = { expr = true } }, + -- Don't copy the replaced text after pasting in visual mode + -- https://vim.fandom.com/wiki/Replace_a_word_with_yanked_text#Alternative_mapping_for_paste + ["p"] = { 'p:let @+=@0:let @"=@0', opts = { silent = true } }, + }, +} + +M.tabufline = { + plugin = true, + + n = { + -- cycle through buffers + [""] = { + function() + require("nvchad_ui.tabufline").tabuflineNext() + end, + "goto next buffer", + }, + + [""] = { + function() + require("nvchad_ui.tabufline").tabuflinePrev() + end, + "goto prev buffer", + }, + + -- pick buffers via numbers + [""] = { " TbufPick ", "Pick buffer" }, + + -- close buffer + hide terminal buffer + ["x"] = { + function() + require("nvchad_ui.tabufline").close_buffer() + end, + "close buffer", + }, + }, +} + +M.comment = { + plugin = true, + + -- toggle comment in both modes + n = { + ["/"] = { + function() + require("Comment.api").toggle.linewise.current() + end, + "toggle comment", + }, + }, + + v = { + ["/"] = { + "lua require('Comment.api').toggle.linewise(vim.fn.visualmode())", + "toggle comment", + }, + }, +} + +M.lspconfig = { + plugin = true, + + -- See ` :help vim.lsp.*` for documentation on any of the below functions + + n = { + ["gD"] = { + function() + vim.lsp.buf.declaration() + end, + "lsp declaration", + }, + + ["gd"] = { + function() + vim.lsp.buf.definition() + end, + "lsp definition", + }, + + ["K"] = { + function() + vim.lsp.buf.hover() + end, + "lsp hover", + }, + + ["gi"] = { + function() + vim.lsp.buf.implementation() + end, + "lsp implementation", + }, + + ["ls"] = { + function() + vim.lsp.buf.signature_help() + end, + "lsp signature_help", + }, + + ["D"] = { + function() + vim.lsp.buf.type_definition() + end, + "lsp definition type", + }, + + ["ra"] = { + function() + require("nvchad_ui.renamer").open() + end, + "lsp rename", + }, + + ["ca"] = { + function() + vim.lsp.buf.code_action() + end, + "lsp code_action", + }, + + ["gr"] = { + function() + vim.lsp.buf.references() + end, + "lsp references", + }, + + ["f"] = { + function() + vim.diagnostic.open_float() + end, + "floating diagnostic", + }, + + ["[d"] = { + function() + vim.diagnostic.goto_prev() + end, + "goto prev", + }, + + ["d]"] = { + function() + vim.diagnostic.goto_next() + end, + "goto_next", + }, + + ["q"] = { + function() + vim.diagnostic.setloclist() + end, + "diagnostic setloclist", + }, + + ["fm"] = { + function() + vim.lsp.buf.format { async = true } + end, + "lsp formatting", + }, + + ["wa"] = { + function() + vim.lsp.buf.add_workspace_folder() + end, + "add workspace folder", + }, + + ["wr"] = { + function() + vim.lsp.buf.remove_workspace_folder() + end, + "remove workspace folder", + }, + + ["wl"] = { + function() + print(vim.inspect(vim.lsp.buf.list_workspace_folders())) + end, + "list workspace folders", + }, + }, +} + +M.nvimtree = { + plugin = true, + + n = { + -- toggle + [""] = { " NvimTreeToggle ", "toggle nvimtree" }, + + -- focus + ["e"] = { " NvimTreeFocus ", "focus nvimtree" }, + }, +} + +M.telescope = { + plugin = true, + + n = { + -- find + ["ff"] = { " Telescope find_files ", "find files" }, + ["fa"] = { " Telescope find_files follow=true no_ignore=true hidden=true ", "find all" }, + ["fw"] = { " Telescope live_grep ", "live grep" }, + ["fb"] = { " Telescope buffers ", "find buffers" }, + ["fh"] = { " Telescope help_tags ", "help page" }, + ["fo"] = { " Telescope oldfiles ", "find oldfiles" }, + ["tk"] = { " Telescope keymaps ", "show keys" }, + + -- git + ["cm"] = { " Telescope git_commits ", "git commits" }, + ["gt"] = { " Telescope git_status ", "git status" }, + + -- pick a hidden term + ["pt"] = { " Telescope terms ", "pick hidden term" }, + + -- theme switcher + ["th"] = { " Telescope themes ", "nvchad themes" }, + }, +} + +M.nvterm = { + plugin = true, + + t = { + -- toggle in terminal mode + [""] = { + function() + require("nvterm.terminal").toggle "float" + end, + "toggle floating term", + }, + + [""] = { + function() + require("nvterm.terminal").toggle "horizontal" + end, + "toggle horizontal term", + }, + + [""] = { + function() + require("nvterm.terminal").toggle "vertical" + end, + "toggle vertical term", + }, + }, + + n = { + -- toggle in normal mode + [""] = { + function() + require("nvterm.terminal").toggle "float" + end, + "toggle floating term", + }, + + [""] = { + function() + require("nvterm.terminal").toggle "horizontal" + end, + "toggle horizontal term", + }, + + [""] = { + function() + require("nvterm.terminal").toggle "vertical" + end, + "toggle vertical term", + }, + + -- new + + ["h"] = { + function() + require("nvterm.terminal").new "horizontal" + end, + "new horizontal term", + }, + + ["v"] = { + function() + require("nvterm.terminal").new "vertical" + end, + "new vertical term", + }, + }, +} + +M.whichkey = { + plugin = true, + + n = { + ["wK"] = { + function() + vim.cmd "WhichKey" + end, + "which-key all keymaps", + }, + ["wk"] = { + function() + local input = vim.fn.input "WhichKey: " + vim.cmd("WhichKey " .. input) + end, + "which-key query lookup", + }, + }, +} + +M.blankline = { + plugin = true, + + n = { + ["cc"] = { + function() + local ok, start = require("indent_blankline.utils").get_current_context( + vim.g.indent_blankline_context_patterns, + vim.g.indent_blankline_use_treesitter_scope + ) + + if ok then + vim.api.nvim_win_set_cursor(vim.api.nvim_get_current_win(), { start, 0 }) + vim.cmd [[normal! _]] + end + end, + + "Jump to current_context", + }, + }, +} + +M.gitsigns = { + plugin = true, + + n = { + -- Navigation through hunks + ["]c"] = { + function() + if vim.wo.diff then + return "]c" + end + vim.schedule(function() + require("gitsigns").next_hunk() + end) + return "" + end, + "Jump to next hunk", + opts = { expr = true }, + }, + + ["[c"] = { + function() + if vim.wo.diff then + return "[c" + end + vim.schedule(function() + require("gitsigns").prev_hunk() + end) + return "" + end, + "Jump to prev hunk", + opts = { expr = true }, + }, + + -- Actions + ["rh"] = { + function() + require("gitsigns").reset_hunk() + end, + "Reset hunk", + }, + + ["ph"] = { + function() + require("gitsigns").preview_hunk() + end, + "Preview hunk", + }, + + ["gb"] = { + function() + package.loaded.gitsigns.blame_line() + end, + "Blame line", + }, + + ["td"] = { + function() + require("gitsigns").toggle_deleted() + end, + "Toggle deleted", + }, + }, +} + +return M diff --git a/private_dot_config/nvim/lua/core/options.lua b/private_dot_config/nvim/lua/core/options.lua new file mode 100644 index 0000000..a097cd7 --- /dev/null +++ b/private_dot_config/nvim/lua/core/options.lua @@ -0,0 +1,96 @@ +local opt = vim.opt +local g = vim.g +local config = require("core.utils").load_config() + +g.nvchad_theme = config.ui.theme +g.toggle_theme_icon = "  " +g.transparency = config.ui.transparency +g.theme_switcher_loaded = false + +opt.laststatus = 3 -- global statusline +opt.showmode = false + +opt.title = true +opt.clipboard = "unnamedplus" +opt.cursorline = true + +-- Indenting +opt.expandtab = true +opt.shiftwidth = 2 +opt.smartindent = true +opt.tabstop = 2 +opt.softtabstop = 2 + +opt.fillchars = { eob = " " } +opt.ignorecase = true +opt.smartcase = true +opt.mouse = "a" + +-- Numbers +opt.number = true +opt.numberwidth = 2 +opt.ruler = false + +-- disable nvim intro +opt.shortmess:append "sI" + +opt.signcolumn = "yes" +opt.splitbelow = true +opt.splitright = true +opt.termguicolors = true +opt.timeoutlen = 400 +opt.undofile = true + +-- interval for writing swap file to disk, also used by gitsigns +opt.updatetime = 250 + +-- go to previous/next line with h,l,left arrow and right arrow +-- when cursor reaches end/beginning of line +opt.whichwrap:append "<>[]hl" + +g.mapleader = " " + +-- disable some builtin vim plugins +local default_plugins = { + "2html_plugin", + "getscript", + "getscriptPlugin", + "gzip", + "logipat", + "netrw", + "netrwPlugin", + "netrwSettings", + "netrwFileHandlers", + "matchit", + "tar", + "tarPlugin", + "rrhelper", + "spellfile_plugin", + "vimball", + "vimballPlugin", + "zip", + "zipPlugin", + "tutor", + "rplugin", + "syntax", + "synmenu", + "optwin", + "compiler", + "bugreport", + "ftplugin", +} + +for _, plugin in pairs(default_plugins) do + g["loaded_" .. plugin] = 1 +end + +local default_providers = { + "node", + "perl", + "python3", + "ruby", +} + +for _, provider in ipairs(default_providers) do + vim.g["loaded_" .. provider .. "_provider"] = 0 +end diff --git a/private_dot_config/nvim/lua/core/utils.lua b/private_dot_config/nvim/lua/core/utils.lua new file mode 100644 index 0000000..b74278b --- /dev/null +++ b/private_dot_config/nvim/lua/core/utils.lua @@ -0,0 +1,192 @@ +local M = {} +local merge_tb = vim.tbl_deep_extend + +M.load_config = function() + local config = require "core.default_config" + local chadrc_exists, chadrc = pcall(require, "custom.chadrc") + + if chadrc_exists then + -- merge user config if it exists and is a table; otherwise display an error + if type(chadrc) == "table" then + config.mappings = M.remove_disabled_keys(chadrc.mappings, config.mappings) + config = merge_tb("force", config, chadrc) or {} + else + error "chadrc must return a table!" + end + end + + config.mappings.disabled = nil + return config +end + +M.remove_disabled_keys = function(chadrc_mappings, default_mappings) + if not chadrc_mappings then + return default_mappings + end + + -- store keys in a array with true value to compare + local keys_to_disable = {} + for _, mappings in pairs(chadrc_mappings) do + for mode, section_keys in pairs(mappings) do + if not keys_to_disable[mode] then + keys_to_disable[mode] = {} + end + section_keys = (type(section_keys) == "table" and section_keys) or {} + for k, _ in pairs(section_keys) do + keys_to_disable[mode][k] = true + end + end + end + + -- make a copy as we need to modify default_mappings + for section_name, section_mappings in pairs(default_mappings) do + for mode, mode_mappings in pairs(section_mappings) do + mode_mappings = (type(mode_mappings) == "table" and mode_mappings) or {} + for k, _ in pairs(mode_mappings) do + -- if key if found then remove from default_mappings + if keys_to_disable[mode] and keys_to_disable[mode][k] then + default_mappings[section_name][mode][k] = nil + end + end + end + end + + return default_mappings +end + +M.load_mappings = function(section, mapping_opt) + local function set_section_map(section_values) + if section_values.plugin then + return + end + section_values.plugin = nil + + for mode, mode_values in pairs(section_values) do + local default_opts = merge_tb("force", { mode = mode }, mapping_opt or {}) + for keybind, mapping_info in pairs(mode_values) do + -- merge default + user opts + local opts = merge_tb("force", default_opts, mapping_info.opts or {}) + + mapping_info.opts, opts.mode = nil, nil + opts.desc = mapping_info[2] + + vim.keymap.set(mode, keybind, mapping_info[1], opts) + end + end + end + + local mappings = require("core.utils").load_config().mappings + + if type(section) == "string" then + mappings[section]["plugin"] = nil + mappings = { mappings[section] } + end + + for _, sect in pairs(mappings) do + set_section_map(sect) + end +end + +-- merge default/user plugin tables +M.merge_plugins = function(plugins) + local plugin_configs = M.load_config().plugins + local user_plugins = plugin_configs + + -- old plugin syntax for adding plugins + if plugin_configs.user and type(plugin_configs.user) == "table" then + user_plugins = plugin_configs.user + end + + -- support old plugin removal syntax + local remove_plugins = plugin_configs.remove + if type(remove_plugins) == "table" then + for _, v in ipairs(remove_plugins) do + plugins[v] = nil + end + end + + plugins = merge_tb("force", plugins, user_plugins) + + local final_table = {} + + for key, val in pairs(plugins) do + if val and type(val) == "table" then + plugins[key] = val.rm_default_opts and user_plugins[key] or plugins[key] + plugins[key][1] = key + final_table[#final_table + 1] = plugins[key] + end + end + + return final_table +end + +-- override plugin options table with custom ones +M.load_override = function(options_table, name) + local plugin_configs, plugin_options = M.load_config().plugins, nil + + -- support old plugin syntax for override + local user_override = plugin_configs.override and plugin_configs.override[name] + if user_override and type(user_override) == "table" then + plugin_options = user_override + end + + -- if no old style plugin override is found, then use the new syntax + if not plugin_options and plugin_configs[name] then + local override_options = plugin_configs[name].override_options or {} + if type(override_options) == "table" then + plugin_options = override_options + elseif type(override_options) == "function" then + plugin_options = override_options() + end + end + + -- make sure the plugin options are a table + plugin_options = type(plugin_options) == "table" and plugin_options or {} + + return merge_tb("force", options_table, plugin_options) +end + +M.packer_sync = function(...) + local git_exists, git = pcall(require, "nvchad.utils.git") + local defaults_exists, defaults = pcall(require, "nvchad.utils.config") + local packer_exists, packer = pcall(require, "packer") + + if git_exists and defaults_exists then + local current_branch_name = git.get_current_branch_name() + + -- warn the user if we are on a snapshot branch + if current_branch_name:match(defaults.snaps.base_snap_branch_name .. "(.+)" .. "$") then + vim.api.nvim_echo({ + { "WARNING: You are trying to use ", "WarningMsg" }, + { "PackerSync" }, + { + " on a NvChadSnapshot. This will cause issues if NvChad dependencies contain " + .. "any breaking changes! Plugin updates will not be included in this " + .. "snapshot, so they will be lost after switching between snapshots! Would " + .. "you still like to continue? [y/N]\n", + "WarningMsg", + }, + }, false, {}) + + local ans = vim.trim(string.lower(vim.fn.input "-> ")) + + if ans ~= "y" then + return + end + end + end + + if packer_exists then + packer.sync(...) + + local plugins = M.load_config().plugins + local old_style_options = plugins.user or plugins.override or plugins.remove + if old_style_options then + vim.notify_once("NvChad: This plugin syntax is deprecated, use new style config.", "Error") + end + else + error "Packer could not be loaded!" + end +end + +return M diff --git a/private_dot_config/nvim/lua/custom/chadrc.lua b/private_dot_config/nvim/lua/custom/chadrc.lua new file mode 100644 index 0000000..ddd91f1 --- /dev/null +++ b/private_dot_config/nvim/lua/custom/chadrc.lua @@ -0,0 +1,14 @@ +-- Just an example, supposed to be placed in /lua/custom/ + +local M = {} + +-- make sure you maintain the structure of `core/default_config.lua` here, +-- example of changing theme: + +M.ui = { + theme = "gruvbox", +} + +M.plugins = require "custom.plugins" + +return M diff --git a/private_dot_config/nvim/lua/custom/init.lua b/private_dot_config/nvim/lua/custom/init.lua new file mode 100644 index 0000000..69b3772 --- /dev/null +++ b/private_dot_config/nvim/lua/custom/init.lua @@ -0,0 +1,15 @@ +-- example file i.e lua/custom/init.lua +-- load your options globals, autocmds here or anything .__. +-- you can even override default options here (core/options.lua) +local rt = require("rust-tools") + +rt.setup({ + server = { + on_attach = function(_, bufnr) + -- Hover actions + vim.keymap.set("n", "", rt.hover_actions.hover_actions, { buffer = bufnr }) + -- Code action groups + vim.keymap.set("n", "a", rt.code_action_group.code_action_group, { buffer = bufnr }) + end, + }, +}) diff --git a/private_dot_config/nvim/lua/custom/plugins/init.lua b/private_dot_config/nvim/lua/custom/plugins/init.lua new file mode 100644 index 0000000..3956f30 --- /dev/null +++ b/private_dot_config/nvim/lua/custom/plugins/init.lua @@ -0,0 +1,23 @@ + +return { + ["folke/trouble.nvim"] = { + config = function() + require("trouble").setup{} + end, + }, + ["andweeb/presence.nvim"] = {}, + ["neovim/nvim-lspconfig"] = { + config = function() + require "plugins.configs.lspconfig" + require "custom.plugins.lspconfig" + end, +}, + ["tpope/vim-fugitive"] = {}, + ["jose-elias-alvarez/null-ls.nvim"] = { + after = "nvim-lspconfig", + config = function() + require "custom.plugins.null-ls" + end, + }, + ["simrat39/rust-tools.nvim"]= {} + } diff --git a/private_dot_config/nvim/lua/custom/plugins/lspconfig.lua b/private_dot_config/nvim/lua/custom/plugins/lspconfig.lua new file mode 100644 index 0000000..9677480 --- /dev/null +++ b/private_dot_config/nvim/lua/custom/plugins/lspconfig.lua @@ -0,0 +1,52 @@ +-- custom.plugins.lspconfig +local on_attach = require("plugins.configs.lspconfig").on_attach +local capabilities = require("plugins.configs.lspconfig").capabilities + +local lspconfig = require "lspconfig" +local servers = { "html", "cssls", "clangd","tsserver","angularls","rust_analyzer","rustfmt",} + +for _, lsp in ipairs(servers) do + lspconfig[lsp].setup { + on_attach = on_attach, + capabilities = capabilities, + } +end +local lsp_flags = { + -- This is the default in Nvim 0.7+ + debounce_text_changes = 150, +} +require('lspconfig')['pyright'].setup{ + on_attach = on_attach, + flags = lsp_flags, +} +require('lspconfig')['tsserver'].setup{ + on_attach = on_attach, + flags = lsp_flags, +} +-- require('lspconfig')['rust_analyzer'].setup{ +-- on_attach = on_attach, +-- flags = lsp_flags, +-- settings = { +-- ["rust-analyzer"] = { +-- imports = { +-- granularity = { +-- group = "module", +-- }, +-- prefix = "self", +-- }, +-- cargo = { +-- buildScripts = { +-- enable = true, +-- }, +-- }, +-- procMacro = { +-- enable = true +-- }, +-- } +-- } +-- } +require('lspconfig')['rustfmt'].setup{ + on_attach = on_attach, + flags = lsp_flags, + } + diff --git a/private_dot_config/nvim/lua/custom/plugins/null-ls.lua b/private_dot_config/nvim/lua/custom/plugins/null-ls.lua new file mode 100644 index 0000000..f699b44 --- /dev/null +++ b/private_dot_config/nvim/lua/custom/plugins/null-ls.lua @@ -0,0 +1,26 @@ +local present, null_ls = pcall(require, "null-ls") + +if not present then + return +end + +local b = null_ls.builtins + +local sources = { + + -- webdev stuff + b.formatting.deno_fmt, + b.formatting.prettier, + + -- Lua + b.formatting.stylua, + + -- Shell + b.formatting.shfmt, + b.diagnostics.shellcheck.with { diagnostics_format = "#{m} [#{c}]" }, +} + +null_ls.setup { + debug = true, + sources = sources, +} diff --git a/private_dot_config/nvim/lua/plugins/configs/alpha.lua b/private_dot_config/nvim/lua/plugins/configs/alpha.lua new file mode 100644 index 0000000..b91c233 --- /dev/null +++ b/private_dot_config/nvim/lua/plugins/configs/alpha.lua @@ -0,0 +1,110 @@ +local present, alpha = pcall(require, "alpha") + +if not present then + return +end + +require("base46").load_highlight "alpha" + +local function button(sc, txt, keybind) + local sc_ = sc:gsub("%s", ""):gsub("SPC", "") + + local opts = { + position = "center", + text = txt, + shortcut = sc, + cursor = 5, + width = 36, + align_shortcut = "right", + hl = "AlphaButtons", + } + + if keybind then + opts.keymap = { "n", sc_, keybind, { noremap = true, silent = true } } + end + + return { + type = "button", + val = txt, + on_press = function() + local key = vim.api.nvim_replace_termcodes(sc_, true, false, true) or "" + vim.api.nvim_feedkeys(key, "normal", false) + end, + opts = opts, + } +end + +-- dynamic header padding +local fn = vim.fn +local marginTopPercent = 0.3 +local headerPadding = fn.max { 2, fn.floor(fn.winheight(0) * marginTopPercent) } + +local options = { + + header = { + type = "text", + val = { + " ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ", + " ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ", + " ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ ", + " ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ ", + " ⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ ", + " ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ ", + " ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ", + " ⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ", + " ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ ", + " ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ", + " ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ", + }, + opts = { + position = "center", + hl = "AlphaHeader", + }, + }, + + buttons = { + type = "group", + val = { + button("SPC f f", " Find File ", ":Telescope find_files"), + button("SPC f o", " Recent File ", ":Telescope oldfiles"), + button("SPC f w", " Find Word ", ":Telescope live_grep"), + button("SPC b m", " Bookmarks ", ":Telescope marks"), + button("SPC t h", " Themes ", ":Telescope themes"), + button("SPC e s", " Settings", ":e $MYVIMRC | :cd %:p:h "), + }, + opts = { + spacing = 1, + }, + }, + + headerPaddingTop = { type = "padding", val = headerPadding }, + headerPaddingBottom = { type = "padding", val = 2 }, +} + +options = require("core.utils").load_override(options, "goolord/alpha-nvim") + +alpha.setup { + layout = { + options.headerPaddingTop, + options.header, + options.headerPaddingBottom, + options.buttons, + }, + opts = {}, +} + +-- Disable statusline in dashboard +vim.api.nvim_create_autocmd("FileType", { + pattern = "alpha", + callback = function() + -- store current statusline value and use that + local old_laststatus = vim.opt.laststatus + vim.api.nvim_create_autocmd("BufUnload", { + buffer = 0, + callback = function() + vim.opt.laststatus = old_laststatus + end, + }) + vim.opt.laststatus = 0 + end, +}) diff --git a/private_dot_config/nvim/lua/plugins/configs/cmp.lua b/private_dot_config/nvim/lua/plugins/configs/cmp.lua new file mode 100644 index 0000000..0779579 --- /dev/null +++ b/private_dot_config/nvim/lua/plugins/configs/cmp.lua @@ -0,0 +1,103 @@ +local present, cmp = pcall(require, "cmp") + +if not present then + return +end + +require("base46").load_highlight "cmp" + +vim.o.completeopt = "menu,menuone,noselect" + +local function border(hl_name) + return { + { "╭", hl_name }, + { "─", hl_name }, + { "╮", hl_name }, + { "│", hl_name }, + { "╯", hl_name }, + { "─", hl_name }, + { "╰", hl_name }, + { "│", hl_name }, + } +end + +local cmp_window = require "cmp.utils.window" + +cmp_window.info_ = cmp_window.info +cmp_window.info = function(self) + local info = self:info_() + info.scrollable = false + return info +end + +local options = { + window = { + completion = { + border = border "CmpBorder", + winhighlight = "Normal:CmpPmenu,CursorLine:PmenuSel,Search:None", + }, + documentation = { + border = border "CmpDocBorder", + }, + }, + snippet = { + expand = function(args) + require("luasnip").lsp_expand(args.body) + end, + }, + formatting = { + format = function(_, vim_item) + local icons = require("nvchad_ui.icons").lspkind + vim_item.kind = string.format("%s %s", icons[vim_item.kind], vim_item.kind) + return vim_item + end, + }, + mapping = { + [""] = cmp.mapping.select_prev_item(), + [""] = cmp.mapping.select_next_item(), + [""] = cmp.mapping.scroll_docs(-4), + [""] = cmp.mapping.scroll_docs(4), + [""] = cmp.mapping.complete(), + [""] = cmp.mapping.close(), + [""] = cmp.mapping.confirm { + behavior = cmp.ConfirmBehavior.Replace, + select = false, + }, + [""] = cmp.mapping(function(fallback) + if cmp.visible() then + cmp.select_next_item() + elseif require("luasnip").expand_or_jumpable() then + vim.fn.feedkeys(vim.api.nvim_replace_termcodes("luasnip-expand-or-jump", true, true, true), "") + else + fallback() + end + end, { + "i", + "s", + }), + [""] = cmp.mapping(function(fallback) + if cmp.visible() then + cmp.select_prev_item() + elseif require("luasnip").jumpable(-1) then + vim.fn.feedkeys(vim.api.nvim_replace_termcodes("luasnip-jump-prev", true, true, true), "") + else + fallback() + end + end, { + "i", + "s", + }), + }, + sources = { + { name = "luasnip" }, + { name = "nvim_lsp" }, + { name = "buffer" }, + { name = "nvim_lua" }, + { name = "path" }, + }, +} + +-- check for any override +options = require("core.utils").load_override(options, "hrsh7th/nvim-cmp") + +cmp.setup(options) diff --git a/private_dot_config/nvim/lua/plugins/configs/lspconfig.lua b/private_dot_config/nvim/lua/plugins/configs/lspconfig.lua new file mode 100644 index 0000000..2f87926 --- /dev/null +++ b/private_dot_config/nvim/lua/plugins/configs/lspconfig.lua @@ -0,0 +1,67 @@ +local present, lspconfig = pcall(require, "lspconfig") + +if not present then + return +end + +require("base46").load_highlight "lsp" +require "nvchad_ui.lsp" + +local M = {} +local utils = require "core.utils" + +-- export on_attach & capabilities for custom lspconfigs + +M.on_attach = function(client, bufnr) + client.server_capabilities.documentFormattingProvider = false + client.server_capabilities.documentRangeFormattingProvider = false + + utils.load_mappings("lspconfig", { buffer = bufnr }) + + if client.server_capabilities.signatureHelpProvider then + require("nvchad_ui.signature").setup(client) + end +end + +M.capabilities = vim.lsp.protocol.make_client_capabilities() + +M.capabilities.textDocument.completion.completionItem = { + documentationFormat = { "markdown", "plaintext" }, + snippetSupport = true, + preselectSupport = true, + insertReplaceSupport = true, + labelDetailsSupport = true, + deprecatedSupport = true, + commitCharactersSupport = true, + tagSupport = { valueSet = { 1 } }, + resolveSupport = { + properties = { + "documentation", + "detail", + "additionalTextEdits", + }, + }, +} + +lspconfig.sumneko_lua.setup { + on_attach = M.on_attach, + capabilities = M.capabilities, + + settings = { + Lua = { + diagnostics = { + globals = { "vim" }, + }, + workspace = { + library = { + [vim.fn.expand "$VIMRUNTIME/lua"] = true, + [vim.fn.expand "$VIMRUNTIME/lua/vim/lsp"] = true, + }, + maxPreload = 100000, + preloadFileSize = 10000, + }, + }, + }, +} + +return M diff --git a/private_dot_config/nvim/lua/plugins/configs/mason.lua b/private_dot_config/nvim/lua/plugins/configs/mason.lua new file mode 100644 index 0000000..c713847 --- /dev/null +++ b/private_dot_config/nvim/lua/plugins/configs/mason.lua @@ -0,0 +1,49 @@ +local present, mason = pcall(require, "mason") + +if not present then + return +end + +vim.api.nvim_create_augroup("_mason", { clear = true }) +vim.api.nvim_create_autocmd("Filetype", { + pattern = "mason", + callback = function() + require("base46").load_highlight "mason" + end, + group = "_mason", +}) + +local options = { + ensure_installed = { "lua-language-server" }, -- not an option from mason.nvim + + PATH = "skip", + + ui = { + icons = { + package_pending = " ", + package_installed = " ", + package_uninstalled = " ﮊ", + }, + + keymaps = { + toggle_server_expand = "", + install_server = "i", + update_server = "u", + check_server_version = "c", + update_all_servers = "U", + check_outdated_servers = "C", + uninstall_server = "X", + cancel_installation = "", + }, + }, + + max_concurrent_installers = 10, +} + +options = require("core.utils").load_override(options, "williamboman/mason.nvim") + +vim.api.nvim_create_user_command("MasonInstallAll", function() + vim.cmd("MasonInstall " .. table.concat(options.ensure_installed, " ")) +end, {}) + +mason.setup(options) diff --git a/private_dot_config/nvim/lua/plugins/configs/nvimtree.lua b/private_dot_config/nvim/lua/plugins/configs/nvimtree.lua new file mode 100644 index 0000000..0f1733e --- /dev/null +++ b/private_dot_config/nvim/lua/plugins/configs/nvimtree.lua @@ -0,0 +1,90 @@ +local present, nvimtree = pcall(require, "nvim-tree") + +if not present then + return +end + +require("base46").load_highlight "nvimtree" + +local options = { + filters = { + dotfiles = false, + exclude = { vim.fn.stdpath "config" .. "/lua/custom" }, + }, + disable_netrw = true, + hijack_netrw = true, + open_on_setup = false, + ignore_ft_on_setup = { "alpha" }, + hijack_cursor = true, + hijack_unnamed_buffer_when_opening = false, + update_cwd = true, + update_focused_file = { + enable = true, + update_cwd = false, + }, + view = { + adaptive_size = true, + side = "left", + width = 25, + hide_root_folder = true, + }, + git = { + enable = false, + ignore = true, + }, + filesystem_watchers = { + enable = true, + }, + actions = { + open_file = { + resize_window = true, + }, + }, + renderer = { + highlight_git = false, + highlight_opened_files = "none", + + indent_markers = { + enable = false, + }, + + icons = { + show = { + file = true, + folder = true, + folder_arrow = true, + git = false, + }, + + glyphs = { + default = "", + symlink = "", + folder = { + default = "", + empty = "", + empty_open = "", + open = "", + symlink = "", + symlink_open = "", + arrow_open = "", + arrow_closed = "", + }, + git = { + unstaged = "✗", + staged = "✓", + unmerged = "", + renamed = "➜", + untracked = "★", + deleted = "", + ignored = "◌", + }, + }, + }, + }, +} + +-- check for any override +options = require("core.utils").load_override(options, "kyazdani42/nvim-tree.lua") +vim.g.nvimtree_side = options.view.side + +nvimtree.setup(options) diff --git a/private_dot_config/nvim/lua/plugins/configs/nvterm.lua b/private_dot_config/nvim/lua/plugins/configs/nvterm.lua new file mode 100644 index 0000000..2c82e14 --- /dev/null +++ b/private_dot_config/nvim/lua/plugins/configs/nvterm.lua @@ -0,0 +1,34 @@ +local present, nvterm = pcall(require, "nvterm") + +if not present then + return +end + +require "base46.term" + +local options = { + terminals = { + list = {}, + type_opts = { + float = { + relative = "editor", + row = 0.3, + col = 0.25, + width = 0.5, + height = 0.4, + border = "single", + }, + horizontal = { location = "rightbelow", split_ratio = 0.3 }, + vertical = { location = "rightbelow", split_ratio = 0.5 }, + }, + }, + behavior = { + close_on_exit = true, + auto_insert = true, + }, + enable_new_mappings = true, +} + +options = require("core.utils").load_override(options, "NvChad/nvterm") + +nvterm.setup(options) diff --git a/private_dot_config/nvim/lua/plugins/configs/others.lua b/private_dot_config/nvim/lua/plugins/configs/others.lua new file mode 100644 index 0000000..4b7508a --- /dev/null +++ b/private_dot_config/nvim/lua/plugins/configs/others.lua @@ -0,0 +1,189 @@ +local M = {} + +local load_override = require("core.utils").load_override +local utils = require "core.utils" + +M.autopairs = function() + local present1, autopairs = pcall(require, "nvim-autopairs") + local present2, cmp = pcall(require, "cmp") + + if not (present1 and present2) then + return + end + + local options = { + fast_wrap = {}, + disable_filetype = { "TelescopePrompt", "vim" }, + } + + options = load_override(options, "windwp/nvim-autopairs") + autopairs.setup(options) + + local cmp_autopairs = require "nvim-autopairs.completion.cmp" + cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done()) +end + +M.blankline = function() + local present, blankline = pcall(require, "indent_blankline") + + if not present then + return + end + + require("base46").load_highlight "blankline" + + local options = { + indentLine_enabled = 1, + filetype_exclude = { + "help", + "terminal", + "alpha", + "packer", + "lspinfo", + "TelescopePrompt", + "TelescopeResults", + "mason", + "", + }, + buftype_exclude = { "terminal" }, + show_trailing_blankline_indent = false, + show_first_indent_level = false, + show_current_context = true, + show_current_context_start = true, + } + + options = load_override(options, "lukas-reineke/indent-blankline.nvim") + blankline.setup(options) +end + +M.colorizer = function() + local present, colorizer = pcall(require, "colorizer") + + if not present then + return + end + + local options = { + filetypes = { + "*", + }, + user_default_options = { + RGB = true, -- #RGB hex codes + RRGGBB = true, -- #RRGGBB hex codes + names = false, -- "Name" codes like Blue + RRGGBBAA = false, -- #RRGGBBAA hex codes + rgb_fn = false, -- CSS rgb() and rgba() functions + hsl_fn = false, -- CSS hsl() and hsla() functions + css = false, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB + css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn + mode = "background", -- Set the display mode. + }, + } + + options = load_override(options, "NvChad/nvim-colorizer.lua") + colorizer.setup(options) + -- execute colorizer as soon as possible + vim.defer_fn(function() + require("colorizer").attach_to_buffer(0) + end, 0) +end + +M.comment = function() + local present, nvim_comment = pcall(require, "Comment") + + if not present then + return + end + + local options = {} + options = load_override(options, "numToStr/Comment.nvim") + nvim_comment.setup(options) +end + +M.luasnip = function() + local present, luasnip = pcall(require, "luasnip") + + if not present then + return + end + + local options = { + history = true, + updateevents = "TextChanged,TextChangedI", + } + + options = load_override(options, "L3MON4D3/LuaSnip") + luasnip.config.set_config(options) + require("luasnip.loaders.from_vscode").lazy_load { paths = vim.g.luasnippets_path or "" } + require("luasnip.loaders.from_vscode").lazy_load() + + vim.api.nvim_create_autocmd("InsertLeave", { + callback = function() + if + require("luasnip").session.current_nodes[vim.api.nvim_get_current_buf()] + and not require("luasnip").session.jump_active + then + require("luasnip").unlink_current() + end + end, + }) +end + +M.gitsigns = function() + local present, gitsigns = pcall(require, "gitsigns") + + if not present then + return + end + + require("base46").load_highlight "git" + + local options = { + signs = { + add = { hl = "DiffAdd", text = "│", numhl = "GitSignsAddNr" }, + change = { hl = "DiffChange", text = "│", numhl = "GitSignsChangeNr" }, + delete = { hl = "DiffDelete", text = "", numhl = "GitSignsDeleteNr" }, + topdelete = { hl = "DiffDelete", text = "‾", numhl = "GitSignsDeleteNr" }, + changedelete = { hl = "DiffChangeDelete", text = "~", numhl = "GitSignsChangeNr" }, + }, + on_attach = function (bufnr) + utils.load_mappings("gitsigns", { buffer = bufnr }) + end + } + + options = load_override(options, "lewis6991/gitsigns.nvim") + gitsigns.setup(options) +end + +M.devicons = function() + local present, devicons = pcall(require, "nvim-web-devicons") + + if present then + require("base46").load_highlight "devicons" + + local options = { override = require("nvchad_ui.icons").devicons } + options = require("core.utils").load_override(options, "kyazdani42/nvim-web-devicons") + + devicons.setup(options) + end +end + +M.packer_init = function() + return { + auto_clean = true, + compile_on_sync = true, + git = { clone_timeout = 6000 }, + display = { + working_sym = "ﲊ", + error_sym = "✗ ", + done_sym = " ", + removed_sym = " ", + moved_sym = "", + open_fn = function() + return require("packer.util").float { border = "single" } + end, + }, + } +end + +return M diff --git a/private_dot_config/nvim/lua/plugins/configs/telescope.lua b/private_dot_config/nvim/lua/plugins/configs/telescope.lua new file mode 100644 index 0000000..b01abc0 --- /dev/null +++ b/private_dot_config/nvim/lua/plugins/configs/telescope.lua @@ -0,0 +1,74 @@ +local present, telescope = pcall(require, "telescope") + +if not present then + return +end + +vim.g.theme_switcher_loaded = true + +require("base46").load_highlight "telescope" + +local options = { + defaults = { + vimgrep_arguments = { + "rg", + "-L", + "--color=never", + "--no-heading", + "--with-filename", + "--line-number", + "--column", + "--smart-case", + }, + prompt_prefix = "  ", + selection_caret = " ", + entry_prefix = " ", + initial_mode = "insert", + selection_strategy = "reset", + sorting_strategy = "ascending", + layout_strategy = "horizontal", + layout_config = { + horizontal = { + prompt_position = "top", + preview_width = 0.55, + results_width = 0.8, + }, + vertical = { + mirror = false, + }, + width = 0.87, + height = 0.80, + preview_cutoff = 120, + }, + file_sorter = require("telescope.sorters").get_fuzzy_file, + file_ignore_patterns = { "node_modules" }, + generic_sorter = require("telescope.sorters").get_generic_fuzzy_sorter, + path_display = { "truncate" }, + winblend = 0, + border = {}, + borderchars = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" }, + color_devicons = true, + set_env = { ["COLORTERM"] = "truecolor" }, -- default = nil, + file_previewer = require("telescope.previewers").vim_buffer_cat.new, + grep_previewer = require("telescope.previewers").vim_buffer_vimgrep.new, + qflist_previewer = require("telescope.previewers").vim_buffer_qflist.new, + -- Developer configurations: Not meant for general override + buffer_previewer_maker = require("telescope.previewers").buffer_previewer_maker, + mappings = { + n = { ["q"] = require("telescope.actions").close }, + }, + }, + + extensions_list = { "themes", "terms" }, +} + +-- check for any override +options = require("core.utils").load_override(options, "nvim-telescope/telescope.nvim") +telescope.setup(options) + +-- load extensions +pcall(function() + for _, ext in ipairs(options.extensions_list) do + telescope.load_extension(ext) + end +end) diff --git a/private_dot_config/nvim/lua/plugins/configs/treesitter.lua b/private_dot_config/nvim/lua/plugins/configs/treesitter.lua new file mode 100644 index 0000000..bb1b163 --- /dev/null +++ b/private_dot_config/nvim/lua/plugins/configs/treesitter.lua @@ -0,0 +1,27 @@ +local present, treesitter = pcall(require, "nvim-treesitter.configs") + +if not present then + return +end + +require("base46").load_highlight "treesitter" + +local options = { + ensure_installed = { + "lua", + }, + + highlight = { + enable = true, + use_languagetree = true, + }, + + indent = { + enable = true, + }, +} + +-- check for any override +options = require("core.utils").load_override(options, "nvim-treesitter/nvim-treesitter") + +treesitter.setup(options) diff --git a/private_dot_config/nvim/lua/plugins/configs/whichkey.lua b/private_dot_config/nvim/lua/plugins/configs/whichkey.lua new file mode 100644 index 0000000..89e7c3e --- /dev/null +++ b/private_dot_config/nvim/lua/plugins/configs/whichkey.lua @@ -0,0 +1,41 @@ +local present, wk = pcall(require, "which-key") + +if not present then + return +end + +require("base46").load_highlight "whichkey" + +local options = { + + icons = { + breadcrumb = "»", -- symbol used in the command line area that shows your active key combo + separator = "  ", -- symbol used between a key and it's label + group = "+", -- symbol prepended to a group + }, + + popup_mappings = { + scroll_down = "", -- binding to scroll down inside the popup + scroll_up = "", -- binding to scroll up inside the popup + }, + + window = { + border = "none", -- none/single/double/shadow + }, + + layout = { + spacing = 6, -- spacing between columns + }, + + hidden = { "", "", "", "", "call", "lua", "^:", "^ " }, + + triggers_blacklist = { + -- list of mode / prefixes that should never be hooked by WhichKey + i = { "j", "k" }, + v = { "j", "k" }, + }, +} + +options = require("core.utils").load_override(options, "folke/which-key.nvim") + +wk.setup(options) diff --git a/private_dot_config/nvim/lua/plugins/init.lua b/private_dot_config/nvim/lua/plugins/init.lua new file mode 100644 index 0000000..778efd5 --- /dev/null +++ b/private_dot_config/nvim/lua/plugins/init.lua @@ -0,0 +1,223 @@ +local plugins = { + + ["nvim-lua/plenary.nvim"] = { module = "plenary" }, + + ["lewis6991/impatient.nvim"] = {}, + + ["wbthomason/packer.nvim"] = { + cmd = require("core.lazy_load").packer_cmds, + config = function() + require "plugins" + end, + }, + + ["NvChad/extensions"] = { module = { "telescope", "nvchad" } }, + + ["NvChad/base46"] = { + config = function() + local ok, base46 = pcall(require, "base46") + + if ok then + base46.load_theme() + end + end, + }, + + ["NvChad/ui"] = { + after = "base46", + config = function() + local present, nvchad_ui = pcall(require, "nvchad_ui") + + if present then + nvchad_ui.setup() + end + end, + }, + + ["NvChad/nvterm"] = { + module = "nvterm", + config = function() + require "plugins.configs.nvterm" + end, + setup = function() + require("core.utils").load_mappings "nvterm" + end, + }, + + ["kyazdani42/nvim-web-devicons"] = { + after = "ui", + module = "nvim-web-devicons", + config = function() + require("plugins.configs.others").devicons() + end, + }, + + ["lukas-reineke/indent-blankline.nvim"] = { + opt = true, + setup = function() + require("core.lazy_load").on_file_open "indent-blankline.nvim" + require("core.utils").load_mappings "blankline" + end, + config = function() + require("plugins.configs.others").blankline() + end, + }, + + ["NvChad/nvim-colorizer.lua"] = { + opt = true, + setup = function() + require("core.lazy_load").on_file_open "nvim-colorizer.lua" + end, + config = function() + require("plugins.configs.others").colorizer() + end, + }, + + ["nvim-treesitter/nvim-treesitter"] = { + module = "nvim-treesitter", + setup = function() + require("core.lazy_load").on_file_open "nvim-treesitter" + end, + cmd = require("core.lazy_load").treesitter_cmds, + run = ":TSUpdate", + config = function() + require "plugins.configs.treesitter" + end, + }, + + -- git stuff + ["lewis6991/gitsigns.nvim"] = { + ft = "gitcommit", + setup = function() + require("core.lazy_load").gitsigns() + end, + config = function() + require("plugins.configs.others").gitsigns() + end, + }, + + -- lsp stuff + ["williamboman/mason.nvim"] = { + cmd = require("core.lazy_load").mason_cmds, + config = function() + require "plugins.configs.mason" + end, + }, + + ["neovim/nvim-lspconfig"] = { + opt = true, + setup = function() + require("core.lazy_load").on_file_open "nvim-lspconfig" + end, + config = function() + require "plugins.configs.lspconfig" + end, + }, + + -- load luasnips + cmp related in insert mode only + + ["rafamadriz/friendly-snippets"] = { + module = { "cmp", "cmp_nvim_lsp" }, + event = "InsertEnter", + }, + + ["hrsh7th/nvim-cmp"] = { + after = "friendly-snippets", + config = function() + require "plugins.configs.cmp" + end, + }, + + ["L3MON4D3/LuaSnip"] = { + wants = "friendly-snippets", + after = "nvim-cmp", + config = function() + require("plugins.configs.others").luasnip() + end, + }, + + ["saadparwaiz1/cmp_luasnip"] = { after = "LuaSnip" }, + ["hrsh7th/cmp-nvim-lua"] = { after = "cmp_luasnip" }, + ["hrsh7th/cmp-nvim-lsp"] = { after = "cmp-nvim-lua" }, + ["hrsh7th/cmp-buffer"] = { after = "cmp-nvim-lsp" }, + ["hrsh7th/cmp-path"] = { after = "cmp-buffer" }, + + -- misc plugins + ["windwp/nvim-autopairs"] = { + after = "nvim-cmp", + config = function() + require("plugins.configs.others").autopairs() + end, + }, + + ["goolord/alpha-nvim"] = { + after = "base46", + disable = true, + config = function() + require "plugins.configs.alpha" + end, + }, + + ["numToStr/Comment.nvim"] = { + module = "Comment", + keys = { "gc", "gb" }, + config = function() + require("plugins.configs.others").comment() + end, + setup = function() + require("core.utils").load_mappings "comment" + end, + }, + + -- file managing , picker etc + ["kyazdani42/nvim-tree.lua"] = { + ft = "alpha", + cmd = { "NvimTreeToggle", "NvimTreeFocus" }, + config = function() + require "plugins.configs.nvimtree" + end, + setup = function() + require("core.utils").load_mappings "nvimtree" + end, + }, + + ["nvim-telescope/telescope.nvim"] = { + cmd = "Telescope", + config = function() + require "plugins.configs.telescope" + end, + setup = function() + require("core.utils").load_mappings "telescope" + end, + }, + + -- Only load whichkey after all the gui + ["folke/which-key.nvim"] = { + disable = true, + module = "which-key", + keys = { "", '"', "'", "`" }, + config = function() + require "plugins.configs.whichkey" + end, + setup = function() + require("core.utils").load_mappings "whichkey" + end, + }, +} + +-- Load all plugins +local present, packer = pcall(require, "packer") + +if present then + vim.cmd "packadd packer.nvim" + + -- Override with default plugins with user ones + plugins = require("core.utils").merge_plugins(plugins) + + -- load packer init options + local init_options = require("plugins.configs.others").packer_init() + init_options = require("core.utils").load_override(init_options, "wbthomason/packer.nvim") + + packer.init(init_options) + packer.startup { plugins } +end diff --git a/private_dot_config/nvim/plugin/packer_compiled.lua b/private_dot_config/nvim/plugin/packer_compiled.lua new file mode 100644 index 0000000..a345162 --- /dev/null +++ b/private_dot_config/nvim/plugin/packer_compiled.lua @@ -0,0 +1,489 @@ +-- Automatically generated packer.nvim plugin loader code + +if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then + vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"') + return +end + +vim.api.nvim_command('packadd packer.nvim') + +local no_errors, error_msg = pcall(function() + +_G._packer = _G._packer or {} +_G._packer.inside_compile = true + +local time +local profile_info +local should_profile = false +if should_profile then + local hrtime = vim.loop.hrtime + profile_info = {} + time = function(chunk, start) + if start then + profile_info[chunk] = hrtime() + else + profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6 + end + end +else + time = function(chunk, start) end +end + +local function save_profiles(threshold) + local sorted_times = {} + for chunk_name, time_taken in pairs(profile_info) do + sorted_times[#sorted_times + 1] = {chunk_name, time_taken} + end + table.sort(sorted_times, function(a, b) return a[2] > b[2] end) + local results = {} + for i, elem in ipairs(sorted_times) do + if not threshold or threshold and elem[2] > threshold then + results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms' + end + end + if threshold then + table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)') + end + + _G._packer.profile_output = results +end + +time([[Luarocks path setup]], true) +local package_path_str = "/home/libkyy/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/libkyy/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/libkyy/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/libkyy/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua" +local install_cpath_pattern = "/home/libkyy/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so" +if not string.find(package.path, package_path_str, 1, true) then + package.path = package.path .. ';' .. package_path_str +end + +if not string.find(package.cpath, install_cpath_pattern, 1, true) then + package.cpath = package.cpath .. ';' .. install_cpath_pattern +end + +time([[Luarocks path setup]], false) +time([[try_loadstring definition]], true) +local function try_loadstring(s, component, name) + local success, result = pcall(loadstring(s), name, _G.packer_plugins[name]) + if not success then + vim.schedule(function() + vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {}) + end) + end + return result +end + +time([[try_loadstring definition]], false) +time([[Defining packer_plugins]], true) +_G.packer_plugins = { + ["Comment.nvim"] = { + config = { "\27LJ\2\nF\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\fcomment\27plugins.configs.others\frequire\0" }, + keys = { { "", "gc" }, { "", "gb" } }, + loaded = false, + needs_bufread = false, + only_cond = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/Comment.nvim", + url = "https://github.com/numToStr/Comment.nvim" + }, + LuaSnip = { + after = { "cmp_luasnip" }, + config = { "\27LJ\2\nF\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\fluasnip\27plugins.configs.others\frequire\0" }, + load_after = { + ["nvim-cmp"] = true + }, + loaded = false, + needs_bufread = true, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/LuaSnip", + url = "https://github.com/L3MON4D3/LuaSnip", + wants = { "friendly-snippets" } + }, + base46 = { + after = { "ui" }, + config = { "\27LJ\2\nK\0\0\4\0\4\0\t6\0\0\0006\2\1\0'\3\2\0B\0\3\3\15\0\0\0X\2\29\2\3\1B\2\1\1K\0\1\0\15load_theme\vbase46\frequire\npcall\0" }, + loaded = true, + only_config = true, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/start/base46", + url = "https://github.com/NvChad/base46" + }, + ["cmp-buffer"] = { + after = { "cmp-path" }, + after_files = { "/home/libkyy/.local/share/nvim/site/pack/packer/opt/cmp-buffer/after/plugin/cmp_buffer.lua" }, + load_after = { + ["cmp-nvim-lsp"] = true + }, + loaded = false, + needs_bufread = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/cmp-buffer", + url = "https://github.com/hrsh7th/cmp-buffer" + }, + ["cmp-nvim-lsp"] = { + after = { "cmp-buffer" }, + after_files = { "/home/libkyy/.local/share/nvim/site/pack/packer/opt/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua" }, + load_after = { + ["cmp-nvim-lua"] = true + }, + loaded = false, + needs_bufread = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/cmp-nvim-lsp", + url = "https://github.com/hrsh7th/cmp-nvim-lsp" + }, + ["cmp-nvim-lua"] = { + after = { "cmp-nvim-lsp" }, + after_files = { "/home/libkyy/.local/share/nvim/site/pack/packer/opt/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua" }, + load_after = { + cmp_luasnip = true + }, + loaded = false, + needs_bufread = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/cmp-nvim-lua", + url = "https://github.com/hrsh7th/cmp-nvim-lua" + }, + ["cmp-path"] = { + after_files = { "/home/libkyy/.local/share/nvim/site/pack/packer/opt/cmp-path/after/plugin/cmp_path.lua" }, + load_after = { + ["cmp-buffer"] = true + }, + loaded = false, + needs_bufread = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/cmp-path", + url = "https://github.com/hrsh7th/cmp-path" + }, + cmp_luasnip = { + after = { "cmp-nvim-lua" }, + after_files = { "/home/libkyy/.local/share/nvim/site/pack/packer/opt/cmp_luasnip/after/plugin/cmp_luasnip.lua" }, + load_after = { + LuaSnip = true + }, + loaded = false, + needs_bufread = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/cmp_luasnip", + url = "https://github.com/saadparwaiz1/cmp_luasnip" + }, + extensions = { + loaded = false, + needs_bufread = false, + only_cond = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/extensions", + url = "https://github.com/NvChad/extensions" + }, + ["friendly-snippets"] = { + after = { "nvim-cmp" }, + loaded = false, + needs_bufread = false, + only_cond = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/friendly-snippets", + url = "https://github.com/rafamadriz/friendly-snippets" + }, + ["gitsigns.nvim"] = { + config = { "\27LJ\2\nG\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\rgitsigns\27plugins.configs.others\frequire\0" }, + loaded = false, + needs_bufread = false, + only_cond = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/gitsigns.nvim", + url = "https://github.com/lewis6991/gitsigns.nvim" + }, + ["impatient.nvim"] = { + loaded = true, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/start/impatient.nvim", + url = "https://github.com/lewis6991/impatient.nvim" + }, + ["indent-blankline.nvim"] = { + config = { "\27LJ\2\nH\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\14blankline\27plugins.configs.others\frequire\0" }, + loaded = false, + needs_bufread = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/indent-blankline.nvim", + url = "https://github.com/lukas-reineke/indent-blankline.nvim" + }, + ["mason.nvim"] = { + commands = { "Mason", "MasonInstall", "MasonInstallAll", "MasonUninstall", "MasonUninstallAll", "MasonLog" }, + config = { "\27LJ\2\n5\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\26plugins.configs.mason\frequire\0" }, + loaded = false, + needs_bufread = false, + only_cond = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/mason.nvim", + url = "https://github.com/williamboman/mason.nvim" + }, + ["null-ls.nvim"] = { + config = { "\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27custom.plugins.null-ls\frequire\0" }, + load_after = { + ["nvim-lspconfig"] = true + }, + loaded = false, + needs_bufread = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/null-ls.nvim", + url = "https://github.com/jose-elias-alvarez/null-ls.nvim" + }, + ["nvim-autopairs"] = { + config = { "\27LJ\2\nH\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\14autopairs\27plugins.configs.others\frequire\0" }, + load_after = { + ["nvim-cmp"] = true + }, + loaded = false, + needs_bufread = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/nvim-autopairs", + url = "https://github.com/windwp/nvim-autopairs" + }, + ["nvim-cmp"] = { + after = { "nvim-autopairs", "LuaSnip" }, + config = { "\27LJ\2\n3\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\24plugins.configs.cmp\frequire\0" }, + load_after = { + ["friendly-snippets"] = true + }, + loaded = false, + needs_bufread = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/nvim-cmp", + url = "https://github.com/hrsh7th/nvim-cmp" + }, + ["nvim-colorizer.lua"] = { + config = { "\27LJ\2\nH\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\14colorizer\27plugins.configs.others\frequire\0" }, + loaded = false, + needs_bufread = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/nvim-colorizer.lua", + url = "https://github.com/NvChad/nvim-colorizer.lua" + }, + ["nvim-lspconfig"] = { + after = { "null-ls.nvim" }, + config = { "\27LJ\2\n^\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0016\0\0\0'\2\2\0B\0\2\1K\0\1\0\29custom.plugins.lspconfig\30plugins.configs.lspconfig\frequire\0" }, + loaded = false, + needs_bufread = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/nvim-lspconfig", + url = "https://github.com/neovim/nvim-lspconfig" + }, + ["nvim-tree.lua"] = { + commands = { "NvimTreeToggle", "NvimTreeFocus" }, + config = { "\27LJ\2\n8\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\29plugins.configs.nvimtree\frequire\0" }, + loaded = false, + needs_bufread = false, + only_cond = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/nvim-tree.lua", + url = "https://github.com/kyazdani42/nvim-tree.lua" + }, + ["nvim-treesitter"] = { + commands = { "TSInstall", "TSBufEnable", "TSBufDisable", "TSEnable", "TSDisable", "TSModuleInfo" }, + config = { "\27LJ\2\n:\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\31plugins.configs.treesitter\frequire\0" }, + loaded = false, + needs_bufread = false, + only_cond = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/nvim-treesitter", + url = "https://github.com/nvim-treesitter/nvim-treesitter" + }, + ["nvim-web-devicons"] = { + config = { "\27LJ\2\nG\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\rdevicons\27plugins.configs.others\frequire\0" }, + load_after = {}, + loaded = false, + needs_bufread = false, + only_cond = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/nvim-web-devicons", + url = "https://github.com/kyazdani42/nvim-web-devicons" + }, + nvterm = { + config = { "\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27plugins.configs.nvterm\frequire\0" }, + loaded = false, + needs_bufread = false, + only_cond = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/nvterm", + url = "https://github.com/NvChad/nvterm" + }, + ["packer.nvim"] = { + commands = { "PackerSnapshot", "PackerSnapshotRollback", "PackerSnapshotDelete", "PackerInstall", "PackerUpdate", "PackerSync", "PackerClean", "PackerCompile", "PackerStatus", "PackerProfile", "PackerLoad" }, + config = { "\27LJ\2\n'\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\fplugins\frequire\0" }, + loaded = false, + needs_bufread = false, + only_cond = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/packer.nvim", + url = "https://github.com/wbthomason/packer.nvim" + }, + ["plenary.nvim"] = { + loaded = false, + needs_bufread = false, + only_cond = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/plenary.nvim", + url = "https://github.com/nvim-lua/plenary.nvim" + }, + ["presence.nvim"] = { + loaded = true, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/start/presence.nvim", + url = "https://github.com/andweeb/presence.nvim" + }, + ["telescope.nvim"] = { + commands = { "Telescope" }, + config = { "\27LJ\2\n9\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\30plugins.configs.telescope\frequire\0" }, + loaded = false, + needs_bufread = true, + only_cond = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/telescope.nvim", + url = "https://github.com/nvim-telescope/telescope.nvim" + }, + ["trouble.nvim"] = { + config = { "\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\ftrouble\frequire\0" }, + loaded = true, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/start/trouble.nvim", + url = "https://github.com/folke/trouble.nvim" + }, + ui = { + after = { "nvim-web-devicons" }, + config = { "\27LJ\2\nI\0\0\4\0\4\0\t6\0\0\0006\2\1\0'\3\2\0B\0\3\3\15\0\0\0X\2\29\2\3\1B\2\1\1K\0\1\0\nsetup\14nvchad_ui\frequire\npcall\0" }, + load_after = {}, + loaded = true, + needs_bufread = false, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/opt/ui", + url = "https://github.com/NvChad/ui" + }, + ["vim-fugitive"] = { + loaded = true, + path = "/home/libkyy/.local/share/nvim/site/pack/packer/start/vim-fugitive", + url = "https://github.com/tpope/vim-fugitive" + } +} + +time([[Defining packer_plugins]], false) +local module_lazy_loads = { + ["^Comment"] = "Comment.nvim", + ["^cmp"] = "friendly-snippets", + ["^cmp_nvim_lsp"] = "friendly-snippets", + ["^nvchad"] = "extensions", + ["^nvim%-treesitter"] = "nvim-treesitter", + ["^nvim%-web%-devicons"] = "nvim-web-devicons", + ["^nvterm"] = "nvterm", + ["^plenary"] = "plenary.nvim", + ["^telescope"] = "extensions" +} +local lazy_load_called = {['packer.load'] = true} +local function lazy_load_module(module_name) + local to_load = {} + if lazy_load_called[module_name] then return nil end + lazy_load_called[module_name] = true + for module_pat, plugin_name in pairs(module_lazy_loads) do + if not _G.packer_plugins[plugin_name].loaded and string.match(module_name, module_pat) then + to_load[#to_load + 1] = plugin_name + end + end + + if #to_load > 0 then + require('packer.load')(to_load, {module = module_name}, _G.packer_plugins) + local loaded_mod = package.loaded[module_name] + if loaded_mod then + return function(modname) return loaded_mod end + end + end +end + +if not vim.g.packer_custom_loader_enabled then + table.insert(package.loaders, 1, lazy_load_module) + vim.g.packer_custom_loader_enabled = true +end + +-- Setup for: nvim-colorizer.lua +time([[Setup for nvim-colorizer.lua]], true) +try_loadstring("\27LJ\2\nZ\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\23nvim-colorizer.lua\17on_file_open\19core.lazy_load\frequire\0", "setup", "nvim-colorizer.lua") +time([[Setup for nvim-colorizer.lua]], false) +-- Setup for: nvim-lspconfig +time([[Setup for nvim-lspconfig]], true) +try_loadstring("\27LJ\2\nV\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\19nvim-lspconfig\17on_file_open\19core.lazy_load\frequire\0", "setup", "nvim-lspconfig") +time([[Setup for nvim-lspconfig]], false) +-- Setup for: indent-blankline.nvim +time([[Setup for indent-blankline.nvim]], true) +try_loadstring("\27LJ\2\n\1\0\0\3\0\a\0\r6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\0016\0\0\0'\2\4\0B\0\2\0029\0\5\0'\2\6\0B\0\2\1K\0\1\0\14blankline\18load_mappings\15core.utils\26indent-blankline.nvim\17on_file_open\19core.lazy_load\frequire\0", "setup", "indent-blankline.nvim") +time([[Setup for indent-blankline.nvim]], false) +-- Setup for: nvterm +time([[Setup for nvterm]], true) +try_loadstring("\27LJ\2\nK\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\vnvterm\18load_mappings\15core.utils\frequire\0", "setup", "nvterm") +time([[Setup for nvterm]], false) +-- Setup for: nvim-tree.lua +time([[Setup for nvim-tree.lua]], true) +try_loadstring("\27LJ\2\nM\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\rnvimtree\18load_mappings\15core.utils\frequire\0", "setup", "nvim-tree.lua") +time([[Setup for nvim-tree.lua]], false) +-- Setup for: Comment.nvim +time([[Setup for Comment.nvim]], true) +try_loadstring("\27LJ\2\nL\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\fcomment\18load_mappings\15core.utils\frequire\0", "setup", "Comment.nvim") +time([[Setup for Comment.nvim]], false) +-- Setup for: gitsigns.nvim +time([[Setup for gitsigns.nvim]], true) +try_loadstring("\27LJ\2\n?\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\rgitsigns\19core.lazy_load\frequire\0", "setup", "gitsigns.nvim") +time([[Setup for gitsigns.nvim]], false) +-- Setup for: telescope.nvim +time([[Setup for telescope.nvim]], true) +try_loadstring("\27LJ\2\nN\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\14telescope\18load_mappings\15core.utils\frequire\0", "setup", "telescope.nvim") +time([[Setup for telescope.nvim]], false) +-- Setup for: nvim-treesitter +time([[Setup for nvim-treesitter]], true) +try_loadstring("\27LJ\2\nW\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\20nvim-treesitter\17on_file_open\19core.lazy_load\frequire\0", "setup", "nvim-treesitter") +time([[Setup for nvim-treesitter]], false) +-- Config for: trouble.nvim +time([[Config for trouble.nvim]], true) +try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\ftrouble\frequire\0", "config", "trouble.nvim") +time([[Config for trouble.nvim]], false) +-- Config for: base46 +time([[Config for base46]], true) +try_loadstring("\27LJ\2\nK\0\0\4\0\4\0\t6\0\0\0006\2\1\0'\3\2\0B\0\3\3\15\0\0\0X\2\29\2\3\1B\2\1\1K\0\1\0\15load_theme\vbase46\frequire\npcall\0", "config", "base46") +time([[Config for base46]], false) +-- Load plugins in order defined by `after` +time([[Sequenced loading]], true) +vim.cmd [[ packadd ui ]] + +-- Config for: ui +try_loadstring("\27LJ\2\nI\0\0\4\0\4\0\t6\0\0\0006\2\1\0'\3\2\0B\0\3\3\15\0\0\0X\2\29\2\3\1B\2\1\1K\0\1\0\nsetup\14nvchad_ui\frequire\npcall\0", "config", "ui") + +time([[Sequenced loading]], false) + +-- Command lazy-loads +time([[Defining lazy-load commands]], true) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file TSEnable lua require("packer.load")({'nvim-treesitter'}, { cmd = "TSEnable", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file TSDisable lua require("packer.load")({'nvim-treesitter'}, { cmd = "TSDisable", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file TSModuleInfo lua require("packer.load")({'nvim-treesitter'}, { cmd = "TSModuleInfo", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Telescope lua require("packer.load")({'telescope.nvim'}, { cmd = "Telescope", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file PackerLoad lua require("packer.load")({'packer.nvim'}, { cmd = "PackerLoad", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file TSBufEnable lua require("packer.load")({'nvim-treesitter'}, { cmd = "TSBufEnable", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file TSInstall lua require("packer.load")({'nvim-treesitter'}, { cmd = "TSInstall", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file NvimTreeFocus lua require("packer.load")({'nvim-tree.lua'}, { cmd = "NvimTreeFocus", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file PackerSnapshot lua require("packer.load")({'packer.nvim'}, { cmd = "PackerSnapshot", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file PackerSnapshotRollback lua require("packer.load")({'packer.nvim'}, { cmd = "PackerSnapshotRollback", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file PackerSnapshotDelete lua require("packer.load")({'packer.nvim'}, { cmd = "PackerSnapshotDelete", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file PackerInstall lua require("packer.load")({'packer.nvim'}, { cmd = "PackerInstall", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file PackerUpdate lua require("packer.load")({'packer.nvim'}, { cmd = "PackerUpdate", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file PackerClean lua require("packer.load")({'packer.nvim'}, { cmd = "PackerClean", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file PackerCompile lua require("packer.load")({'packer.nvim'}, { cmd = "PackerCompile", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file PackerStatus lua require("packer.load")({'packer.nvim'}, { cmd = "PackerStatus", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file PackerProfile lua require("packer.load")({'packer.nvim'}, { cmd = "PackerProfile", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file PackerSync lua require("packer.load")({'packer.nvim'}, { cmd = "PackerSync", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file NvimTreeToggle lua require("packer.load")({'nvim-tree.lua'}, { cmd = "NvimTreeToggle", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Mason lua require("packer.load")({'mason.nvim'}, { cmd = "Mason", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file MasonInstall lua require("packer.load")({'mason.nvim'}, { cmd = "MasonInstall", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file MasonInstallAll lua require("packer.load")({'mason.nvim'}, { cmd = "MasonInstallAll", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file MasonUninstall lua require("packer.load")({'mason.nvim'}, { cmd = "MasonUninstall", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file MasonUninstallAll lua require("packer.load")({'mason.nvim'}, { cmd = "MasonUninstallAll", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file MasonLog lua require("packer.load")({'mason.nvim'}, { cmd = "MasonLog", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file TSBufDisable lua require("packer.load")({'nvim-treesitter'}, { cmd = "TSBufDisable", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +time([[Defining lazy-load commands]], false) + +-- Keymap lazy-loads +time([[Defining lazy-load keymaps]], true) +vim.cmd [[noremap gc lua require("packer.load")({'Comment.nvim'}, { keys = "gc", prefix = "" }, _G.packer_plugins)]] +vim.cmd [[noremap gb lua require("packer.load")({'Comment.nvim'}, { keys = "gb", prefix = "" }, _G.packer_plugins)]] +time([[Defining lazy-load keymaps]], false) + +vim.cmd [[augroup packer_load_aucmds]] +vim.cmd [[au!]] + -- Filetype lazy-loads +time([[Defining lazy-load filetype autocommands]], true) +vim.cmd [[au FileType alpha ++once lua require("packer.load")({'nvim-tree.lua'}, { ft = "alpha" }, _G.packer_plugins)]] +vim.cmd [[au FileType gitcommit ++once lua require("packer.load")({'gitsigns.nvim'}, { ft = "gitcommit" }, _G.packer_plugins)]] +time([[Defining lazy-load filetype autocommands]], false) + -- Event lazy-loads +time([[Defining lazy-load event autocommands]], true) +vim.cmd [[au InsertEnter * ++once lua require("packer.load")({'friendly-snippets'}, { event = "InsertEnter *" }, _G.packer_plugins)]] +time([[Defining lazy-load event autocommands]], false) +vim.cmd("augroup END") + +_G._packer.inside_compile = false +if _G._packer.needs_bufread == true then + vim.cmd("doautocmd BufRead") +end +_G._packer.needs_bufread = false + +if should_profile then save_profiles() end + +end) + +if not no_errors then + error_msg = error_msg:gsub('"', '\\"') + vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None') +end diff --git a/private_dot_config/polybar/blocks/bars.ini b/private_dot_config/polybar/blocks/bars.ini new file mode 100644 index 0000000..c245f34 --- /dev/null +++ b/private_dot_config/polybar/blocks/bars.ini @@ -0,0 +1,600 @@ +;; ┌────────────────────────────────────────────────────┐ +;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▄░█▀█░█▀▄░█▀▀│ +;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█▀▄░█▀█░█▀▄░▀▀█│ +;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀░░▀░▀░▀░▀░▀▀▀│ +;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░│ +;; └────────────────────────────────────────────────────┘ + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[bar] +fill = ⏽ +empty = ⏽ +indicator = ⏽ +; Nerd font :   ,  ⏽,  樂 籠 錄 , 雷 絛 + +[module/volume] +type = internal/alsa + +; Soundcard to be used +; Usually in the format hw:# where # is the card number +; You can find the different card numbers in `/proc/asound/cards` +master-soundcard = default +speaker-soundcard = default +headphone-soundcard = default + +; Name of the master, speaker and headphone mixers +; Use the following command to list available mixer controls: +; $ amixer scontrols | sed -nr "s/.*'([[:alnum:]]+)'.*/\1/p" +; If master, speaker or headphone-soundcard isn't the default, +; use `amixer -c # scontrols` instead where # is the number +; of the master, speaker or headphone soundcard respectively +; +; Default: Master +master-mixer = Master + +; Optionally define speaker and headphone mixers +; Default: none +;;speaker-mixer = Speaker +; Default: none +;;headphone-mixer = Headphone + +; NOTE: This is required if headphone_mixer is defined +; Use the following command to list available device controls +; $ amixer controls | sed -r "/CARD/\!d; s/.*=([0-9]+).*name='([^']+)'.*/printf '%3.0f: %s\n' '\1' '\2'/e" | sort +; You may also need to use `amixer -c # controls` as above for the mixer names +; Default: none +;;headphone-id = 9 + +; Use volume mapping (similar to amixer -M and alsamixer), where the increase in volume is linear to the ear +; Default: false +;;mapped = true + +; Interval for volume increase/decrease (in percent points) +; Default: 5 +interval = 5 + +; Available tags: +; (default) +; +; +format-volume = +format-volume-prefix =  +format-volume-prefix-padding = 1 +format-volume-prefix-background = ${color.blue} +format-volume-prefix-foreground = ${color.foreground} +format-volume-background = ${color.background-alt} +format-volume-foreground = ${color.foreground} +format-volume-overline = ${color.background} +format-volume-underline = ${color.background} + +; Available tags: +; (default) +; +; +format-muted = +format-muted-prefix =  +format-muted-prefix-padding = 1 +format-muted-prefix-background = ${color.red} +format-muted-overline = ${color.background} +format-muted-underline = ${color.background} + +; Available tokens: +; %percentage% (default) +label-volume = %percentage%% +label-volume-background = ${color.background-alt} +label-volume-padding = 1 + +; Available tokens: +; %percentage% (default +label-muted = "Muted" +label-muted-foreground = ${color.foreground} +label-muted-background = ${color.background-alt} +label-muted-padding = 1 + +; Only applies if is used +ramp-volume-0 =  +ramp-volume-1 =  +ramp-volume-2 =  +ramp-volume-background = ${color.blue} +ramp-volume-padding = 1 + +; Only applies if is used +bar-volume-format = " %fill%%indicator%%empty% " +bar-volume-width = 10 +bar-volume-gradient = false + +bar-volume-indicator = ${bar.indicator} +bar-volume-indicator-foreground = ${color.foreground} + +bar-volume-fill = ${bar.fill} +bar-volume-foreground-0 = ${color.foreground} +bar-volume-foreground-1 = ${color.foreground} +bar-volume-foreground-2 = ${color.foreground} + +bar-volume-empty = ${bar.empty} +bar-volume-empty-foreground = ${color.gray} + +; If defined, it will replace when +; headphones are plugged in to `headphone_control_numid` +; If undefined, will be used for both +; Only applies if is used +ramp-headphones-0 =  +ramp-headphones-background = ${color.blue} +ramp-headphones-padding = 1 + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/brightness] +;type = internal/xbacklight +type = internal/backlight + +; Use the following command to list available cards: +; $ ls -1 /sys/class/backlight/ +;card = intel_backlight +card = amdgpu_bl0 + +; Available tags: +;