Revert "add etwm"

This reverts commit 86bbe1e5dd.
This commit is contained in:
lelgenio 2020-04-14 11:26:40 -03:00
parent 86bbe1e5dd
commit 6745ad71f9
3 changed files with 62 additions and 35 deletions

View File

@ -18,7 +18,31 @@ set -x PAGER less
#}}}
# start window manager if using tty1 {{{
#
sh ~/.local/bin/etwm
function esway
clear
# export XDG_CURRENT_DESKTOP=Unity
export QT_SCALE_FACTOR=1
export QPA_PLATFORM=wayland
export QT_QPA_PLATFORM=wayland
exec sway
end
function ei3
clear
exec startx i3
end
if test "$XDG_VTNR" = 1 -a -z "$DISPLAY" #faster like this
if command -v systemctl -a systemctl -q is-active graphical.target
export _JAVA_AWT_WM_NONREPARENTING=1
export GTK_CSD=0
export LD_PRELOAD=/usr/lib/libgtk3-nocsd.so.0
export XCURSOR_THEME=capitaine-cursors
export GTK_THEME=materia-custom-accent:dark
esway > .swaylog
# ei3 > .i3log
end
end
# }}}
# use tmux{{{
set TMUX 1

View File

@ -1,33 +0,0 @@
#!/bin/sh
esway() {
clear
# export XDG_CURRENT_DESKTOP=Unity
export QT_SCALE_FACTOR=1
export QPA_PLATFORM=wayland
export QT_QPA_PLATFORM=wayland
exec sway
}
ei3() {
clear
exec startx /usr/bin/i3
}
ebsp(){
clear
exec startx /usr/bin/bspwm
}
if [ "$XDG_VTNR" = 1 ] && [ -z "$DISPLAY" ] && systemctl -q is-active graphical.target
then
[ -f /etc/X11/xinit/xinitrc.d/30-gtk3-nocsd.sh ] &&
source /etc/X11/xinit/xinitrc.d/30-gtk3-nocsd.sh
export _JAVA_AWT_WM_NONREPARENTING=1
export _JAVA_OPTIONS='-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
export XCURSOR_THEME=capitaine-cursors
export GTK_THEME=materia-custom-accent:dark
# esway &> .swaylog
ei3 &> .i3log
# ebsp &> .bsplog
fi

View File

@ -34,7 +34,41 @@ export PAGER=less
fi
# }}}
# start sway if using tty1 {{{
sh ~/.local/bin/etwm
#
esway() {
clear
# export XDG_CURRENT_DESKTOP=Unity
export QT_SCALE_FACTOR=1
export QPA_PLATFORM=wayland
export QT_QPA_PLATFORM=wayland
exec sway
}
ei3() {
clear
exec startx /usr/bin/i3
}
ebsp(){
clear
exec startx /usr/bin/bspwm
}
if [[ $XDG_VTNR -eq 1 ]] #faster like this
then
if systemctl -q is-active graphical.target && [[ -z "$DISPLAY" ]]
then
[ -f /etc/X11/xinit/xinitrc.d/30-gtk3-nocsd.sh ] &&
source /etc/X11/xinit/xinitrc.d/30-gtk3-nocsd.sh
export _JAVA_AWT_WM_NONREPARENTING=1
export _JAVA_OPTIONS='-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
export XCURSOR_THEME=capitaine-cursors
export GTK_THEME=materia-custom-accent:dark
esway &> .swaylog
# ei3 &> .i3log
# ebsp &> .bsplog
fi
fi
# }}}
# use tmux{{{
@ -248,3 +282,5 @@ preexec() { echo -ne '\e[5 q' ;}
setopt GLOBSTARSHORT
#}}}
# vim:foldmethod=marker
source /home/lelgenio/.config/broot/launcher/bash/br