From 9c0d1cf2d6975f9826aec5278e90f40c70878cc2 Mon Sep 17 00:00:00 2001 From: Tucker Johnson Date: Sat, 16 May 2026 09:46:57 -0400 Subject: [PATCH] update --- .config/x11/xinitrc | 18 ++++++++++++++++++ .config/x11/xprofile | 17 +++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100755 .config/x11/xinitrc create mode 100755 .config/x11/xprofile diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc new file mode 100755 index 0000000..b183f25 --- /dev/null +++ b/.config/x11/xinitrc @@ -0,0 +1,18 @@ +#!/bin/sh + +# xinitrc runs automatically when you run startx. + +# There are some small but important commands that need to be run when we start +# the graphical environment. There is a link to this file in ~/.xprofile +# because that file is run automatically if someone uses a display manager +# (login screen) and so they are needed there. To prevent doubling up commands, +# I source them here with the line below. + +if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" ]; then + . "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" +else + . "$HOME/.xprofile" +fi +# Activate dbus variables +dbus-update-activation-environment --all +dbus-launch ssh-agent dwm diff --git a/.config/x11/xprofile b/.config/x11/xprofile new file mode 100755 index 0000000..d6b88c5 --- /dev/null +++ b/.config/x11/xprofile @@ -0,0 +1,17 @@ +#!/bin/sh + +# This file runs when a DM logs you into a graphical session. +# If you use startx/xinit like a Chad, this file will also be sourced. + +xrandr --dpi 96 # Set DPI. User may want to use a larger number for larger screens. +setbg & # set the background with the `setbg` script +#xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources & xrdbpid=$! # Uncomment to use Xresources colors/settings on startup + +autostart="mpd xcompmgr dunst unclutter pipewire remapd" + +for program in $autostart; do + pidof -sx "$program" || "$program" & +done >/dev/null 2>&1 + +# Ensure that xrdb has finished running before moving on to start the WM/DE. +[ -n "$xrdbpid" ] && wait "$xrdbpid" -- 2.39.5