random updates, dwm is working fine started from tty, but xmonad don't like it and lightdm isn't working as expected with updated profiles and x config

This commit is contained in:
Solomon Laing 2022-05-21 22:55:19 +09:30
parent 7505827c85
commit 7acda4cd9d
3 changed files with 18 additions and 15 deletions

View File

@ -6,18 +6,21 @@ else
. "$HOME/.xprofile" . "$HOME/.xprofile"
fi fi
HOST=$(cat /etc/hostname) if [ -f /etc/hostname ]; then
HOST=$(cat /etc/hostname)
else
HOST=$(hostname)
fi
if [ "$HOST" == "archmetabox" ] ; then if [ "$HOST" == "archmetabox" ] ; then
# this is specifically for the laptop so check hostname # this is specifically for the laptop so check hostname
xrandr --setprovideroutputsource modesetting NVIDIA-G0 xrandr --setprovideroutputsource modesetting NVIDIA-G0
xrandr --auto xrandr --auto
fi fi
HOST=$(hostname)
if [ "$HOST" == "holocene" ] ; then if [ "$HOST" == "holocene" ] ; then
dwmblocks & dwmblocks &
exec dwm exec dwm
else
./$MOME/.xmonad/start-xmonad.sh
fi fi

View File

@ -135,7 +135,7 @@ Config {
, Run Com "xmobar-status-weather" ["YPAD"] "weather" 300 , Run Com "xmobar-status-weather" ["YPAD"] "weather" 300
-- Script polls the batter for info and displays nicely -- Script polls the batter for info and displays nicely
, Run Com "status-bat" [] "bat" 20 , Run Com "xmobar-status-bat" [] "bat" 20
-- Prints out the left side items such as workspaces, layout, etc. -- Prints out the left side items such as workspaces, layout, etc.
, Run UnsafeStdinReader , Run UnsafeStdinReader

View File

@ -1,5 +1,5 @@
# If you come from bash you might have to change your $PATH. # If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH # export PATH=$HOME/.local/bin:$PATH
# Path to your oh-my-zsh installation. # Path to your oh-my-zsh installation.
export ZSH="/home/solomon/.oh-my-zsh" export ZSH="/home/solomon/.oh-my-zsh"