feat: am -a, remove MOZ_ENABLE_WAYLAND, cleanup

This commit is contained in:
AngeD 2022-12-31 22:38:33 +01:00
parent 6209d7889d
commit 1cfdbe4c7e
17 changed files with 39 additions and 25 deletions

View File

@ -1,5 +1,3 @@
-- packages
-- variables
vim.opt_local.colorcolumn = "50"

View File

@ -1,5 +1,3 @@
-- packages
-- variables
vim.opt_local.shiftwidth = 2
vim.opt_local.tabstop = 2

View File

@ -1,5 +1,3 @@
-- packages
-- variables
vim.opt_local.shiftwidth = 2
vim.opt_local.tabstop = 2

View File

@ -1,7 +1,5 @@
-- packages
-- variables
vim.cmd("let g:black_linelength=79")
vim.g.black_linelength = 79
-- keybindings
vim.keymap.set("n", "<Leader>f", "<cmd>Black<CR>", {buffer=true})

View File

@ -1,5 +1,3 @@
-- packages
-- variables
vim.opt_local.shiftwidth = 2
vim.opt_local.tabstop = 2

View File

@ -1,5 +1,3 @@
-- packages
-- variables
vim.opt_local.shiftwidth = 2
vim.opt_local.tabstop = 2

View File

@ -49,6 +49,7 @@ require"theme"
require"pack-dirdiff"
require"pack-easy-align"
require"pack-grammalecte"
require"pack-indent-blankline"
require"pack-lspconfig"
require"pack-telescope"

View File

@ -0,0 +1,3 @@
vim.cmd("packadd grammalecte")
vim.g.grammalecte_cli_py = "/usr/bin/grammalecte-cli"

@ -0,0 +1 @@
Subproject commit a0ce51a77e56151f62ddbfd10e7dec46000f2848

@ -1 +1 @@
Subproject commit 9f7eed8133d62457f7ad2ca250eb9b837a4adeb7
Subproject commit c90e273f7b8c50a02f956c24ce4804a47f18162e

@ -1 +1 @@
Subproject commit 42ca8ce0f2252be795da4789fadfa91f6c3f7464
Subproject commit 6b43ce561d97412cc512b569db6938e44529293e

@ -1 +1 @@
Subproject commit e960efa60e97df58e089b00270f09d60f27202c8
Subproject commit a606bd10c79ec5989c76c49cc6f736e88b63f0da

@ -1 +1 @@
Subproject commit fb36ed4c9e962d9fbfa608cd4a5d9313b1e8a8b1
Subproject commit b019eb30323635d680aa2f32e498a1831676ebb1

@ -1 +1 @@
Subproject commit a3c579bf27b34942d4c6ad64e7cfd75788b05ea3
Subproject commit 55e4e6c73b2bb067974c6d49ba9da2ba1ee3295c

3
.gitmodules vendored
View File

@ -34,3 +34,6 @@
[submodule ".config/zsh/custom/themes/powerlevel10k"]
path = .config/zsh/custom/themes/powerlevel10k
url = https://github.com/romkatv/powerlevel10k.git
[submodule ".config/nvim/pack/plugins/opt/grammalecte"]
path = .config/nvim/pack/plugins/opt/grammalecte
url = https://github.com/dpelle/vim-Grammalecte.git

View File

@ -15,6 +15,4 @@ export ZLE_RPROMPT_INDENT=0
export LESSHISTFILE='-'
export MOZ_ENABLE_WAYLAND=1
export EDITOR='nvim'

30
bin/am
View File

@ -2,10 +2,10 @@
set -e
# TODO
# - mount all partitions by selecting disk
# - usage
# - support for /mnt
# - colors ?
# mount all partitions by selecting disk
# usage
# support for /mnt
# error handling (fs in use...)
function clear_output() {
local len="$1"
@ -19,10 +19,30 @@ if ! [ -t 1 ]; then
exit 1
fi
COLUMNS=1
function umount_all() {
local disks
disks=($(mount | grep udisks2 | cut -f1 -d' '))
umount "${disks[@]}"
echo "unmounted ${disks[@]}"
}
while getopts a o; do
case "$o" in
a)
umount_all
exit
;;
*)
;;
esac
done
while true; do
#readarray -t LSBLK <<< "$(lsblk -n --paths | grep -v snap)"
readarray -t LSBLK <<< "$(lsblk -n --paths --list | grep part)"
COLUMNS=1
select dev in "${LSBLK[@]}"; do
name="$(cut -f1 -d' ' <<< "$dev")"