-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot.xinitrc
More file actions
executable file
·38 lines (27 loc) · 1.21 KB
/
dot.xinitrc
File metadata and controls
executable file
·38 lines (27 loc) · 1.21 KB
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
31
32
33
34
35
36
37
38
#!/bin/bash
if [ `hostname` = "chille-macbook13" ]; then
# MacBook 13"
echo chille-macbook13
elif [ `hostname` = "chille-macbook15" ]; then
# MacBook 15" Early 2013 (With retina display)
# Scale things so they not get too small
export GDK_DPI_SCALE=1.5
xrandr --output DP-2 --dpi 150
# For some reason we need to explicitly set the screen resolution, or else it will be unset and screen will be blank
# This was needed when using the open source driver, now I'm using the NVIDIA driver, so might not be needed anymore
xrandr --output DP-2 --mode 2880x1800
elif [ `hostname` = "chille-desktop" ]; then
# Desktop computer
xrandr --output DVI-0 --left-of DisplayPort-0
fi
# Never turn off screen
#xset -dpms
# Turn of screen after 1 hour
xset dpms 3600 3600 3600
# No screensaver or blanking
xset s off
xset s noblank
# 2025-03-05: For some reason this seems to be needed for xdg-desktop-portal and xdg-desktop-portal-gtk service to work. If this is not here, then DISPLAY will not get set and the services will fail to start. This will make GTK applications extremely slow to start and the save/load dialogs will not work in some applications.
systemctl --user import-environment DISPLAY
# Start window manager
awesome