This commit is contained in:
lelgenio 2020-04-19 16:17:46 -03:00
parent 315e4388b7
commit 7e0c1708e5
11 changed files with 106 additions and 32 deletions

View file

@ -65,7 +65,7 @@ USER_NAME='lelgenio'
# Link to users dotfiles repo(git) # Link to users dotfiles repo(git)
# Assumed to have stow-able modules on its root(cd .dotfiles;stow*/) # Assumed to have stow-able modules on its root(cd .dotfiles;stow*/)
DOTFILES_URL="https://gitlab.com/$USER_NAME/dotfiles" DOTFILES_URL="https://gitlab.com/$USER_NAME/dotfiles"
USER_SHELL='zsh' USER_SHELL='fish'
# The main user's password (leave blank to be prompted). # The main user's password (leave blank to be prompted).
USER_PASSWORD='' USER_PASSWORD=''
@ -104,7 +104,7 @@ set_pkgs() {
sudo pacman -Sy sudo pacman -Sy
pkgs_base+=' base linux-zen linux-firmware intel-ucode lvm2 ' 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)" pkgs_base+=" $(pacman -Sgq base-devel)"
if $IS_BIOS;then if $IS_BIOS;then
pkgs_base+=' grub' pkgs_base+=' grub'
@ -114,10 +114,12 @@ set_pkgs() {
# DE # DE
pkgs+=' sway waybar ruby-fusuma light mako udiskie bemenu wofi-hg stow yay' pkgs+=' sway waybar ruby-fusuma light mako udiskie bemenu wofi-hg stow yay'
pkgs+=' bemenu wofi-hg j4-dmenu-desktop' pkgs+=' bemenu wofi-hg j4-dmenu-desktop'
# passwords and auth
pkgs+=' pass gnupg pam-gnupg'
# pkgs+=' i3 termite scrot pamixer' # pkgs+=' i3 termite scrot pamixer'
pkgs+=' nemo redshift-wlr-gamma-control-git ' pkgs+=' thunar redshift-wlr-gamma-control-git '
pkgs+=' pkgfile kitty neovim moreutils htop-vim-git' pkgs+=' pkgfile alacritty neovim moreutils htop-vim-git'
# Audio # Audio
pkgs+=' pulseaudio pavolume-git' pkgs+=' pulseaudio pavolume-git'
# Fonts # Fonts
@ -125,7 +127,7 @@ set_pkgs() {
if $FULL_INSTALL; then if $FULL_INSTALL; then
# Screenshot # Screenshot
pkgs+=' grim slurp wl-clipboard wf-recorder-git' pkgs+=' grim slurp wl-clipboard wf-recorder-git'
pkgs+=' httpie jq python-keepmenu-git' pkgs+=' httpie jq'
# Theme # Theme
pkgs+=' materia-custom-accent papirus-icon-theme' pkgs+=' materia-custom-accent papirus-icon-theme'
pkgs+=' papirus-folders-git capitaine-cursors ' pkgs+=' papirus-folders-git capitaine-cursors '
@ -473,6 +475,9 @@ configure() {
echo 'Configuring PAM' echo 'Configuring PAM'
set_pam set_pam
echo 'Configuring logind'
set_logind
if [ -z "$ROOT_PASSWORD" ];then if [ -z "$ROOT_PASSWORD" ];then
echo 'Enter the root password:' echo 'Enter the root password:'
read -s ROOT_PASSWORD read -s ROOT_PASSWORD
@ -681,10 +686,34 @@ set_pam() {
auth required pam_securetty.so auth required pam_securetty.so
auth requisite pam_nologin.so auth requisite pam_nologin.so
auth include system-local-login auth include system-local-login
auth optional pam_gnome_keyring.so
account include system-local-login account include system-local-login
session 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 <<EOF
#%PAM-1.0
auth include system-login
account include system-login
password include system-login
session include system-login
auth optional pam_gnupg.so
session optional pam_gnupg.so
EOF
}
#}}}
# set_logind{{{
set_logind(){
mkdir -p /etc/systemd
cat > /etc/systemd <<EOF
[Login]
HandlePowerKey=suspend
HandleSuspendKey=suspend
HandleLidSwitch=ignore
EOF EOF
} }
#}}} #}}}

View file

@ -16,6 +16,28 @@ set -x VISUAL nvim
set -x PAGER less set -x PAGER less
#}}} #}}}
# Aliases{{{
abbr rv sudo nvim
command -qs exa &&
alias ls exa
abbr gs git status
abbr gp 'git pull; git push'
function edit-config
cd ~/.config
set file ~/.config/( fzf )
cd -
if test -f "$file"
nvim $file
end
end
abbr ec edit-config
# }}}
# start window manager if using tty1 {{{ # start window manager if using tty1 {{{
# #
function esway function esway
@ -50,7 +72,7 @@ set -x PAGER less
# }}} # }}}
# use tmux{{{ # use tmux{{{
set TMUX 1 # set TMUX 1
if test -z "$TMUX" && test "$TERM" != "xterm-kitty" && test -n "$DISPLAY" if test -z "$TMUX" && test "$TERM" != "xterm-kitty" && test -n "$DISPLAY"
set attach_session (tmux 2> /dev/null ls -F \ set attach_session (tmux 2> /dev/null ls -F \
'#{session_attached} #{?#{==:#{session_last_attached},},1,#{session_last_attached}} #{session_id}' | '#{session_attached} #{?#{==:#{session_last_attached},},1,#{session_last_attached}} #{session_id}' |

View file

@ -1 +1,2 @@
pinentry-program /usr/bin/pinentry-gnome3 allow-preset-passphrase
max-cache-ttl 86400

View file

@ -124,14 +124,14 @@ call plug#end()
"}}} "}}}
" Gay colors{{{ " Gay colors{{{
if (empty($TMUX)) " if (empty($TMUX))
if (has('nvim')) if (has('nvim'))
let $NVIM_TUI_ENABLE_TRUE_COLOR = 1 let $NVIM_TUI_ENABLE_TRUE_COLOR = 1
endif endif
if (has('termguicolors')) if (has('termguicolors'))
set termguicolors set termguicolors
endif endif
endif " endif
colorscheme minimalist colorscheme minimalist
@ -146,7 +146,7 @@ call plug#end()
highlight LineNr term=bold ctermfg=9 guifg=#cc5757 guibg=None highlight LineNr term=bold ctermfg=9 guifg=#cc5757 guibg=None
"Make whitespace dark "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 " highlight SpecialKey ctermfg=black guifg=#252525 guibg=None
"Current line "Current line
@ -183,7 +183,7 @@ call plug#end()
"}}} "}}}
" Lanugage Server{{{ " Lanugage Server{{{
" "
set foldmethod=marker
set hidden set hidden
" let g:deoplete#enable_at_startup = 1 " let g:deoplete#enable_at_startup = 1
@ -226,7 +226,16 @@ EOF
autocmd FileType tex LLPStartPreview autocmd FileType tex LLPStartPreview
"}}} "}}}
"groff{{{ "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{{{ "Hide statusbar{{{

View file

@ -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

View file

@ -13,7 +13,7 @@ bemenu \
--bottom\ --bottom\
--list 20\ --list 20\
--prefix '->'\ --prefix '->'\
--fn "Hack 12"\ --fn "FiraCode 12"\
--tb "#242424" --tf "#cc5757" \ --tb "#242424" --tf "#cc5757" \
--fb "#242424" --ff "#cccccc" \ --fb "#242424" --ff "#cccccc" \
--nb "#202020" --nf "#cccccc" \ --nb "#202020" --nf "#cccccc" \

19
scripts/.local/bin/windows10 Executable file
View file

@ -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

View file

@ -17,7 +17,7 @@
set $right l set $right l
set $term alacritty 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 set $menu bmenu run $term
font Fira Code 14px font Fira Code 14px
@ -33,7 +33,7 @@
bindswitch --reload lid:on output $laptop disable bindswitch --reload lid:on output $laptop disable
bindswitch --reload lid:off output $laptop enable bindswitch --reload lid:off output $laptop enable
output $laptop disable # output $laptop disable
# bindsym $mod+o output eDP-1 toggle # bindsym $mod+o output eDP-1 toggle
# exec_always swaymsg -t get_outputs | grep HDMI || swaymsg 'output eDP-1 enable' # exec_always swaymsg -t get_outputs | grep HDMI || swaymsg 'output eDP-1 enable'
@ -72,7 +72,7 @@
bindsym $mod+q exec qutebrowser bindsym $mod+q exec qutebrowser
#start file manager #start file manager
bindsym $mod+m exec nemo bindsym $mod+m exec thunar
# Kill focused window # Kill focused window
bindsym $mod+x kill bindsym $mod+x kill
@ -232,7 +232,7 @@
bindsym XF86Calculator exec $term ipython bindsym XF86Calculator exec $term ipython
bindsym XF86Mail exec $term neomutt bindsym XF86Mail exec $term neomutt
bindsym XF86Explorer exec nemo bindsym XF86Explorer exec thunar
bindsym XF86HomePage exec xdg-open http://start.duckduckgo.com bindsym XF86HomePage exec xdg-open http://start.duckduckgo.com
# }}} # }}}
@ -295,9 +295,10 @@
exec kanshi exec kanshi
# gesture daemon # gesture daemon
exec fusuma exec fusuma
exec sh -c 'pkill fusuma; fusuma' # exec sh -c 'pkill fusuma; fusuma'
# Blue light filter # Blue light filter
exec_always sh -c 'pkill redshift;redshift' exec redshift
# exec_always sh -c 'pkill redshift;redshift'
# kde connect # kde connect
exec /usr/lib/kdeconnectd exec /usr/lib/kdeconnectd
exec kdeconnect-indicator exec kdeconnect-indicator

View file

@ -121,9 +121,9 @@
"custom/updates": { "custom/updates": {
"tooltip":false, "tooltip":false,
"format": "{} ", "format": "{} ",
"interval": 43200, "interval": 60,
"exec-if":"sleep 60s", "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'", "on-click": "kitty sh -c 'ping -qc1 archlinux.org >/dev/null && yay -Syu || yay -Su; pkill -SIGRTMIN+8 waybar; read'",
"signal": 8 "signal": 8
}, },

View file

@ -8,8 +8,8 @@ set -s escape-time 0
set -g set-titles on set -g set-titles on
set -g set-titles-string "#T" set -g set-titles-string "#T"
#sneaky bar #sneaky bar
# set -g status off set -g status off
# set -g default-terminal "xterm-kitty" set -g default-terminal "tmux-256color"
set -ga terminal-overrides ',xterm*:smcup@:rmcup@' set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
# }}} # }}}
#Theming# {{{ #Theming# {{{