You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
797 B
38 lines
797 B
#!/bin/sh |
|
|
|
xrdb "$XDG_CONFIG_HOME/xorg/Xresources" |
|
|
|
# Setup display |
|
xrandr --newmode "3000x2000_48.00" 405.25 3000 3232 3552 4104 2000 2003 2013 2058 -hsync +vsync |
|
xrandr --addmode eDP-1 3000x2000_48.00 |
|
xrandr --output eDP-1 --mode 3000x2000_48.00 --primary |
|
|
|
# Program starting |
|
dunst & |
|
lxsession & |
|
|
|
# Qt application scaling |
|
export QT_AUTO_SCREEN_SCALE_FACTOR=0 |
|
export QT_SCREEN_SCALE_FACTORS=2 |
|
|
|
# GTK application scaling |
|
export GDK_SCALE=2 |
|
export GDK_DPI_SCALE=0.5 |
|
|
|
# Screensaver |
|
xset s off |
|
xset -dpms |
|
|
|
## Custom keybinds |
|
|
|
# Clear all mappings |
|
setxkbmap -option '' |
|
|
|
# Swap capslock with escape |
|
setxkbmap -option caps:swapescape |
|
|
|
# Export Xresources colors |
|
COLORS="$(xrdb -query | grep '^*.color' | sort -V | awk '{print $NF}')" |
|
$(echo "$COLORS" | awk '$0 = "export COLOR" NR - 1 "=" $0') |
|
|
|
exec i3
|
|
|