forked from FT-Labs/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xprofile
executable file
·30 lines (28 loc) · 1.27 KB
/
.xprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
# This needs checking, will be handled later
# if [ ! -f "$HOME/.xsync" ] && (( $(xrandr -q | grep -w connected | wc -l) == 1 )); then
# mon=$(xrandr -q | grep -w connected | awk '{print $1}')
# res_x=$(xrandr | sed "s/x/\ /g" | grep \* | awk '{print $1}')
# res_y=$(xrandr | sed "s/x/\ /g" | grep \* | awk '{print $2}')
# if (( $res_x < 1920)); then
# scale_x=$(bc -l <<< "1920/$res_x")
# scale_y=$(bc -l <<< "1080/$res_y")
# xrandr --output $mon --scale "${scale_x}x${scale_y}"
# else
# xrandr --auto
# fi
# else
# $HOME/.xsync
# [ $? -ne 0 ] && xrandr --auto
# fi
[[ -f "$HOME/.xsync" ]] && $HOME/.xsync || xrandr --auto
xrdb ~/.config/Xresources
pOS-setbg & # set the background, use this script to set your own background
# Below sources configuration file to fetch picom
pOS-compositor & # Run picom as default compositor (Enable experimental backends from ~/.config/phyos/phyos.conf)
pOS-conky &
dunst & # dunst for notifications
[[ -f /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 ]] && /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
nm-applet &
pOS-remaps & # run the remaps script, switching caps/esc and more; check it for more info
# eval `ssh-agent` # Uncomment this if using ssh