BIG COMMIT
This commit is contained in:
parent
dd959e90ad
commit
346e57e5eb
17
arch_install
17
arch_install
|
@ -30,7 +30,7 @@ echo (){
|
|||
#ABOUT#{{{
|
||||
# This script will set up an Arch installation with a 100 MB /boot partition
|
||||
# and an encrypted LVM partition with swap and / inside. It also installs
|
||||
# and configures systemd as the init system (removing sysvinit).
|
||||
# and configures systemd as the init system.
|
||||
#
|
||||
# You should read through this script before running it in case you want to
|
||||
# make any modifications, in particular, the variables just below, and the
|
||||
|
@ -51,8 +51,8 @@ DRIVE='/dev/sda'
|
|||
# Hostname of the installed machine.
|
||||
HOSTNAME='arch'
|
||||
|
||||
# Encrypt everything (except /boot). Leave blank to disable.
|
||||
ENCRYPT_DRIVE=''
|
||||
# Encrypt everything (except /boot). true or false
|
||||
ENCRYPT_DRIVE=false
|
||||
|
||||
# Passphrase used to encrypt the drive (leave blank to be prompted).
|
||||
DRIVE_PASSPHRASE=''
|
||||
|
@ -195,7 +195,8 @@ setup() {
|
|||
echo 'Creating partitions'
|
||||
partition_drive "$DRIVE"
|
||||
|
||||
if "$ENCRYPT_DRIVE";then
|
||||
if "$ENCRYPT_DRIVE"
|
||||
then
|
||||
local lvm_part="/dev/mapper/lvm"
|
||||
|
||||
if [ -z "$DRIVE_PASSPHRASE" ];then
|
||||
|
@ -247,7 +248,7 @@ setup() {
|
|||
disk_clean(){
|
||||
echo 'cleaning disk'
|
||||
|
||||
umount -R /mnt || true
|
||||
umount --recursive --quiet /mnt || true
|
||||
swapoff -a
|
||||
|
||||
pvs "$DRIVE"2 || return 0
|
||||
|
@ -427,7 +428,8 @@ unmount_filesystems() {
|
|||
umount -R /mnt
|
||||
swapoff /dev/vg00/swap
|
||||
vgchange -an
|
||||
if [ -n "$ENCRYPT_DRIVE" ];then
|
||||
if $ENCRYPT_DRIVE
|
||||
then
|
||||
cryptsetup luksClose lvm
|
||||
fi
|
||||
}
|
||||
|
@ -577,7 +579,8 @@ set_initcpio() {
|
|||
fi
|
||||
|
||||
local encrypt=""
|
||||
if [ -n "$ENCRYPT_DRIVE" ];then
|
||||
if $ENCRYPT_DRIVE
|
||||
then
|
||||
encrypt="encrypt keyboard"
|
||||
fi
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
config:
|
||||
backup: true
|
||||
banner: false
|
||||
create: false
|
||||
dotpath: dotfiles
|
||||
keepdot: false
|
||||
link_dotfile_default: nolink
|
||||
|
@ -27,6 +26,7 @@ profiles:
|
|||
- d_zathura
|
||||
- d_wallpapers
|
||||
- mime
|
||||
- fusuma.yml
|
||||
variables:
|
||||
key:
|
||||
left: h
|
||||
|
@ -56,7 +56,7 @@ dotfiles:
|
|||
src: teste
|
||||
dst: ~/teste
|
||||
f_fish:
|
||||
src: config/config.fish
|
||||
src: config/fish.fish
|
||||
dst: ~/.config/fish/config.fish
|
||||
f_mako:
|
||||
src: config/mako.conf
|
||||
|
@ -97,6 +97,9 @@ dotfiles:
|
|||
mime:
|
||||
src: mime/
|
||||
dst: ~/
|
||||
fusuma.yml:
|
||||
src: config/fusuma.yml
|
||||
dst: ~/.config/fusuma/config.yml
|
||||
actions:
|
||||
notify: notify-send "Updating dotfiles"
|
||||
makoreload: makoctl reload
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#
|
||||
# {{@@ header() @@}}
|
||||
# LEL
|
||||
# __ _ _
|
||||
# / _(_)___| |__
|
|
@ -0,0 +1,23 @@
|
|||
swipe:
|
||||
3:
|
||||
left:
|
||||
command: 'swaymsg workspace prev'
|
||||
right:
|
||||
command: 'swaymsg workspace next'
|
||||
up:
|
||||
command: 'swaymsg fullscreen toggle'
|
||||
down:
|
||||
command: 'launcher'
|
||||
# pinch:
|
||||
# in:
|
||||
# command: 'xdotool key ctrl+shift+plus'
|
||||
# out:
|
||||
# command: 'xdotool key ctrl+minus'
|
||||
|
||||
# threshold:
|
||||
# swipe: 1
|
||||
# # pinch: 0.2
|
||||
|
||||
# interval:
|
||||
# swipe: 0.5
|
||||
# # pinch: 0.2
|
|
@ -1,3 +1,4 @@
|
|||
# {{@@ header() @@}}
|
||||
# font_family Hack
|
||||
font_family {{@@ font.mono @@}}
|
||||
font_size 12
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# {{@@ header() @@}}
|
||||
font={{@@ font.interface @@}} 12
|
||||
text-color={{@@ color.txt @@}}
|
||||
background-color={{@@ color.bg @@}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"
|
||||
" {{@@ header() @@}}
|
||||
" LEL
|
||||
" _
|
||||
" _ ____ _(_)_ __ ___
|
||||
|
@ -212,7 +212,7 @@ call plug#end()
|
|||
imap jj <ESC>
|
||||
|
||||
"I deserve the death sentence
|
||||
nmap <C-s> :w<CR>
|
||||
nmap <C-s> :wa<CR>
|
||||
|
||||
"open and close folds
|
||||
nmap <silent> {{@@ key.right @@}} <right>
|
||||
|
@ -233,9 +233,13 @@ call plug#end()
|
|||
map e <Plug>(easymotion-prefix)
|
||||
set ignorecase
|
||||
|
||||
map <C-j> :GFiles<CR>
|
||||
|
||||
"" coc {{{
|
||||
|
||||
"allow json comments
|
||||
autocmd FileType json syntax match Comment +\/\/.\+$+
|
||||
autocmd FileType json syntax match Comment +\/\/.\+$+
|
||||
|
||||
" Don't pass messages to |ins-completion-menu|.
|
||||
set shortmess+=c
|
||||
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
#!/bin/env python
|
||||
# {{@@ header() @@}}
|
||||
|
||||
|
||||
# pylint: disable=C0111
|
||||
# type: ignore
|
||||
from qutebrowser.config.configfiles import ConfigAPI # noqa: F401
|
||||
from qutebrowser.config.config import ConfigContainer # noqa: F401
|
||||
|
||||
|
||||
# fmt: off
|
||||
config = config # type: ConfigAPI # noqa: F821 pylint: disable=E0602,C0103
|
||||
c = c # type: ConfigContainer # noqa: F821 pylint: disable=E0602,C0103
|
||||
|
|
|
@ -1,31 +1,14 @@
|
|||
# ===================================================================
|
||||
# This file contains the default startup commands for ranger.
|
||||
# To change them, it is recommended to create either /etc/ranger/rc.conf
|
||||
# (system-wide) or ~/.config/ranger/rc.conf (per user) and add your custom
|
||||
# commands there.
|
||||
#
|
||||
# If you copy this whole file there, you may want to set the environment
|
||||
# variable RANGER_LOAD_DEFAULT_RC to FALSE to avoid loading it twice.
|
||||
#
|
||||
# The purpose of this file is mainly to define keybindings and settings.
|
||||
# For running more complex python code, please create a plugin in "plugins/" or
|
||||
# a command in "commands.py".
|
||||
#
|
||||
# Each line is a command that will be run before the user interface
|
||||
# is initialized. As a result, you can not use commands which rely
|
||||
# on the UI such as :delete or :mark.
|
||||
# ===================================================================
|
||||
# {{@@ header() @@}}
|
||||
# _ __ __ _ _ __ __ _ ___ _ __
|
||||
# | '__/ _` | '_ \ / _` |/ _ \ '__|
|
||||
# | | | (_| | | | | (_| | __/ |
|
||||
# |_| \__,_|_| |_|\__, |\___|_|
|
||||
# |___/
|
||||
|
||||
# ===================================================================
|
||||
# == Options
|
||||
# ===================================================================
|
||||
# == Options{{{
|
||||
|
||||
# Which viewmode should be used? Possible values are:
|
||||
# miller: Use miller columns which show multiple levels of the hierarchy
|
||||
# multipane: Midnight-commander like multipane view showing all tabs next
|
||||
# to each other
|
||||
# Use miller columns which show multiple levels of the hierarchy
|
||||
set viewmode miller
|
||||
#set viewmode multipane
|
||||
|
||||
# How many columns are there, and what are their relative widths?
|
||||
set column_ratios 1,3,4
|
||||
|
@ -44,7 +27,7 @@ set confirm_on_delete multiple
|
|||
# Use non-default path for file preview script?
|
||||
# ranger ships with scope.sh, a script that calls external programs (see
|
||||
# README.md for dependencies) to preview images, archives, etc.
|
||||
# set preview_script ~/.config/ranger/scope.sh
|
||||
set preview_script ~/.config/ranger/scope.sh
|
||||
|
||||
# Use the external preview script or display simple plain text or image previews?
|
||||
set use_preview_script true
|
||||
|
@ -68,9 +51,9 @@ set vcs_backend_bzr disabled
|
|||
set vcs_backend_svn disabled
|
||||
|
||||
# Use one of the supported image preview protocols
|
||||
set preview_images true
|
||||
# set preview_images true
|
||||
|
||||
# Set the preview image method. Supported methods:
|
||||
# Set the preview image method. Supported methods:{{{
|
||||
#
|
||||
# * w3m (default):
|
||||
# Preview images in full color with the external command "w3mimgpreview"?
|
||||
|
@ -107,8 +90,8 @@ set preview_images true
|
|||
# for example during an ssh session.
|
||||
# Tmux is unsupported.
|
||||
|
||||
set preview_images_method kitty
|
||||
|
||||
# set preview_images_method kitty
|
||||
# }}}
|
||||
# Delay in seconds before displaying an image with the w3m method.
|
||||
# Increase it in case of experiencing display corruption.
|
||||
set w3m_delay 0.02
|
||||
|
@ -290,17 +273,12 @@ set global_inode_type_filter
|
|||
# This setting allows to freeze the list of files to save I/O bandwidth. It
|
||||
# should be 'false' during start-up, but you can toggle it by pressing F.
|
||||
set freeze_files false
|
||||
|
||||
# ===================================================================
|
||||
# == Local Options
|
||||
# ===================================================================
|
||||
# You can set local options that only affect a single directory.
|
||||
|
||||
# Examples:
|
||||
# setlocal path=~/downloads sort mtime
|
||||
|
||||
# ===================================================================
|
||||
# == Command Aliases in the Console
|
||||
# }}}
|
||||
# == Local Options{{{
|
||||
#
|
||||
setlocal path=~/downloads sort mtime
|
||||
# }}}
|
||||
# == Command Aliases in the Console{{{
|
||||
# ===================================================================
|
||||
|
||||
alias e edit
|
||||
|
@ -319,9 +297,8 @@ alias unmark scout -Mr
|
|||
alias search scout -rs
|
||||
alias search_inc scout -rts
|
||||
alias travel scout -aefklst
|
||||
|
||||
# ===================================================================
|
||||
# == Define keys for the browser
|
||||
# }}}
|
||||
# == Define keys for the browser{{{
|
||||
# ===================================================================
|
||||
|
||||
# Basic
|
||||
|
@ -602,13 +579,12 @@ eval for arg in "rwxXst": cmd("map -g{0} shell -f chmod g-{0} %s".format(arg))
|
|||
eval for arg in "rwxXst": cmd("map -o{0} shell -f chmod o-{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map -a{0} shell -f chmod a-{0} %s".format(arg))
|
||||
eval for arg in "rwxXst": cmd("map -{0} shell -f chmod u-{0} %s".format(arg))
|
||||
|
||||
# ===================================================================
|
||||
# == Define keys for the console
|
||||
# ===================================================================
|
||||
# Note: Unmapped keys are passed directly to the console.
|
||||
# }}}
|
||||
# Define keys for the console{{{
|
||||
#
|
||||
|
||||
# Basic
|
||||
#
|
||||
cmap <tab> eval fm.ui.console.tab()
|
||||
cmap <s-tab> eval fm.ui.console.tab(-1)
|
||||
cmap <ESC> eval fm.ui.console.close()
|
||||
|
@ -619,6 +595,7 @@ copycmap <ESC> <C-c>
|
|||
copycmap <CR> <C-j>
|
||||
|
||||
# Move around
|
||||
#
|
||||
cmap <up> eval fm.ui.console.history_move(-1)
|
||||
cmap <down> eval fm.ui.console.history_move(1)
|
||||
cmap <left> eval fm.ui.console.move(left=1)
|
||||
|
@ -632,6 +609,7 @@ copycmap <a-b> <a-left>
|
|||
copycmap <a-f> <a-right>
|
||||
|
||||
# Line Editing
|
||||
#
|
||||
cmap <backspace> eval fm.ui.console.delete(-1)
|
||||
cmap <delete> eval fm.ui.console.delete(0)
|
||||
cmap <C-w> eval fm.ui.console.delete_word()
|
||||
|
@ -641,6 +619,7 @@ cmap <C-u> eval fm.ui.console.delete_rest(-1)
|
|||
cmap <C-y> eval fm.ui.console.paste()
|
||||
|
||||
# And of course the emacs way
|
||||
#
|
||||
copycmap <ESC> <C-g>
|
||||
copycmap <up> <C-p>
|
||||
copycmap <down> <C-n>
|
||||
|
@ -657,10 +636,8 @@ copycmap <backspace> <backspace2>
|
|||
|
||||
# This special expression allows typing in numerals:
|
||||
cmap <allow_quantifiers> false
|
||||
|
||||
# ===================================================================
|
||||
# == Pager Keybindings
|
||||
# ===================================================================
|
||||
# }}}
|
||||
# Pager Keybindings {{{
|
||||
|
||||
# Movement
|
||||
pmap <down> pager_move down=1
|
||||
|
@ -684,18 +661,16 @@ copypmap <C-d> d
|
|||
copypmap <C-u> u
|
||||
copypmap <PAGEDOWN> l f <C-F> <Space>
|
||||
copypmap <PAGEUP> p b <C-B>
|
||||
|
||||
# Basic
|
||||
# }}}
|
||||
# Basic{{{
|
||||
pmap <C-l> redraw_window
|
||||
pmap <ESC> pager_close
|
||||
copypmap <ESC> q Q i <F3>
|
||||
pmap E edit_file
|
||||
# }}}
|
||||
# Taskview Keybindings
|
||||
|
||||
# ===================================================================
|
||||
# == Taskview Keybindings
|
||||
# ===================================================================
|
||||
|
||||
# Movement
|
||||
# Movement{{{
|
||||
tmap <up> taskview_move up=1
|
||||
tmap <down> taskview_move down=1
|
||||
tmap <home> taskview_move to=0
|
||||
|
@ -712,15 +687,15 @@ copytmap <END> G
|
|||
copytmap <C-u> u
|
||||
copytmap <PAGEDOWN> n f <C-F> <Space>
|
||||
copytmap <PAGEUP> p b <C-B>
|
||||
|
||||
# Changing priority and deleting tasks
|
||||
# }}}
|
||||
# Changing priority and deleting tasks{{{
|
||||
tmap T eval -q fm.ui.taskview.task_move(-1)
|
||||
tmap N eval -q fm.ui.taskview.task_move(0)
|
||||
tmap dd eval -q fm.ui.taskview.task_remove()
|
||||
tmap <pagedown> eval -q fm.ui.taskview.task_move(-1)
|
||||
tmap <pageup> eval -q fm.ui.taskview.task_move(0)
|
||||
tmap <delete> eval -q fm.ui.taskview.task_remove()
|
||||
|
||||
# }}}
|
||||
# Basic
|
||||
tmap <C-l> redraw_window
|
||||
tmap <ESC> taskview_close
|
||||
|
|
|
@ -102,7 +102,8 @@ handle_image() {
|
|||
# needs rotating ("1" means no rotation)...
|
||||
if [[ -n "$orientation" && "$orientation" != 1 ]]; then
|
||||
# ...auto-rotate the image according to the EXIF data.
|
||||
convert -- "${FILE_PATH}" -auto-orient "${IMAGE_CACHE_PATH}" && exit 6
|
||||
# convert -- "${FILE_PATH}" -auto-orient "${IMAGE_CACHE_PATH}" && exit 6
|
||||
convert -- "${FILE_PATH}" -resize 64x64 "${IMAGE_CACHE_PATH}" && exit 6
|
||||
fi
|
||||
|
||||
# `w3mimgdisplay` will be called for all images (unless overriden as above),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#
|
||||
# {{@@ header() @@}}
|
||||
# LEL
|
||||
# _____ ____ _ _ _
|
||||
# / __\ \ /\ / / _` | | | |
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// {{@@ header() @@}}
|
||||
{
|
||||
"position":"{{@@ bar_pos @@}}",
|
||||
"layer":"top",
|
||||
|
@ -156,4 +157,4 @@
|
|||
|
||||
|
||||
}
|
||||
# vim:ft=json
|
||||
// vim:ft=json
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
# bmenu * - use as dmenu, -p for custom prompt (man bemenu)
|
||||
# bmenu run - select from .desktop files and run it
|
||||
# bmenu start - internal option
|
||||
if test "$argv[1]" != "start" || test "$argv[1]" = "run"
|
||||
if test "$argv[1]" != "start" || test "$argv[1]" = "run"
|
||||
test -n "$SWAYSOCK" && swaymsg fullscreen off > /dev/null
|
||||
end
|
||||
|
||||
if test "$argv[1]" = "run"
|
||||
if test "$argv[1]" = "run"
|
||||
test -n "$2" && set t "$2" || set t "terminal"
|
||||
exec j4-dmenu-desktop --dmenu="bmenu start -p Iniciar:" --term "$t"
|
||||
end
|
||||
|
@ -25,9 +25,9 @@ bemenu \
|
|||
--no-overlap\
|
||||
--list 20\
|
||||
--prefix '->'\
|
||||
--fn "FiraCode 12"\
|
||||
--tb "#242424" --tf "#cc5757" \
|
||||
--fb "#242424" --ff "#cccccc" \
|
||||
--nb "#202020" --nf "#cccccc" \
|
||||
--hb "#303030" --hf "#cc5757" \
|
||||
--fn "{{@@ font.mono @@}} 12"\
|
||||
--tb "{{@@ color.bg @@}}" --tf "{{@@ color.accent @@}}" \
|
||||
--fb "{{@@ color.bg @@}}" --ff "{{@@ color.txt @@}}" \
|
||||
--nb "{{@@ color.bg @@}}" --nf "{{@@ color.txt @@}}" \
|
||||
--hb "{{@@ color.bg_light @@}}" --hf "{{@@ color.accent @@}}" \
|
||||
$argv
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/fish
|
||||
|
||||
if not command -v qemu-system-x86_64 > /dev/null
|
||||
echo qemu not installed
|
||||
echo qemu not installed
|
||||
exit 1
|
||||
end
|
||||
|
||||
|
@ -9,6 +9,7 @@ end
|
|||
# -boot order=d \
|
||||
# -nic none\
|
||||
# -usb -device usb-tablet \
|
||||
# -vga qxl \
|
||||
|
||||
qemu-system-x86_64 \
|
||||
-enable-kvm \
|
||||
|
@ -16,6 +17,7 @@ qemu-system-x86_64 \
|
|||
-cpu host \
|
||||
-smp (nproc) \
|
||||
-display sdl,gl=on \
|
||||
-vga qxl \
|
||||
-audiodev pa,id=pa \
|
||||
-audiodev pa,id=snd0 \
|
||||
-device ich9-intel-hda \
|
||||
-device hda-output,audiodev=snd0\
|
||||
-drive file="$HOME/.local/share/windows10.img",format=raw
|
||||
|
|
Reference in New Issue