mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2025-07-27 12:43:08 +02:00
removed code wallpaper, switched to thunar with engrampa, retired work-xps
This commit is contained in:
4
computers/archive/work-xps/Xresources.docked
Normal file
4
computers/archive/work-xps/Xresources.docked
Normal file
@@ -0,0 +1,4 @@
|
||||
Xft.dpi: 108
|
||||
Xft.antialias: 1
|
||||
rofi.dpi: 150
|
||||
Xcursor.size: 12
|
4
computers/archive/work-xps/Xresources.undocked
Normal file
4
computers/archive/work-xps/Xresources.undocked
Normal file
@@ -0,0 +1,4 @@
|
||||
Xft.dpi: 200
|
||||
Xft.antialias: 1
|
||||
rofi.dpi: 250
|
||||
Xcursor.size: 18
|
10
computers/archive/work-xps/custom-bashrc.sh
Normal file
10
computers/archive/work-xps/custom-bashrc.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
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'
|
||||
alias mountdata='sudo cryptsetup open --type luks /dev/nvme0n1p7 data && sudo mount -t ext4 /dev/mapper/data /home/mastermindzh/data'
|
||||
alias unmountdata='sudo umount /home/mastermindzh/data && sudo cryptsetup close data && sudo sysctl --write vm.drop_caches=3'
|
||||
|
||||
# useful kubernetes (AZURE) commands
|
||||
alias kubernetes-qa='azkubeswitch Inforit.Cloud InforitCluster'
|
||||
alias kubernetes-prod='azkubeswitch Inforit.Cloud Production'
|
||||
alias kubernetes-dev='azkubeswitch Inforit.Cloud Development'
|
3
computers/archive/work-xps/docked.sh
Executable file
3
computers/archive/work-xps/docked.sh
Executable 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
|
1
computers/archive/work-xps/environment
Normal file
1
computers/archive/work-xps/environment
Normal file
@@ -0,0 +1 @@
|
||||
QT_AUTO_SCREEN_SCALE_FACTOR=1
|
16
computers/archive/work-xps/install.sh
Normal file
16
computers/archive/work-xps/install.sh
Normal 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.sh" ~/.xprofile
|
||||
|
||||
# custom (laptop specific) bashrc thingies :)
|
||||
ln -sf "$MYPATH/custom-bashrc.sh" ~/.custom
|
3
computers/archive/work-xps/undocked.sh
Executable file
3
computers/archive/work-xps/undocked.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
xrandr --output eDP-1 --primary --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
|
18
computers/archive/work-xps/xprofile.sh
Normal file
18
computers/archive/work-xps/xprofile.sh
Normal 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';
|
Reference in New Issue
Block a user