From d017f43e6a845b087435712c2a8e45dd42116565 Mon Sep 17 00:00:00 2001 From: srdusr Date: Sun, 4 Jun 2023 16:03:04 +0200 Subject: Add .xinitrc --- .config/X11/.xinitrc | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 .config/X11/.xinitrc diff --git a/.config/X11/.xinitrc b/.config/X11/.xinitrc new file mode 100755 index 0000000..478994a --- /dev/null +++ b/.config/X11/.xinitrc @@ -0,0 +1,45 @@ +#!/bin/sh +# +#░█▀▀░▀█▀░█▀█░█▀▄░▀█▀░█░█ +#░▀▀█░░█░░█▀█░█▀▄░░█░░▄▀▄ +#░▀▀▀░░▀░░▀░▀░▀░▀░░▀░░▀░▀ +# + +# xinitrc.d +if [ -d /etc/X11/xinit/xinitrc.d ]; then + for f in /etc/X11/xinit/xinitrc.d/*; do + [ -x "$f" ] && . "$f" + done + unset f +fi + +# 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. + +[[ -f /etc/profile ]] && source /etc/profile + +if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/X11/.xprofile" ]; then + . "${XDG_CONFIG_HOME:-$HOME/.config}/X11/.xprofile" +else + . "$HOME/.xprofile" +fi + + + +# profile +#[[ -f /etc/profile ]] && source /etc/profile +#[[ -f ~/.config/X11/.profile ]] && source ~/.config/X11/.profile + + +#exec ck-launch-session dbus-launch --exit-with-session startxfce4 + +#export XDG_SESSION_TYPE=X11 +#xsetroot -cursor_name left_ptr +#picom -f & +#sxhkd & +#exec bspwm -- cgit v1.2.3