mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2025-09-11 19:05:26 +02:00
fixed flameshot, removed old configs, some other small tweaks
This commit is contained in:
@@ -2,3 +2,4 @@
|
||||
alias dock='bash ~/dotfiles/computers/archfw/displaySwitch.sh docked'
|
||||
alias undock='bash ~/dotfiles/computers/archfw/displaySwitch.sh undocked'
|
||||
alias displaySwitch='bash ~/dotfiles/computers/archfw/displaySwitch.sh'
|
||||
alias deps='docker-compose -f /home/mastermindzh/code/tfx-workspace/docker-compose.yml up -d'
|
||||
|
@@ -1,4 +0,0 @@
|
||||
Xft.dpi: 108
|
||||
Xft.antialias: 1
|
||||
rofi.dpi: 150
|
||||
Xcursor.size: 12
|
@@ -1,4 +0,0 @@
|
||||
Xft.dpi: 200
|
||||
Xft.antialias: 1
|
||||
rofi.dpi: 250
|
||||
Xcursor.size: 18
|
@@ -1,10 +0,0 @@
|
||||
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'
|
@@ -1,3 +0,0 @@
|
||||
#!/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 +0,0 @@
|
||||
QT_AUTO_SCREEN_SCALE_FACTOR=1
|
@@ -1,16 +0,0 @@
|
||||
#/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
|
@@ -1,3 +0,0 @@
|
||||
#!/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
|
@@ -1,18 +0,0 @@
|
||||
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