Skip to content

⚙️ Personal XPS13 settings and configurations on Ubuntu16.04

Notifications You must be signed in to change notification settings

alvinbhou/XPS13-Ubuntu16-Env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

XPS13-Ubuntu16-Env

Introduction

Personal XPS13-9360 settings and configurations on Ubuntu16.04, also some solutions to touchpad and screen issues. Aim to help XPS13 users to setup Ubuntu environemnt easier.

XPS13-9360 (8th gen.Kaby Lake-R, QHD touchscreen)

Shell

Install zsh

sudo apt install zsh

Install oh-my-zsh

sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

Themes

Install (oh-my-zsh)
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"

Set ZSH_THEME="spaceship" in your .zshrc.

Fix git symbol display issue

Install powerline-font to fix the issue.

sudo apt-get install fonts-powerline

plugins

See .zshrc

Terminal Color Scheme

Github: https://github.com/Mayccoll/Gogh

Theme aco : wget -O xt http://git.io/v3Dll && chmod +x xt && ./xt && rm xt

Screenshots:

Setup guake

sudo ln -s /usr/share/applications/guake.desktop /etc/xdg/autostart/

Touchpad

I choose to use synaptics + fusuma

Fusuma

Works like a charm, smooth like silk.

Github: https://github.com/iberianpig/fusuma

Pre-install

Install ruby

sudo apt-get install rubygems

Install

You must be a member of the input group to have permission to read the touchpad device:

$ sudo gpasswd -a $USER input

Logout and login.

$ sudo apt-get install libinput-tools
$ sudo apt-get install xdotool

Install Fusuma:

$ gem install fusuma

Post-Install

Add fusuma to startup applications.

Configuration

Edit file ~/.config/fusuma/config.yml to enable multi-gesture control. Settings at config.yml.

3 swipe up: Show Unity launcher
3 swipe down: Close current tab
4 finger gestures: Switch workspace.

Remove Duplicate Touchpad Device

Relative post: https://forums.linuxmint.com/viewtopic.php?t=229932#

This may or may not happen, $xinput list to check if there is more than one touchpad under Virtual core pointer. If there is, the synclient commands will never work.

[Solution]

Edit /etc/modprobe.d/blacklist.conf by adding the lines:

# remove SynPS/2 Synaptics Touchpad because we want the mouse to work over IC2b
blacklist psmouse

then:

sudo update-initramfs -u
sudo reboot

After the reboot xinput lists should only show one touchpad:

This solution saved my day.

Synclient Settings

Enable 3-finger-tap == Middle Key

synclient TapButton3=2

Add this to startup applications too.

Relative post: XPS 9560 - setting up multitouch gestures with Ubuntu 16.04

Touchscreen

Enable long press screen right clicking

Go to Settings > Universal Access > Pointing & Clicking and enable Simulated Secondary Click

Audio

Disable white noise with headphones

If there is an annoying whie noise in the background when plugged in headphone, the follow steps should fix it.

Set Headphone Mic Boost gain to 10dB. Any other value seems to cause the irritating background noise in headphones. This can be done with amixer:

amixer -c0 sset 'Headphone Mic Boost' 10dB

To make this happen automatically every time you headphones are connected install acpid.

Start it by running: sudo systemctl start acpid.service

Enable it by running: sudo systemctl enable acpid.service

Create following event script /etc/acpi/event/headphone-plug

event=jack/headphone HEADPHONE plug
action=/etc/acpi/cancel-white-noise.sh %e

Then create action script /etc/acpi/cancel-white-noise.sh:

#! /bin/bash
amixer -c0 sset 'Headphone Mic Boost' 10dB

Now Headphone Mic Boost will be set to 10dB every time headphones are connected. To make this effective you need to restart your laptop.

Stackoverflow

Fix headphone noise (coil whine) after suspend

This problem is patched in kernel 4.14.15, update the kernel will fix this annoying issue.

Relative post: Headphone noise in Dell XPS 13 (9360, late 2017, intel 8th gen)

Unity Themes & Icon Packs

Unity Tweak Tool

Install

sudo apt-get install unity-tweak-tool gnome-tweak-tool

Settings

Lots of settings, you can change the theme and icons, setup hot-corners and workspace. To remove the workspace icon on the unity launcer, do the following

  • Install dconf-editor sudo apt install dconf-editor
  • Then open com -> canonical -> unity -> launcher and click on favorites
  • In the field Custom value remove 'unity://expo-icon', and click Apply

Arc theme

Install

sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_16.04/ /' >> /etc/apt/sources.list.d/arc-theme.list"
sudo apt-get update && sudo apt-get install arc-theme

Github: https://github.com/horst3180/arc-theme

Tutorial: How to Install Arc GTK Theme on Ubuntu

paper-gtk-theme & icons

Install

sudo add-apt-repository ppa:snwh/pulp
sudo apt-get update
sudo apt-get install paper-icon-theme
sudo apt-get install paper-cursor-theme
sudo apt-get install paper-gtk-theme

Github: https://github.com/snwh/paper-gtk-theme

https://snwh.org/paper

Applications

Firefox

Enable touchscreen scroll

The solution is to launch firefox using:

env MOZ_USE_XINPUT2=1 firefox

You can make this permanent by modifying the launcher using the following:

sudo sed -i "s|Exec=|Exec=env MOZ_USE_XINPUT2=1 |g" /usr/share/applications/firefox.desktop

To undo this change, use:

sudo sed -i "s|Exec=env MOZ_USE_XINPUT2=1 |Exec=|g" /usr/share/applications/firefox.desktop

Stackoverflow: https://askubuntu.com/questions/978226/how-to-make-touch-screen-scrolling-work-in-firefox-quantum

Spotify

Install

# 1. Add the Spotify repository signing keys to be able to verify downloaded packages
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410

# 2. Add the Spotify repository
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list

# 3. Update list of available packages
sudo apt-get update

# 4. Install Spotify
sudo apt-get install spotify-client

Fix high resolution display issue

Issue screenshot:

You could edit /usr/share/applications/spotify.desktop and change the line with Exec= to:

Exec=spotify --force-device-scale-factor=1.8 %U

Spotify Community: https://community.spotify.com/t5/Desktop-Linux/Linux-client-barely-usable-on-HiDPI-displays/td-p/1067272

Input

新酷音

Install

 sudo apt-get install fcitx fcitx-chewing

Go to System Settings > Language Support > Language Click Install / Remove Languages and install Chinese(traditional)

Keybord input method: fctix

Then logout and login.

Go to System Settings > Text Entry

Add Chewing(fctix)

Battery

TLP- Linux Advanced Power Management

sudo add-apt-repository ppa:linrunner/tlp  
sudo apt-get update
sudo apt-get install tlp tlp-rdw

Docs: http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html

About

⚙️ Personal XPS13 settings and configurations on Ubuntu16.04

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages