massive installer update , a new screenie and work-xps settings

This commit is contained in:
2018-07-20 22:12:59 +02:00
parent 9fd93cd929
commit 889139a906
18 changed files with 123 additions and 26 deletions

View File

@@ -0,0 +1,4 @@
Xft.dpi: 108
Xft.antialias: 1
rofi.dpi: 150
Xcursor.size: 12

View File

@@ -0,0 +1,4 @@
Xft.dpi: 200
Xft.antialias: 1
rofi.dpi: 250
Xcursor.size: 18

View File

@@ -0,0 +1,3 @@
alias vm='su -c "export QT_AUTO_SCREEN_SCALE_FACTOR= QT_SCREEN_SCALE_FACTORS= QT_SCALE_FACTOR= QT_DEVICE_PIXEL_RATIO= && VBoxManage setextradata Windows10 GUI/HiDPI/UnscaledOutput 1 && sudo VBoxManage startvm Windows10" && exit'
alias dock='bash ~/.docked.sh && i3-msg restart'
alias undock='bash ~/.undocked.sh && i3-msg restart'

3
computers/work-xps/docked.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
xrandr --output eDP-1 --mode 2560x1440 --pos 0x0 --rotate normal --output DP-1-2 --off --output HDMI-2 --off --output HDMI-1 --off --output DP-1 --off --output DP-1-3 --off --output DP-2 --off --output DP-1-1 --primary --mode 2560x1440 --pos 2560x0 --rotate normal
xrdb -merge ~/.Xresources.docked

View File

@@ -0,0 +1 @@
QT_AUTO_SCREEN_SCALE_FACTOR=1

View File

@@ -0,0 +1,16 @@
#/bin/bash
MYPATH=$PWD/computers/work-xps
# set up hiDPI
sudo ln -sf "$MYPATH/environment" /etc/environment
# set up docking
ln -sf "$MYPATH/Xresources.docked" ~/.Xresources.docked
ln -sf "$MYPATH/Xresources.undocked" ~/.Xresources.undocked
ln -sf "$MYPATH/docked.sh" ~/.docked.sh
ln -sf "$MYPATH/undocked.sh" ~/.undocked.sh
ln -sf "$MYPATH/xprofile" ~/.xprofile
# custom (laptop specific) bashrc thingies :)
ln -sf "$MYPATH/custom-bashrc.sh" ~/.custom

3
computers/work-xps/undocked.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
xrandr --output eDP-1 --mode 3840x2160 --pos 0x0 --rotate normal --output DP-1-2 --off --output HDMI-2 --off --output HDMI-1 --off --output DP-1 --off --output DP-1-3 --off --output DP-2 --off --output DP-1-1 --off
xrdb -merge /home/mastermindzh/.Xresources.undocked

View File

@@ -0,0 +1,18 @@
if [ `xrandr | grep -c ' connected '` -eq 2 ]; then
source ~/.docked.sh
else
source ~/.undocked.sh
fi
# startup stuffs
displays=($(xrandr | awk '/ connected /{print $1}'))
selected_display="${displays[0]}"
xrandr --output "$selected_display" --brightness 0.75
# power savings
echo 'min_power' > '/sys/class/scsi_host/host0/link_power_management_policy';
echo 'min_power' > '/sys/class/scsi_host/host1/link_power_management_policy';
echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs';
echo 'auto' > '/sys/bus/usb/devices/1-9/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control';