From 34ab4270a5b0398e11e1800cdce8261e359b934f Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 10 Dec 2025 10:48:31 -0800 Subject: [PATCH] xfce: startup script. Historically, I had a .xinitrc file that I used to launch all of the windowing environment stuff that I wanted. It was a complex and confusing shell script, and after 20 years, it was full of outdated cruft that tried to track what distributions now generally do for you. So, instead, I've taken over the stuff that truly is personal to me and put it into this xfce autostart script. --- .../bkuhn-autostart-commands.desktop | 13 ++++++++++ xfce4/bkuhn-startup.sh | 25 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 xfce4/autostart/bkuhn-autostart-commands.desktop create mode 100755 xfce4/bkuhn-startup.sh diff --git a/xfce4/autostart/bkuhn-autostart-commands.desktop b/xfce4/autostart/bkuhn-autostart-commands.desktop new file mode 100644 index 0000000..b0f119f --- /dev/null +++ b/xfce4/autostart/bkuhn-autostart-commands.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=0.9.4 +Type=Application +Name=bkuhn-autostart-commands +Comment=Shell Script of commands that run at xfce startup for bkuhn +Exec=/home/bkuhn/public-config/xfce4/bkuhn-startup.sh +OnlyShowIn=XFCE; +RunHook=0 +StartupNotify=false +Terminal=false +Hidden=false + diff --git a/xfce4/bkuhn-startup.sh b/xfce4/bkuhn-startup.sh new file mode 100755 index 0000000..9d5c509 --- /dev/null +++ b/xfce4/bkuhn-startup.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +export PATH=$HOME/bin:$PATH + +PUBLIC_CONFIG_PATH=$HOME/public-config + +set -x + +echo "I AM HERE IN THE STARTUP" >> $HOME/X_STARTUP_LOG +umask 077 + +PATH=$HOME/bin:$PATH +export PATH + +if [ -f ~/.airplane-mode ]; then + # xrdb -merge FIXME + echo Bring over airplane mode! +else + xrdb -merge $HOME/public-config/x11-and-wayland/Xdefaults +fi + +chmod 640 $HOME/.Xauthority + +export GDK_USE_XFT=1 +export QT_XFT=1