Workspace Quality of Life

  1. Personal Computing Operating System, Desktop Environment, Hardware
    1. KDE Additional Setup (System Settings)
    2. Default Applications
      1. Linking to Binaries

The following are some quick lessons learned from setting up a Linux developer laptop from scratch. These points are my own personal preferences, intended to be a reference for when I have to do this again.

Personal Computing Operating System, Desktop Environment, Hardware

I really enjoy using Debian with KDE Plasma.
My personal computing devices use the Testing/Unstable distributions.
Currently, I am using a MacBook Pro (13-inch, Early 2015) as my hardware.
I am in the process of switching my daily driver to a Lenovo C740, running Debian Buster.

Aside: I have had a relatively positive experience with the Dell XPS13 9360. Unfortunately a capacitor popped rendering the screen unusable. That laptop served me for roughly two years (May 2018 - Mar 2020), so I am slightly disappointed with its durability/longevity.

KDE Additional Setup (System Settings)

Default Applications

Linking to Binaries

Example uses for the latest stable Firefox binary.

  1. Decompress the archives into /opt for system-wide installation, or ~/opt for the current user only.
  2. Create a file firefox-stable.desktop (replace stable with beta/nightly,) in the:
    • /usr/share/applications directory for system-wide installation
    • ~/.local/share/applications directory for current user installation
[Desktop Entry]
Name=Firefox Stable
Comment=Web Browser
Exec=/opt/firefox/firefox %u
Terminal=false
Type=Application
Icon=/opt/firefox/browser/chrome/icons/default/default128.png
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true

Update the paths accordingly.

raw markdown
---
title: "Workspace Quality of Life"
date: 2020-03-23T10:02:22-07:00
draft: false
description: Notes and configuration for developer laptop settings. Keeping track of some of preferences (when setting up a new laptop from scratch).
status: in-progress
tags:
  - linux
  - personal
  - setup
  - guide

---

The following are some quick lessons learned from setting up a Linux developer laptop from scratch. These points are my own personal preferences, intended to be a reference for when I have to do this again.

# Personal Computing Operating System, Desktop Environment, Hardware

I really enjoy using [Debian](https://www.debian.org/) with [KDE Plasma](https://kde.org/).
My personal computing devices use the Testing/Unstable distributions.
~~Currently, I am using a MacBook Pro (13-inch, Early 2015) as my hardware.~~
I am in the process of switching my daily driver to a Lenovo C740, running Debian Buster.

Aside: I have had a relatively positive experience with the Dell XPS13 9360. Unfortunately a capacitor popped rendering the screen unusable. That laptop served me for roughly two years (May 2018 - Mar 2020), so I am slightly disappointed with its durability/longevity.

## KDE Additional Setup (System Settings)

* Desktop Behavior > Virtual Desktops > 
    * Desktops > Layout > Number of desktops: `4`
    * Switching > Desktop Switching
        * Switch One Desktop to the Left: `Meta+Shift+Left`
        * Switch One Desktop to the Right: `Meta+Shift+Right`
        * Desktop Switch On-Screen Display: `True`
            * Duration: `500 msec`
            * Show desktop layout indicators: `True`


* Hardware > Input Devices
    * Taps > Mouse Click Emulation: `True`
    * Scrolling > Reverse scrolling: `True`

* Shortcuts >
    * Global Shortcuts > System Settings
        * Window One Desktop to the Left: `Meta+Alt+Shift+Left`
        * Window One Desktop to the Right: `Meta+Alt+Shift+Right`
        * Make Window Fullscreen: `Meta+Shift+PgUp`
        * Maximize Window: `Meta+PgUp`
        * Minimize Window: `Meta+PgDown`
    * Custom Shortcuts > Screenshots
        * Take Full Screen Screenshot: `Meta+#` (`Meta+Shift+3`)
        * Take Rectangular Region Screenshot `Meta+$` (`Meta+Shift+4`)
        * Take Active Window Screenshot: `Meta+Shift+Space`

## Default Applications

* Browser: [Firefox](https://www.mozilla.org/en-US/firefox/new/)
    * `about:config` > `ui.systemUsesDarkTheme`: 1
* Mail: [Thunderbird](https://www.thunderbird.net/en-US/)
    * [Enigmail](https://addons.thunderbird.net/en-US/thunderbird/addon/enigmail/)
    * Optional: Remove KMail `sudo apt remove kmail`
* Text Editor: [vim](https://www.vim.org/)
* Code Editor: [Visual Studio Code](https://code.visualstudio.com/) 

### Linking to Binaries

Example uses for [the latest stable Firefox binary](https://www.mozilla.org/en-US/firefox/).

1. Decompress the archives into `/opt` for system-wide installation, or `~/opt` for the current user only.
2. Create a file `firefox-stable.desktop` (replace `stable` with `beta`/`nightly`,) in the:
    - `/usr/share/applications` directory for system-wide installation
    - `~/.local/share/applications` directory for current user installation

```text
[Desktop Entry]
Name=Firefox Stable
Comment=Web Browser
Exec=/opt/firefox/firefox %u
Terminal=false
Type=Application
Icon=/opt/firefox/browser/chrome/icons/default/default128.png
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
```

Update the paths accordingly.

edit history: _posts/2020/03/workspace_qol.md