~andreafeletto/dotfiles

cb8fd6db8dd65128af993e0bc98d9ea555be2949 — Andrea Feletto a month ago 7f43cd8 + ec341d2 t520
Merge branch 'main' into t520
M bash/.bash_aliases => bash/.bash_aliases +0 -16
@@ 16,17 16,6 @@ alias chmod='chmod -v'
alias ll='ls -ahnvL --group-directories-first --color=auto'
alias lll='ls -ahnv --group-directories-first --color=auto'
alias grep='grep --color=auto'
alias less='less -N'

for Conf in \
	'.bashrc':bashrc \
	'.bash_aliases':bashaliases \
	'.profile':profile \
	'.config/nvim/init.vim':vimrc \
	'.config/sxhkd/sxhkdrc':sxhkdrc
do
	[ -r "$HOME/${Conf%:*}" ] && alias ${Conf/*:}="$EDITOR $HOME/${Conf%:*}"
done

if type -fP rmtrash &> /dev/null; then
    alias rm='rmtrash -v'


@@ 43,11 32,6 @@ if type -fP git &> /dev/null; then
    alias gl='git log --graph --pretty=oneline --abbrev-commit'
fi

if type -fP nvim &> /dev/null; then
    alias vim='nvim'
fi

if type -fP tree &> /dev/null; then
    alias tree='tree -ahC --dirsfirst -I .git'
fi


M bash/.bashrc => bash/.bashrc +4 -6
@@ 11,13 11,11 @@ shopt -s autocd
shopt -s cdspell
shopt -s cmdhist

BCPath='/usr/share/bash-completion/bash_completion'
[ -r "$BCPath" ] && . "$BCPath"
unset BCPah
bashcomp='/usr/share/bash-completion/bash_completion'
[ -r "$bashcomp" ] && . "$bashcomp"

APath="$HOME/.bash_aliases"
[ -r "$APath" ] && . "$APath"
unset APath
aliases="$HOME/.bash_aliases"
[ -r "$aliases" ] && . "$aliases"

HISTCONTROL=erasedups:ignoreboth
HISTSIZE=

M packages => packages +94 -60
@@ 2,18 2,20 @@
# package managers
npm
python-pip
rubygems
yay

# login
greetd
greetd-tuigreet-bin

# desktop
sxhkd
# file manager
fff

# desktop daemons
sxhkd
udiskie
network-manager-applet
lolclock-git
twmn-git

# power management


@@ 23,27 25,11 @@ hdparm
laptop-mode-tools
nvme-cli

# 32bit
lib32-alsa-plugins
lib32-glibc
lib32-gcc-libs
lib32-sdl2
lib32-sdl2_mixer
lib32-libpulse
lib32-libcurl-gnutls
lib32-openssl-1.0

# spellcheck
nuspell
hunspell-en_US
hunspell-it

# shell
bash
bash-completion
dash
dosbox

# fonts
ttf-jetbrains-mono
ttf-symbola


@@ 60,11 46,17 @@ tor
# engineering
archimedes
freecad
gramps
octave
openscad
xcircuit

# gramps
gramps
geocode-glib
postgresql
python-graphviz
goocanvas

# Jupyter
jupyter-gnuplot_kernel
jupyter-octave_kernel


@@ 110,24 102,6 @@ pdfmixtool
# docs
man-pages

# dev
deno
ghc
git
nodejs
perl
python
r
ruby
rust
zig

# archives
p7zip
tar
unzip
zip

# utility
bc
dex


@@ 145,24 119,6 @@ xdg-user-dirs
xdg-utils
xurls

# vis
vis
vis-cscope-git
vis-fzf-open-git
vis-go-git
vis-open_rej-git
vis-pairs-git
vis-smart-backspace-git
vis-spellcheck-git
vis-surround-git
vis-toggler-git

# prose
pandoc
pandoc-crossref
scdoc
texlive-most

# system
cronie
openssh


@@ 189,7 145,72 @@ imagemagick
scrot
sxiv

# python
##  _   _ _____ ___ _     ___ _______   __
## | | | |_   _|_ _| |   |_ _|_   _\ \ / /
## | | | | | |  | || |    | |  | |  \ V /
## | |_| | | |  | || |___ | |  | |   | |
##  \___/  |_| |___|_____|___| |_|   |_|
## 

##  ____  ____   ___  ____  _____
## |  _ \|  _ \ / _ \/ ___|| ____|
## | |_) | |_) | | | \___ \|  _|
## |  __/|  _ <| |_| |___) | |___
## |_|   |_| \_\\___/|____/|_____|
## 

# editors
nano
vis

# compilers
pandoc
pandoc-crossref
scdoc
texlive-most

# vis plugins
vis-cscope-git
vis-fzf-open-git
vis-go-git
vis-open_rej-git
vis-pairs-git
vis-smart-backspace-git
vis-spellcheck-git
vis-surround-git
vis-toggler-git

##  ____  ____   ___   ____ ____      _    __  __ __  __ ___ _   _  ____
## |  _ \|  _ \ / _ \ / ___|  _ \    / \  |  \/  |  \/  |_ _| \ | |/ ___|
## | |_) | |_) | | | | |  _| |_) |  / _ \ | |\/| | |\/| || ||  \| | |  _
## |  __/|  _ <| |_| | |_| |  _ <  / ___ \| |  | | |  | || || |\  | |_| |
## |_|   |_| \_\\___/ \____|_| \_\/_/   \_\_|  |_|_|  |_|___|_| \_|\____|
## 

# languages
deno
ghc
git
nodejs
perl
python
r
ruby
rust
zig

# shell
bash
bash-completion
dash
dosbox

# perl modules
perl-term-readline-gnu
perl-log-log4perl

# python modules
python-bokeh
python-matplotlib
python-numpy
python-pandas


@@ 198,9 219,22 @@ python-scikit-learn
python-scipy
python-seaborn

# perl
perl-term-readline-gnu
perl-log-log4perl
##   ____    _    __  __ ___ _   _  ____
##  / ___|  / \  |  \/  |_ _| \ | |/ ___|
## | |  _  / _ \ | |\/| || ||  \| | |  _
## | |_| |/ ___ \| |  | || || |\  | |_| |
##  \____/_/   \_\_|  |_|___|_| \_|\____|
## 

# 32bit libraries
lib32-alsa-plugins
lib32-glibc
lib32-gcc-libs
lib32-sdl2
lib32-sdl2_mixer
lib32-libpulse
lib32-libcurl-gnutls
lib32-openssl-1.0

# games
0ad

M sh/.profile => sh/.profile +5 -3
@@ 1,7 1,7 @@
#!/bin/sh

export EDITOR='vis'
export BROWSER='chromium'
export BROWSER='firefox'
export TERMINAL='st'
export READER='zathura'
export WM='dwm'


@@ 37,8 37,11 @@ export GOPATH="$XDG_DATA_HOME/go"
# Gramps
export GRAMPSHOME="$XDG_CONFIG_HOME"

# Hexer
export HEXERRC="$XDG_CONFIG_HOME/hexer/hexerrc"

# IPython
export IPYTHONDIR="$XDG_CONFIG_HOME/jupyter"
export IPYTHONDIR="$XDG_CONFIG_HOME/ipython"

# Jupyter
export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME/jupyter"


@@ 92,7 95,6 @@ export WGETRC="$XDG_CONFIG_HOME/wgetrc"

PATH="$PATH:$HOME/.local/bin"
PATH="$PATH:$HOME/.local/cargo/bin"
PATH="$PATH:$HOME/.local/maple2020/bin"
PATH="$PATH:$GOPATH/bin"
PATH="$PATH:$GEM_HOME/bin"
PATH="$PATH:$XDG_DATA_HOME/npm/bin"

M vis/.config/vis/visrc.lua => vis/.config/vis/visrc.lua +12 -4
@@ 10,8 10,6 @@ fzf.fzf_args = "--height 50% --margin 5% --preview 'bat -f --style plain {}'"
prs = require('plugins/pairs')
prs.autopairs = false

-- enable: <C-w>e --
-- disable <C-w>d --
spell = require('plugins/spellcheck')
spell.cmd = "nuspell -d %s"
spell.list_cmd = "nuspell -l -d %s"


@@ 26,9 24,10 @@ vis.events.subscribe(vis.events.INIT, function()
	-- System Clipboard --
	vis:map(vis.modes.NORMAL, ' y', '"+<vis-operator-yank>')
	vis:map(vis.modes.VISUAL, ' y', '"+<vis-operator-yank>')

	-- Custom Keybindings --
	-- FZF --
	vis:map(vis.modes.NORMAL, ' f', ':fzf<Enter><Enter>')
	-- Toggle Spellcheck --
	vis:map(vis.modes.NORMAL, ' s', '<F7>')

	-- Disable Arrows --
	keys = {'<Left>', '<Right>', '<Up>', '<Down>'}


@@ 43,4 42,13 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win)
	vis:command('set relativenumbers')
	vis:command('set colorcolumn 80')
	vis:command('set cursorline')

	if win.syntax == 'python' then
		vis:command('set tabwidth 4')
		vis:command('set expandtab')
	end
	if win.syntax == 'html' then
		vis:command('set tabwidth 2')
		vis:command('set expandtab')
	end
end)

M x11/.xinitrc => x11/.xinitrc +2 -2
@@ 9,9 9,9 @@ setxkbmap -option "caps:swapescape"
export _JAVA_AWT_WM_NONREPARENTING='1'

sxhkd &
cstatus &
cstatus >/dev/null &
nm-applet &
udiskie --automount --no-notify --smart-tray &
udiskie --automount --no-notify --smart-tray --menu flat &
blueman-applet &
twmnd &


M xdg/.local/share/applications/torrent.desktop => xdg/.local/share/applications/torrent.desktop +1 -1
@@ 1,4 1,4 @@
[Desktop Entry]
Type=Application
Name=Torrent
Exec=/usr/bin/env toradd %U
Exec=/usr/bin/env transmission-remote --add %U