Skip to content

Instantly share code, notes, and snippets.

@alexlangberg
alexlangberg / synclient-mousepad-dell-xps-13-2015.sh
Last active September 12, 2015 06:23
synclient-mousepad-dell-xps-13-2015.sh
#!/bin/bash
synclient LeftEdge = 1583
synclient RightEdge = 5359
synclient TopEdge = 1371
synclient BottomEdge = 4481
synclient FingerLow = 25
synclient FingerHigh = 30
synclient MaxTapTime = 180
synclient MaxTapMove = 250
@alexlangberg
alexlangberg / i3status-config
Created May 28, 2015 07:57
Config for i3status.
general {
colors = false
interval = 5
}
order += "volume master"
# order += "ipv6"
order += "disk /"
# order += "run_watch DHCP"
# order += "run_watch VPN"
@alexlangberg
alexlangberg / lock.sh
Created May 28, 2015 07:55
Lock script for i3lock.
#!/bin/bash
scrot ~/.i3/i3lock-screenshot.png
convert ~/.i3/i3lock-screenshot.png -blur 0x5 ~/.i3/i3lock-screenshot-blur.png
i3lock -i ~/.i3/i3lock-screenshot-blur.png
@alexlangberg
alexlangberg / screens.sh
Created May 28, 2015 07:51
Monitor setup script.
#!/bin/sh
# work
xrandr --output DFP9 --primary
xrandr --output DFP24 --off --output DFP21 --off --output DFP20 --off --output DFP23 --off --output DFP22 --off --output DFP8 --off --output DFP9 --mode 1920x1080 --pos 1080x280 --rotate normal --output DFP6 --off --output DFP7 --off --output DFP4 --off --output DFP5 --off --output DFP2 --off --output DFP3 --off --output DFP1 --mode 1920x1080 --pos 3000x0 --rotate right --output DFP14 --off --output DFP15 --off --output DFP16 --off --output DFP17 --off --output DFP10 --off --output DFP11 --off --output DFP12 --off --output DFP13 --mode 1920x1080 --pos 0x0 --rotate left --output DFP18 --off --output DFP19 --off
@alexlangberg
alexlangberg / i3-config
Created May 28, 2015 07:49
Configuration file for i3
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@alexlangberg
alexlangberg / dunstrc
Created May 27, 2015 22:19
Settings for dunst notifications. Colors from FlatStudio GTK theme (dark). Place in ~/.config/dunst/
[global]
font = Ubuntu 10
# Allow a small subset of html markup in notifications and formats:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough</s>
# <u>underline</u>
#
# For a complete reference see
@alexlangberg
alexlangberg / gist:5804301
Created June 18, 2013 10:34
Create a simple pan/zoom interface with D3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>D3 pan and zoom sample</title>
<script src="http://code.jquery.com/jquery-2.0.2.min.js" type="text/javascript"></script>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<style type="text/css">
html, body {