Skip to content

Instantly share code, notes, and snippets.

@mpiannucci
Last active November 21, 2017 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpiannucci/083cdc0aa39b7b051174 to your computer and use it in GitHub Desktop.
Save mpiannucci/083cdc0aa39b7b051174 to your computer and use it in GitHub Desktop.
Linux Config Files
" Try to determine type of file from name and contents
filetype plugin indent on
" Enable syntax highligting
syntax on
" Show partial commands on last line
set showcmd
" Highlight searches
set hlsearch
" Case insensitive search except for capitals being used
set ignorecase
set smartcase
" Allow backspacing over indents and such
set backspace=indent,eol,start
" Keep the same indent for the current line
set autoindent
" Something about jumping ahead line
set nostartofline
" Display the cursor position on last line of screen
set ruler
" Always display the status line
set laststatus=2
" Enable the mouse
set mouse=a
" Set command window height
set cmdheight=2
" display line number
set number
" Indentation setttings, 4 spaces
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory extendedglob notify
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/matthew/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Begin User Config
autoload -Uz colors && colors
alias ls='ls --color=auto'
autoload -Uz promptinit
promptinit
PROMPT='%n@%m %1~ %# '
# User Environmental Variables
export EDITOR=/usr/bin/vim
# Configuration file for libinput-gestures.
#
# The default configuration file exists at /etc/libinput-gestures.conf
# but a user can create a personal custom configuration file at
# ~/.config/libinput-gestures.conf.
#
# Lines starting with '#' and blank lines are ignored.
#
# Each gesture line has 3 [or 4] arguments:
#
# action motion [finger_count] command
#
# where action and motion is either:
# swipe up
# swipe down
# swipe left
# swipe right
# pinch in
# pinch out
#
# command is the remainder of the line and is any valid shell command +
# arguments.
#
# finger_count is a single numeric digit and is optional (and is
# typically 3 or 4). If specified then the command is executed when
# exactly that number of fingers is used in the gesture. If not
# specified then the command is executed when that gesture is executed
# with any number of fingers. Gesture lines specified with finger_count
# have priority over the same gesture specified without any
# finger_count.
#
# Typically command will be xdotool, or wmctrl. See "man xdotool" for
# the many things you can action with that tool. Note that unfortunately
# xdotool does not work with native Wayland clients.
#
# Note the default is an "internal" command that uses wmctrl to switch
# workspaces and, unlike xdotool, works on both Xorg and Wayland (via
# XWayland). It also can be configured for vertical and horizontal
# switching over tabular workspaces, as per the example below. You can
# also add "-w" to the internal command to allow wrapping workspaces.
# Move to next workspace (works for GNOME/KDE/etc on Wayland and Xorg)
gesture swipe up _internal ws_up
#gesture swipe up xdotool key super+Page_Down
# Move to prev workspace (works for GNOME/KDE/etc on Wayland and Xorg)
gesture swipe down _internal ws_down
#gesture swipe down xdotool key super+Page_Up
# Toggle Overview
gesture swipe left dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle();'
# Toggle Overview
gesture swipe right dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle();'
# Toggle Apps Page
gesture pinch in dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle(); if (Main.overview._shown) Main.overview.viewSelector._toggleAppsPage();'
# Toggle Apps Page
gesture pinch out dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle(); if (Main.overview._shown) Main.overview.viewSelector._toggleAppsPage();'
[Unit]
Description=Fix for immediate wakeup from suspend on lid close
[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo XHC1 > /proc/acpi/wakeup"
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment