|
|
|
#! /bin/sh
|
|
|
|
# ~/.xprofile: execute commands at the beginning of the X user
|
|
|
|
# session - before the window manager is started.
|
|
|
|
#
|
|
|
|
# The xprofile files are natively sourced by the following
|
|
|
|
# display managers:
|
|
|
|
#
|
|
|
|
# GDM - /etc/gdm/Xsession
|
|
|
|
# LightDM - /etc/lightdm/Xsession
|
|
|
|
# LXDM - /etc/lxdm/Xsession
|
|
|
|
# SDDM - /usr/share/sddm/scripts/Xsession
|
|
|
|
#
|
|
|
|
# More in https://wiki.archlinux.org/index.php/Autostarting
|
|
|
|
|
|
|
|
export QT_QPA_PLATFORMTHEME=qt5ct
|
|
|
|
export PATH="$HOME/Scripts:$PATH"
|
|
|
|
export EDITOR=nano
|
|
|
|
#export ADW_DISABLE_PORTAL=1
|
|
|
|
export ADW_DEBUG_COLOR_SCHEME=prefer-dark
|
|
|
|
#export GTK_THEME=Adwaita:dark
|
|
|
|
#umask 0002
|
|
|
|
|
|
|
|
# execute this stuff only one time
|
|
|
|
scriptExecutedOnce=$(cat $HOME/.xprofile | tail -n 1)
|
|
|
|
if [ "$scriptExecutedOnce" != "#scriptExecuted" ]; then
|
|
|
|
# execute script to replace the user and hostname in some config files
|
|
|
|
sh $HOME/Scripts/renameHomeDirInConfigs.sh
|
|
|
|
# set dark theme for gkt4 apps, userspace
|
|
|
|
gsettings set org.gnome.desktop.interface color-scheme prefer-dark
|
|
|
|
# writes #scriptExecuted at the end of this files
|
|
|
|
echo "#scriptExecuted" >> $HOME/.xprofile
|
|
|
|
# make scripts executeable
|
|
|
|
chmod +x $HOME/Scripts/*
|
|
|
|
# force 1080p
|
|
|
|
xrandr -s 1920x1080
|
|
|
|
fi
|
|
|
|
=======
|
|
|
|
|