Skip to content

Commit

Permalink
make desktop setting more explicit, move display stuff to the scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kpa28-git committed Feb 4, 2024
1 parent d8b6a0e commit 36d0253
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 0 additions & 6 deletions .profile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
# /_/
# Posix login shell profile config file.

# Display connection settings:
export DISPLAYS="$(xrandr | grep ' connected' | awk '{print $1}')";
export DISPLAY_DP="$(printf '%s' "$DISPLAYS" | grep '^DP.*' | head -1)";
export DISPLAY_HDMI="$(printf '%s' "$DISPLAYS" | grep '^HDMI.*' | head -1)";
export DISPLAY_EDP="$(printf '%s' "$DISPLAYS" | grep '^eDP.*' | head -1)";

# XDG standard directories:
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
Expand Down
4 changes: 3 additions & 1 deletion .xinitrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
# /_/|_/_/_/ /_/_/\__/
# Xorg runtime config file.

displayset & # Set the display/background
displayset
setbg

exec "$XDG_CONFIG_HOME/polybar/launch.sh" &
picom --config "$XDG_CONFIG_HOME/picom/picom.conf" & # picom for transparency and to reduce tearing
dunst & # dunst for notifications
Expand Down

0 comments on commit 36d0253

Please sign in to comment.