Giter Site home page Giter Site logo

linux-config's Introduction

Some configuration for my system

Setting the Hyper Key

For some reason Ubuntu treats the Hyper key the same as the Super key, they are both assigned to Mod3. Further complicating the issue Gnome doesn't source .xinit on startup so it's difficult to run xmodmapwhen a desktop session starts. The best way I found is to modify the keyboard codes used in the X session by modifying the xkb configuration.

NOTE Make a copy fo the file to be modified:

sudo cp /usr/share/x11/xkb/symbols/pc /usr/share/x11/xkb/symbols/pc.ORIG

We are going to change the modifier of the Super key from Mod3 to Mod4, this leaves the Hyper assigned to Mod4 and the OS can disambiguate the 2 keys.

Open the file /usr/share/x11/xkb/symbols/pc and find all references to the SUPER_L and SUPER_R keys being assigned to Mod4 and change it to Mod3:

Line 39: modifier_map Mod4 { Super_L, Super_R }; -> modifier_map Mod3 { Super_L, Super_R };

Line 53: modifier_map Mod4 { <SUPR> }; -> modifier_map Mod3 { <SUPR> };

NOTE The drawback to this method is that if an update or program makes a change to the keyboard configuration file, changes are lost and need to be reapplied.

Keybindings

After the Hyper key has been mapped properly setup the shell level key-bindings by running dconf load /org/gnome/desktop/wm/keybindings/ < keybindings

Terminal

User Profile

dconf load /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ < terminal-profile

Keybindings

dconf load /org/gnome/terminal/legacy/keybindings/ < terminal-keybindings

Gnome Tweaks

Extensions

Extension

Top Bar

Top Bar

Typing

Typing

Workspaces

Workspaces

oh-my-zsh

Install

  • sudo apt-get install zsh
  • sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  • logout & login

Spaceship Theme

curl -o - https://raw.githubusercontent.com/denysdovhan/spaceship-zsh-theme/master/install.zsh | zsh

Customizing the shell

Copy files into $ZSH_CUSTOM (default ~/.oh-my-zsh/custom) and they get sourced when the shell starts

  • aliases.zsh a file that contains command aliases
  • path.zsh adjusts $PATH

Set up Python

  1. Install pip: sudo python get-pip.py
  2. Install virtualenv sudo pip install virtualenv

linux-config's People

Contributors

logicbomb avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.