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"
fi
HOST=$(cat /etc/hostname)
if [ -f /etc/hostname ]; then
HOST=$(cat /etc/hostname)
else
HOST=$(hostname)
fi
if [ "$HOST" == "archmetabox" ] ; then
# this is specifically for the laptop so check hostname
xrandr --setprovideroutputsource modesetting NVIDIA-G0
xrandr --auto
fi
HOST=$(hostname)
if [ "$HOST" == "holocene" ] ; then
dwmblocks &
exec dwm
dwmblocks &
exec dwm
else
./$MOME/.xmonad/start-xmonad.sh
fi

View File

@ -1,4 +1,4 @@
Config {
Config {
-- appearance
font = "xft:Fira Code:size=9:antialias=true:hinting=true"
@ -38,7 +38,7 @@ Config {
-- The --template option controls how the plugin is displayed. Text
-- color can be set by enclosing in <fc></fc> tags. For more details
-- see http://projects.haskell.org/xmobar/#system-monitor-plugins.
, commands =
, commands =
-- cpu activity monitor
[ Run Cpu [ "--template" , "cpu <total>%"
, "--Low" , "30" -- units: %
@ -47,7 +47,7 @@ Config {
, "--normal" , "#ffb86c"
, "--high" , "#ff5555"
] 10
-- memory usage monitor
-- , Run Memory [ "--template" ,"mem: <usedratio>% (<used>Mb)"
, Run Memory [ "--template" ,"mem <usedratio>%"
@ -58,7 +58,7 @@ Config {
, "--high" , "#ff5555"
] 10
-- time and date indicator
-- time and date indicator
-- (%F = y-m-d date, %a = day of week, %T = h:m:s time)
, Run Date "<fc=#268bd2><fn=1>\xf073 </fn> %a %Y-%m-%d</fc> <fc=#6272a4>|</fc> <fc=#2AA198><fn=1>\xf017 </fn>%H:%M:%S</fc>" "date" 10
@ -97,7 +97,7 @@ Config {
-- ] 10
-- keyboard layout indicator
-- , Run Kbd [ ("us(dvorak)" , "DV")
-- , Run Kbd [ ("us(dvorak)" , "DV")
-- , ("us" , "US")
-- ]
@ -133,9 +133,9 @@ Config {
-- Script that pulls weather related data and builds string to display
, Run Com "xmobar-status-weather" ["YPAD"] "weather" 300
-- 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.
, Run UnsafeStdinReader

View File

@ -1,5 +1,5 @@
# 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.
export ZSH="/home/solomon/.oh-my-zsh"