diff --git a/arch_install b/arch_install index b06b02d..76c06fa 100755 --- a/arch_install +++ b/arch_install @@ -65,7 +65,7 @@ USER_NAME='lelgenio' # Link to users dotfiles repo(git) # Assumed to have stow-able modules on its root(cd .dotfiles;stow*/) DOTFILES_URL="https://gitlab.com/$USER_NAME/dotfiles" -USER_SHELL='zsh' +USER_SHELL='fish' # The main user's password (leave blank to be prompted). USER_PASSWORD='' @@ -104,7 +104,7 @@ set_pkgs() { sudo pacman -Sy pkgs_base+=' base linux-zen linux-firmware intel-ucode lvm2 ' - pkgs_base+=' zsh networkmanager bluez cronie git man-db' + pkgs_base+=' fish networkmanager bluez cronie git man-db' pkgs_base+=" $(pacman -Sgq base-devel)" if $IS_BIOS;then pkgs_base+=' grub' @@ -114,10 +114,12 @@ set_pkgs() { # DE pkgs+=' sway waybar ruby-fusuma light mako udiskie bemenu wofi-hg stow yay' pkgs+=' bemenu wofi-hg j4-dmenu-desktop' + # passwords and auth + pkgs+=' pass gnupg pam-gnupg' # pkgs+=' i3 termite scrot pamixer' - pkgs+=' nemo redshift-wlr-gamma-control-git ' - pkgs+=' pkgfile kitty neovim moreutils htop-vim-git' + pkgs+=' thunar redshift-wlr-gamma-control-git ' + pkgs+=' pkgfile alacritty neovim moreutils htop-vim-git' # Audio pkgs+=' pulseaudio pavolume-git' # Fonts @@ -125,7 +127,7 @@ set_pkgs() { if $FULL_INSTALL; then # Screenshot pkgs+=' grim slurp wl-clipboard wf-recorder-git' - pkgs+=' httpie jq python-keepmenu-git' + pkgs+=' httpie jq' # Theme pkgs+=' materia-custom-accent papirus-icon-theme' pkgs+=' papirus-folders-git capitaine-cursors ' @@ -473,6 +475,9 @@ configure() { echo 'Configuring PAM' set_pam + echo 'Configuring logind' + set_logind + if [ -z "$ROOT_PASSWORD" ];then echo 'Enter the root password:' read -s ROOT_PASSWORD @@ -681,10 +686,34 @@ set_pam() { auth required pam_securetty.so auth requisite pam_nologin.so auth include system-local-login -auth optional pam_gnome_keyring.so account include system-local-login session include system-local-login -session optional pam_gnome_keyring.so auto_start + +auth optional pam_gnupg.so +session optional pam_gnupg.so +EOF + + cat > /etc/pam.d/system-local-login < /etc/systemd < /dev/null ls -F \ '#{session_attached} #{?#{==:#{session_last_attached},},1,#{session_last_attached}} #{session_id}' | diff --git a/mpv/.config/mpv/scripts/shared/sponsorblock.db b/mpv/.config/mpv/scripts/shared/sponsorblock.db index 17cd2a7..add4013 100644 Binary files a/mpv/.config/mpv/scripts/shared/sponsorblock.db and b/mpv/.config/mpv/scripts/shared/sponsorblock.db differ diff --git a/neomutt/.gnupg/gpg-agent.conf b/neomutt/.gnupg/gpg-agent.conf index 5d19d34..2d46bba 100644 --- a/neomutt/.gnupg/gpg-agent.conf +++ b/neomutt/.gnupg/gpg-agent.conf @@ -1 +1,2 @@ -pinentry-program /usr/bin/pinentry-gnome3 +allow-preset-passphrase +max-cache-ttl 86400 diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 2d3e543..9eec49c 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -124,14 +124,14 @@ call plug#end() "}}} " Gay colors{{{ - if (empty($TMUX)) + " if (empty($TMUX)) if (has('nvim')) let $NVIM_TUI_ENABLE_TRUE_COLOR = 1 endif if (has('termguicolors')) set termguicolors endif - endif + " endif colorscheme minimalist @@ -146,7 +146,7 @@ call plug#end() highlight LineNr term=bold ctermfg=9 guifg=#cc5757 guibg=None "Make whitespace dark - highlight NonText ctermfg=black guifg=#252525 guibg=None + highlight NonText ctermfg=darkgray guifg=#252525 guibg=None " highlight SpecialKey ctermfg=black guifg=#252525 guibg=None "Current line @@ -183,7 +183,7 @@ call plug#end() "}}} " Lanugage Server{{{ " - + set foldmethod=marker set hidden " let g:deoplete#enable_at_startup = 1 @@ -226,7 +226,16 @@ EOF autocmd FileType tex LLPStartPreview "}}} "groff{{{ -autocmd BufWritePost *.ms silent !compile % +augroup filetrype_groff + autocmd VimEnter *.ms set ft=groff + + autocmd VimEnter *.ms silent !zathura (string replace --regex .ms\$ .pdf "%" ) & jobs -lp > /tmp/groff-preview + autocmd VimLeave *.ms silent !kill (cat /tmp/groff-preview ) + + autocmd BufWritePost *.ms silent !compile % + + " autocmd FileType groff setlocal commentstring=\\\"\ %s +augroup END "}}} "}}} "Hide statusbar{{{ diff --git a/qutebrowser/.config/qutebrowser/bookmarks/urls b/qutebrowser/.config/qutebrowser/bookmarks/urls deleted file mode 100644 index 16e4ad3..0000000 --- a/qutebrowser/.config/qutebrowser/bookmarks/urls +++ /dev/null @@ -1,7 +0,0 @@ -https://raw.githubusercontent.com/slashbeast/conf-mgmt/master/roles/home_files/files/DOTzshrc https://raw.githubusercontent.com/slashbeast/conf-mgmt/master/roles/home_files/files/DOTzshrc -https://github.com/unixorn/awesome-zsh-plugins GitHub - unixorn/awesome-zsh-plugins: A collection of ZSH frameworks, plugins & themes inspired by the various awesome list collections out there. -https://www.qutebrowser.org/quickstart.html qutebrowser quickstart | qutebrowser -https://web.whatsapp.com/ WhatsApp Web -https://github.com/jakehamilton/dotfiles/blob/master/neovim/init.vim dotfiles/init.vim at master · jakehamilton/dotfiles -https://pt.symbolab.com/ Solucionador matemático Symbolab - calculadora passo a passo -https://www.invidio.us/ Invidious diff --git a/scripts/.local/bin/bmenu b/scripts/.local/bin/bmenu index 20a48b1..bc02c38 100755 --- a/scripts/.local/bin/bmenu +++ b/scripts/.local/bin/bmenu @@ -13,7 +13,7 @@ bemenu \ --bottom\ --list 20\ --prefix '->'\ - --fn "Hack 12"\ + --fn "FiraCode 12"\ --tb "#242424" --tf "#cc5757" \ --fb "#242424" --ff "#cccccc" \ --nb "#202020" --nf "#cccccc" \ diff --git a/scripts/.local/bin/windows10 b/scripts/.local/bin/windows10 new file mode 100755 index 0000000..92a1a9a --- /dev/null +++ b/scripts/.local/bin/windows10 @@ -0,0 +1,19 @@ +#!/usr/bin/fish + +if not command -v qemu-system-x86_64 > /dev/null + echo qemu not installed + exit 1 +end + +# -cdrom ~/Downloads/win10.iso \ +# -boot order=d \ +# -nic none\ +# -usb -device usb-tablet \ + +qemu-system-x86_64 \ + -enable-kvm \ + -m 2G \ + -display sdl,gl=on \ + -audiodev pa,id=pa\ + -drive file="$HOME/.local/share/windows10.img",format=raw \ + & disown diff --git a/sway/.config/sway/config b/sway/.config/sway/config index 806cc70..749f36e 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -17,7 +17,7 @@ set $right l set $term alacritty - # set $menu wofi --show drun --allow-images --insensitive -p'Iniciar: ' + # set $menu wofi --show drun --allow-images --insensitive --term $term -p'Iniciar: ' set $menu bmenu run $term font Fira Code 14px @@ -33,7 +33,7 @@ bindswitch --reload lid:on output $laptop disable bindswitch --reload lid:off output $laptop enable - output $laptop disable + # output $laptop disable # bindsym $mod+o output eDP-1 toggle # exec_always swaymsg -t get_outputs | grep HDMI || swaymsg 'output eDP-1 enable' @@ -72,7 +72,7 @@ bindsym $mod+q exec qutebrowser #start file manager - bindsym $mod+m exec nemo + bindsym $mod+m exec thunar # Kill focused window bindsym $mod+x kill @@ -232,7 +232,7 @@ bindsym XF86Calculator exec $term ipython bindsym XF86Mail exec $term neomutt - bindsym XF86Explorer exec nemo + bindsym XF86Explorer exec thunar bindsym XF86HomePage exec xdg-open http://start.duckduckgo.com # }}} @@ -295,9 +295,10 @@ exec kanshi # gesture daemon exec fusuma - exec sh -c 'pkill fusuma; fusuma' + # exec sh -c 'pkill fusuma; fusuma' # Blue light filter - exec_always sh -c 'pkill redshift;redshift' + exec redshift + # exec_always sh -c 'pkill redshift;redshift' # kde connect exec /usr/lib/kdeconnectd exec kdeconnect-indicator diff --git a/sway/.config/waybar/config b/sway/.config/waybar/config index 203572b..527e564 100644 --- a/sway/.config/waybar/config +++ b/sway/.config/waybar/config @@ -121,9 +121,9 @@ "custom/updates": { "tooltip":false, "format": "{} ", - "interval": 43200, + "interval": 60, "exec-if":"sleep 60s", - "exec": "yay -Syuw --noconfirm> /dev/null; yay -Qqu | wc -l | sed 's/^0$//'", + "exec": "yay -Qqu | wc -l | sed 's/^0$//'", "on-click": "kitty sh -c 'ping -qc1 archlinux.org >/dev/null && yay -Syu || yay -Su; pkill -SIGRTMIN+8 waybar; read'", "signal": 8 }, diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 73fa1f2..7f8b5db 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -8,8 +8,8 @@ set -s escape-time 0 set -g set-titles on set -g set-titles-string "#T" #sneaky bar -# set -g status off -# set -g default-terminal "xterm-kitty" +set -g status off +set -g default-terminal "tmux-256color" set -ga terminal-overrides ',xterm*:smcup@:rmcup@' # }}} #Theming# {{{