This commit is contained in:
lelgenio 2020-04-19 16:17:46 -03:00
parent 899ef9cabc
commit 96bd20d50a
10 changed files with 106 additions and 32 deletions

View File

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

View File

@ -16,6 +16,28 @@ set -x VISUAL nvim
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 {{{
#
function esway
@ -50,7 +72,7 @@ set -x PAGER less
# }}}
# use tmux{{{
set TMUX 1
# set TMUX 1
if test -z "$TMUX" && test "$TERM" != "xterm-kitty" && test -n "$DISPLAY"
set attach_session (tmux 2> /dev/null ls -F \
'#{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{{{
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{{{

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\
--list 20\
--prefix '->'\
--fn "Hack 12"\
--fn "FiraCode 12"\
--tb "#242424" --tf "#cc5757" \
--fb "#242424" --ff "#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 $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

View File

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

View File

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