Skip to content

Instantly share code, notes, and snippets.

@ZacharyRSmith
Forked from achiang/xps13_9360_ubuntu16.04.md
Last active January 13, 2022 22:18
Show Gist options
  • Save ZacharyRSmith/2d7e49b346d0101af8e8a83e1d28cadf to your computer and use it in GitHub Desktop.
Save ZacharyRSmith/2d7e49b346d0101af8e8a83e1d28cadf to your computer and use it in GitHub Desktop.
Dell XPS 13 + Ubuntu 20.04: fixing papercuts

Upfront

Differences from vanilla Ubuntu 16.04

External Monitor + HiDPI

Here's a little script I drop into ~/bin to make scaling on an external monitor a bit nicer.

#!/bin/sh

# https://superuser.com/questions/485120/
# https://askubuntu.com/questions/393400/
xrandr --output DP1 --scale 2x2 --auto --pos 0x0
xrandr --output eDP1 --scale 1x1 --auto --pos 960x2880

Hooking this up to udev is an exercise left for the reader.

Personal customizations

vim

execute pathogen#infect()
syntax on
filetype plugin indent on

" allow per-project overrides, safely
set exrc
set secure

set autoindent
set smarttab
set expandtab
set tabstop=8
set shiftwidth=4
set softtabstop=4

if has('gui_running')
    set guifont=Ubuntu\ Mono\ 11
    set guioptions-=T
    set guitablabel=%0.15t\ %M
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment