From f9f1ce2af8546c0825192a8c89d596c200d7fe2d Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 29 Jan 2025 21:54:51 +0900 Subject: modified lf/lfrc, modified x11/xprofile, modified zsh/scripts.zsh, modified bin/dmenuconnections, created bin/extract --- ar/.config/x11/xprofile | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) (limited to 'ar/.config/x11/xprofile') diff --git a/ar/.config/x11/xprofile b/ar/.config/x11/xprofile index 400d8c3..73119d0 100644 --- a/ar/.config/x11/xprofile +++ b/ar/.config/x11/xprofile @@ -1,37 +1,6 @@ #!/bin/sh -default="--mode 1920x1080 --rotate normal --scale 1.0x1.0 --dpi 96" - -for connected in $(xrandr -q | grep -w "connected" | cut -d ' ' -f 1); do - case $connected in - eDP*) edp="$connected" ;; - HDMI*) hdmi="$connected" ;; - DP*) dp="$connected" ;; - *) display="$connected" ;; - esac -done - -# If the lid is closed, turn off the laptop's screen -if grep -q "disabled" /sys/class/drm/card0-eDP-1/enabled || grep -q "closed" /proc/acpi/button/lid/LID/state; then - if [ -n "$hdmi" ] && [ -z "$dp" ] && [ -n "$edp" ]; then - xrandr --output "$edp" --off --output "$hdmi" --primary $default - elif [ -z "$hdmi" ] && [ -n "$dp" ] && [ -n "$edp" ]; then - xrandr --output "$edp" --off --output "$dp" --primary $default - else - xrandr --output "$edp" --off --output "$display" --auto --primary $default - fi -else - # Apply display settings when lid is open - if [ -n "$hdmi" ] && [ -z "$dp" ] && [ -n "$edp" ]; then - xrandr --output "$edp" --pos 1920x0 $default --output "$hdmi" --primary --pos 0x0 $default - elif [ -z "$hdmi" ] && [ -n "$dp" ] && [ -n "$edp" ]; then - xrandr --output "$edp" --pos 1920x0 $default --output "$dp" --primary --pos 0x0 $default - elif [ -z "$hdmi" ] && [ -z "$dp" ] && [ -n "$edp" ]; then - xrandr --output "$edp" --primary $default - else - xrandr --output "$display" --primary --auto - fi -fi +xrandr --auto --dpi 96 # adjust the number based on your resolution and size of the screen setbg & # set the background with the `setbg` script # fcitx5 & # set the input method, but it will be separate with fcitx5-remote @@ -40,7 +9,7 @@ setbg & # set the background with the `setbg` script # xrdb "${XDG_CONFIG_HOME:-${HOME}/.config}/x11/xresources" & # xrdbpid=$! -autostart="mpd xcompmgr dunst unclutter pipewire remapd" +autostart="mpd xcompmgr dunst unclutter pipewire blueman-applet remapd" for program in $autostart; do pidof -sx "$program" || "$program" & -- cgit v1.2.3