fix desktop graphics drivers and other things idk

This commit is contained in:
2024-10-18 17:42:42 +02:00
parent e9302c7c27
commit 01b5d55c3b
16 changed files with 101 additions and 59 deletions

View File

@ -1,24 +1,10 @@
#! /bin/sh
INTEGRATED="eDP-1"
HDMI="HDMI-1"
pgrep -x sxhkd > /dev/null || sxhkd &
killall polybar
if xrandr | grep "$HDMI connected" && cat /proc/acpi/button/lid/LID/state | grep "closed"; then
bash ~/.screenlayout/b.sh
bspc monitor $HDMI -d 1 2 3 4 5
bspc monitor $INTEGRATED -r
elif xrandr | grep "$HDMI connected";then
bash ~/.screenlayout/a.sh
bspc monitor $INTEGRATED -d 1 2 3 4
bspc monitor $HDMI -d A B
else
bspc monitor -d 1 2 3 4 5
xrandr -r 60
fi
bspc desktop 1 -f
(polybar -q main -c "$HOME/.config/polybar/config.ini")&
#(pulseaudio -D; polybar -q main -c "$HOME/.config/polybar/config.ini")&
if [ -f $HOME/.config/bspwm/host.sh ];then /bin/sh $HOME/.config/bspwm/host.sh;fi
if [ -f $HOME/.config/bspwm/screenlayout.sh ];then /bin/sh $HOME/.config/bspwm/screenlayout.sh ;fi
pgrep sxhkd > /dev/null || sxhkd &
pgrep polybar >/dev/null || polybar -q main -c "$HOME/.config/polybar/config.ini"&
bspc config border_width 2
bspc config window_gap 10
@ -27,13 +13,9 @@ bspc config split_ratio 0.52
bspc config borderless_monocle true
bspc config gapless_monocle true
pgrep -x alacritty > /dev/null || alacritty &
#autostart appps
picom &
nitrogen --restore &
dunst &
pgrep alacritty > /dev/null || alacritty &
pgrep picom > /dev/null || picom &
pgrep dunst >/dev/null || dunst &
numlockx on &
setxkbmap fr us&
killall activate-linux
(sleep 1;activate-linux -c 1-1-1-0.7 -V 50 -H 70 -d)&
nitrogen --restore &

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

View File

@ -1,12 +0,0 @@
[geometry]
posx=0
posy=32
sizex=450
sizey=500
[nitrogen]
view=icon
recurse=true
sort=alpha
icon_caps=false
dirs=/home/tom/.config/nitrogen;

View File

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 2.1 MiB