Install required packages:
apt-get install libxinerama-dev libx11-dev
Customization of [dwm], which base code of dwm may be found under:
git clone http://git.suckless.org/dwm
As root: | |
fstrim --all | |
systemctl enable fstrim.timer | |
Firefox about:config: | |
browser.sessionstore.interval -> 1800000 | |
browser.cache.disk.enable -> false | |
browser.cache.memory.capacity -> -1 | |
browser.cache.memory.enable -> true |
/** | |
* dwmconfig.h | |
* Hardware multimedia keys | |
*/ | |
/* Somewhere at the beginning of config.h include: */ | |
/* | |
You obviously need the X11 development packages installed, X11proto in particular, but | |
here is the location of the keysyms header upstream copy if you can't bother | |
using the contents of your own hard drive. ;-P |
export CHROME_BIN=/usr/bin/google-chrome | |
export DISPLAY=:99.0 | |
sh -e /etc/init.d/xvfb start | |
sudo apt-get update | |
sudo apt-get install -y libappindicator1 fonts-liberation libasound2 libgconf-2-4 libnspr4 libxss1 libnss3 xdg-utils | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome*.deb |
#!/bin/bash -eux | |
HEADSET="alsa_output.usb-Logitech_Logitech_USB_Headset-00.analog-stereo" | |
HEADSET_MIC="alsa_input.usb-Logitech_Logitech_USB_Headset-00.analog-mono" | |
#pacmd list-sink-inputs | |
#pacmd list-source-outputs | |
pacmd stat | grep -E '^Default (sink|source) name' |
#!/bin/bash | |
# Creates a custom Raspbian image and cross-compilation environment. | |
# | |
# USAGE: ./create_image.sh | |
# | |
# This script must be run as either root or sudo. | |
# | |
# After creating the chroot environment, the script specified in the | |
# *script* variable will be executed from within the chroot. Your | |
# custom system setup commands should be located here. For example, |
You will see something like this:
[Desktop Entry]
Version=1.0
Name=Telegram Desktop
Comment=Official desktop application for the Telegram messaging service
TryExec=/opt/telegram/telegram
#!/usr/bin/env bash | |
# You can call this script like this: | |
# $ ./brightnessControl.sh up | |
# $ ./brightnessControl.sh down | |
# Script inspired by these wonderful people: | |
# https://github.com/dastorm/volume-notification-dunst/blob/master/volume.sh | |
# https://gist.github.com/sebastiencs/5d7227f388d93374cebdf72e783fbd6a |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <X11/Xlib.h> | |
#include <X11/Xutil.h> | |
/** | |
* Set the WM_CLASS property of a window specified by it's ID | |
* Usage: set_wm_class <window id> <window class> <application name> | |
* Compile with: gcc set_wm_class.c -lX11 -o set_wm_class |