minor changes

This commit is contained in:
lelgenio 2019-11-26 11:05:25 -03:00
parent 113bd4cb02
commit 1e5eb50bdc
2 changed files with 18 additions and 12 deletions

View File

@ -102,7 +102,7 @@ FULL_INSTALL=false
# DE
pkgs+=' sway waybar python-keyring light mako udiskie wofi-hg stow yay'
pkgs+=' nemo redshift-wlr-gamma-control-git '
pkgs+=' kitty neovim htop-vim-git'
pkgs+=' pkgfile kitty neovim htop-vim-git'
# Audio
pkgs+=' pulseaudio pavolume-git'
# Fonts
@ -681,13 +681,16 @@ install_aur_packages() {
#}}}
# Clean up packages #{{{
clean_packages() {
# Mark every package as dependency
yay -D --asdeps $(yay -Qqe)
# Mark some packages as explicit
yay -D --asexplicit $pkgs
# Query orphan dependencies
TO_REMOVE=$(yay -Qtdq)
if [ -n "$TO_REMOVE" ];then
# Remove queried packages
yay -Rns --noconfirm $TO_REMOVE
fi
yay -Scc --noconfirm
}
#}}}
# Stow dotfiles{{{

View File

@ -32,20 +32,23 @@ export PAGER=less
# }}}
# start sway if using tty1 {{{
#
esway() {
clear
export XDG_CURRENT_DESKTOP=Unity
export QT_SCALE_FACTOR=1
export QPA_PLATFORM=wayland
export QT_QPA_PLATFORM=wayland
export _JAVA_AWT_WM_NONREPARENTING=1
export GTK_CSD=0
export LD_PRELOAD=/usr/lib/libgtk3-nocsd.so.0
export XCURSOR_THEME=capitaine-cursors
exec sway
}
if [[ $XDG_VTNR -eq 1 ]] #faster like this
then
if systemctl -q is-active graphical.target && [[ ! $DISPLAY ]]
then
clear
export XDG_CURRENT_DESKTOP=Unity
export QT_SCALE_FACTOR=1
export QPA_PLATFORM=wayland
export QT_QPA_PLATFORM=wayland
export _JAVA_AWT_WM_NONREPARENTING=1
export GTK_CSD=0
export LD_PRELOAD=/usr/lib/libgtk3-nocsd.so.0
export XCURSOR_THEME=capitaine-cursors
exec sway
esway
fi
fi