~andreafeletto/dotfiles

004fff943276165cc4b2ebf07bb873c4fdae4e7d — Andrea Feletto a month ago 277a396
update

added and removed packages
added screenshot script
added print key to sxhkd
added smart-backspace and pairs plugins to vis
M git/.config/git/config => git/.config/git/config +2 -0
@@ 1,6 1,8 @@
[user]
	email = andrea@andreafeletto.com
	name = Andrea Feletto
[init]
	defaultBranch = main
[pull]
	rebase = false
[sendemail]

M packages => packages +22 -52
@@ 1,9 1,10 @@

# AUR helpers
# package managers
npm
python-pip
yay

# login
kmscon-patched-git
greetd
greetd-tuigreet-bin



@@ 22,9 23,20 @@ hdparm
laptop-mode-tools
nvme-cli

# terminal
alacritty
tmux
# 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


@@ 57,9 69,6 @@ xcircuit
jupyter-gnuplot_kernel
jupyter-octave_kernel
jupyterlab
maxima-jupyter-git
evcxr_jupyter
python-jupytext

# GTK themes
arc-solid-gtk-theme


@@ 100,43 109,33 @@ pdfmixtool

# docs
man-pages
ruby-bropages
wikiman
xorg-docs
python-docs
arch-wiki-docs
linux-docs

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

# archives
p7zip
tar
unzip
zip

# utility
bat
bc
dex
fd
fzf
gource
graphviz
htop
neofetch
nodejs-fx
ripgrep
rmtrash
stow
tree


@@ 144,18 143,8 @@ usbutils
words
xdg-user-dirs
xdg-utils
xpub
xurls

# linters
bash-language-server
bashate
ctags
languagetool
shellcheck
shfmt
vint

# vis
vis
vis-cscope-git


@@ 163,6 152,8 @@ 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



@@ 174,7 165,6 @@ texlive-most

# system
cronie
incron
openssh
pacman-contrib
pacutils


@@ 200,32 190,13 @@ scrot
sxiv

# python
autopep8
flake8
python-arrow
python-beautifulsoup4
python-colorama
python-dask
python-holoviews
python-markdown
python-matplotlib
python-numpy
python-pandas
python-panel
python-pip
python-progress
python-pygments
python-pylint
python-pynvim
python-requests
python-scikit-learn
python-scipy
python-seaborn
python-selenium
python-statsmodels
python-virtualenv
python-xlrd
python2-pynvim

# perl
perl-term-readline-gnu


@@ 236,4 207,3 @@ perl-log-log4perl
bsd-games
picomc
teeworlds


A sh/.local/bin/screenshot => sh/.local/bin/screenshot +6 -0
@@ 0,0 1,6 @@
#!/bin/sh

path=$HOME/pictures/screenshots
printf 'saving into: %s\n' "$path" 2>&1
mkdir -pv "$path" 2>&1
scrot --silent --overwrite "$path/$(date +%F-%H-%M-%S).png"

M sh/.profile => sh/.profile +0 -2
@@ 6,8 6,6 @@ export TERMINAL='st'
export READER='zathura'
export WM='dwm'

export _JAVA_AWT_WM_NONREPARENTING='1'

## __  ______   ____
## \ \/ /  _ \ / ___|
##  \  /| | | | |  _

M sxhkd/.config/sxhkd/sxhkdrc => sxhkd/.config/sxhkd/sxhkdrc +3 -6
@@ 7,16 7,10 @@ super + e
    $TERMINAL
super + a
    $TERMINAL -e fff
super + Return
    emacsclient -c
super + b
    blueman-manager
super + o
    xdg-open "$(dbrowse)"
super + p
    opass -p -y
super + c
    $TERMINAL -e nvim -c 'Codi python'
ctrl + super + space
    slock



@@ 30,5 24,8 @@ XF86AudioMute
{XF86AudioPrev,XF86AudioNext,XF86AudioPlay}
    mpc {prev,next,toggle}

Print
    screenshot

super + shift + Delete
    prompt "Shutdown?" "shutdown now"

M vis/.config/vis/visrc.lua => vis/.config/vis/visrc.lua +12 -4
@@ 1,12 1,21 @@
require('vis')
require('plugins/cscope')
require('plugins/open_rej')
require('plugins/pairs')
require('plugins/vis-smart-backspace')
require('plugins/vis-surround')

fzf = require('plugins/fzf-open')
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"

toggler = require('plugins/vis-toggler')
toggler.config = require('plugins/vis-toggler.defaults')



@@ 15,19 24,18 @@ vis.events.subscribe(vis.events.INIT, function()
	vis:command('set theme base16-gruvbox-dark-pale')

	-- System Clipboard --
	vis:map(vis.modes.NORMAL, ' p', '"+<vis-put-after>')
	vis:map(vis.modes.NORMAL, ' P', '"+<vis-put-before>')
	vis:map(vis.modes.NORMAL, ' y', '"+<vis-operator-yank>')
	vis:map(vis.modes.VISUAL, ' y', '"+<vis-operator-yank>')

	-- Custom Keybindings --
	vis:map(vis.modes.NORMAL, ' f', ':fzf<Enter>')
	vis:map(vis.modes.NORMAL, ' f', ':fzf<Enter><Enter>')

	-- Disable Arrows --
	keys = {'<Left>', '<Right>', '<Up>', '<Down>'}
	for _, key in ipairs(keys) do
		vis:map(vis.modes.NORMAL, key, '')
		vis:map(vis.modes.INSERT, key, '')
		vis:map(vis.modes.VISUAL, key, '')
	end
end)


M x11/.xinitrc => x11/.xinitrc +4 -1
@@ 6,10 6,13 @@ xset r rate 200 50
setxkbmap -layout it
setxkbmap -option "caps:swapescape"

export _JAVA_AWT_WM_NONREPARENTING='1'

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

exec dwm