Skip to content

Instantly share code, notes, and snippets.

@gerritwalther
gerritwalther / toggle_mouse_speed
Created May 23, 2019 12:08
Toggle mouse speed between two values using ratbag
#!/bin/bash
SPEED_DEFAULT=1000
SPEED_OTHER=400
if ! [ -x "$(command -v ratbagctl)" ]; then
echo 'Error: ratbag is not installed.' >&2
echo 'Install with "pacman -S libratbag" or "apt-get install ratbagd"'
exit 1
fi
@gerritwalther
gerritwalther / .profile
Created February 25, 2016 14:08
Add this line to fix the 'no keyboard input'-bug in intellij
# Fix no keyboard input in Intellij https://youtrack.jetbrains.com/issue/IDEA-78860
export IBUS_ENABLE_SYNC_MODE=1
@gerritwalther
gerritwalther / gitlab redmine issues importer
Last active September 8, 2016 19:06 — forked from jakimowicz/redmine gitlab sync
Helps to import issues from redmine
#!/usr/bin/env ruby
require 'faraday'
require 'json'
require 'gitlab'
module Redmine
Host = nil
APIKey = nil