+ Used Console-TDM replacing LightDM

This commit is contained in:
ziro 2020-05-13 17:42:34 +07:00
parent bb06d26285
commit f771d94ddd
15 changed files with 70 additions and 3 deletions

1
.config/tdm/default Symbolic link
View file

@ -0,0 +1 @@
/home/ziro/.config/tdm/sessions/bspwm

1
.config/tdm/sessions/E17 Symbolic link
View file

@ -0,0 +1 @@
/usr/bin/enlightenment_start

View file

@ -0,0 +1 @@
/usr/bin/startfluxbox

1
.config/tdm/sessions/GNOME Symbolic link
View file

@ -0,0 +1 @@
/usr/bin/gnome-session

1
.config/tdm/sessions/ICEWM Symbolic link
View file

@ -0,0 +1 @@
/usr/bin/icewm-session

1
.config/tdm/sessions/PekWM Symbolic link
View file

@ -0,0 +1 @@
/usr/bin/pekwm

1
.config/tdm/sessions/XFCE4 Symbolic link
View file

@ -0,0 +1 @@
/usr/bin/startxfce4

1
.config/tdm/sessions/bspwm Symbolic link
View file

@ -0,0 +1 @@
/usr/bin/bspwm

1
.config/tdm/sessions/dwm Symbolic link
View file

@ -0,0 +1 @@
/usr/local/bin/dwm

View file

@ -0,0 +1 @@
/usr/bin/openbox-session

1
.config/tdm/sessions/xmonad Symbolic link
View file

@ -0,0 +1 @@
/usr/bin/xmonad

21
.config/tdm/tdmexit Normal file
View file

@ -0,0 +1,21 @@
# tdmexit: script executed before tdm starts your WM/DE.
# This file is part of tdm, a tiny display manager.
#
# tdm is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# tdm is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with tdm. If not, see <http://www.gnu.org/licenses/>.
# Example commands to execute before your WM/DE
#export LANG=zh_CN.UTF-8
#fcitx
#feh --bg-scale /path/to/wallpaper

31
.config/tdm/tdminit Normal file
View file

@ -0,0 +1,31 @@
# tdminit: script executed at login.
# This file is part of tdm, a tiny display manager.
#
# tdm is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# tdm is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with tdm. If not, see <http://www.gnu.org/licenses/>.
# Uncomment to disable saving last session
#SAVELAST=0
# Uncomment to use text UI instead of ncurses UI
#TDMUI=tdm_text
# Uncomment to show linux logo
#linux_logo -L classic
# Args passed along when calling startx
#STARTXARGS=
# Uncomment to start X without selecting a session
#exec startx

View file

@ -1,2 +1,4 @@
#!/bin/sh
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/xprofile" ] && . "${XDG_CONFIG_HOME:-$HOME/.config}/xprofile"
exec tdm --xstart

View file

@ -1,7 +1,9 @@
#!/bin/zsh
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi
#if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
# exec startx
#fi
bash /usr/bin/tdm
[[ -f ~/.zshrc ]] && . ~/.zshrc