Skip to content

Instantly share code, notes, and snippets.

@rosghub
Created May 20, 2017 01:12
Show Gist options
  • Star 25 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save rosghub/5fe7d5eaf56c5e8dc129febb6b51c608 to your computer and use it in GitHub Desktop.
Save rosghub/5fe7d5eaf56c5e8dc129febb6b51c608 to your computer and use it in GitHub Desktop.
Manjaro i3 Hi-DPI config
#
# Configuration files for Manjaro i3 on Lenovo Yoga 2 pro
# to scale properly on HiDPI (3200x1800)
#
#####################################################
~/.profile #
#####################################################
# UI element scaling, icons
export GDK_SCALE=2
#####################################################
~/.Xresources #
#####################################################
# No Xft.dpi needed
# mouse cursor scale
Xcursor.size: 52
# misc
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rg
# theme
! special
URxvt.foreground: #ccccc6
URxvt.background: #1b1d1e
URxvt.cursorColor: #ccccc6
! black
URxvt.color0: #3e3e3e
URxvt.color8: #5d5d5d
! red
URxvt.color1: #966575
URxvt.color9: #cf8ba2
! green
URxvt.color2: #597d0c
URxvt.color10: #81b414
! yellow
URxvt.color3: #968665
URxvt.color11: #e0bf80
! blue
URxvt.color4: #469665
URxvt.color12: #70d999
! magenta
URxvt.color5: #756596
URxvt.color13: #807793
! cyan
URxvt.color6: #658e96
URxvt.color14: #1fb6d3
! white
URxvt.color7: #d0d0d0
URxvt.color15: #f6f6f6
URxvt.cursorBlink: false
URxvt.font: xft:inconsolata:size=12
URxvt.boldFont: xft:inconsolata:size=12
#####################################################
~/.i3/config #
#####################################################
# dpi change
exec --no-startup-id xrandr --dpi 192
# system font
font xft:Noto Sans 12
# i3bar font
bar {
font xft:Noto Sans Mono 10.5
}
#####################################################
~/.config/dunst/dunstrc #
#####################################################
# large font for dunst notifications
[global]
font = Cantarell 18
#####################################################
/etc/lightdm/lightdm-gtk-greeter.conf #
#####################################################
# scale lightdm font
xft-dpi = 192
#####################################################
/etc/lightdm/lightdm.conf #
#####################################################
# lightdm startup script
# (runs as root so use explicit path to home dir)
greeter-setup-script=/bin/bash ~/.lightdm-startup
#####################################################
~/.lightdm-startup #
#####################################################
#!/bin/bash
# merge .Xresources
# (runs as root so use explicit path to .Xresources)
xrdb ~/.Xresources
# touchpad settings
xinput --set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1
xinput --set-prop "SynPS/2 Synaptics TouchPad" "libinput Natural Scrolling Enabled" 1
xinput --set-prop "SynPS/2 Synaptics TouchPad" "libinput Accel Speed" 1
#####################################################
/etc/default/grub #
#####################################################
# resolution
# (run sudo update-grub after edit)
GRUB_GFXMODE=1024x768x32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment