Skip to content

Instantly share code, notes, and snippets.

View bdalenoord's full-sized avatar

Bas Dalenoord bdalenoord

View GitHub Profile
@bdalenoord
bdalenoord / simplify_gmail_rambox.js
Last active July 20, 2020 14:36
Combined stylesheets and javascript for Simplify GMail so it can be used in RAMBOX
function applyCss(css){
var head = document.getElementsByTagName("head")[0];
var s = document.createElement("style");
s.setAttribute("type", "text/css");
s.appendChild(document.createTextNode(css));
head.appendChild(s);
}
// https://raw.githubusercontent.com/leggett/simplify/master/gmail/style.css
applyCss(`
@bdalenoord
bdalenoord / README.md
Last active July 12, 2016 17:41
Custom configuration for Vivaldi

Custom styling for Vivaldi

I've changed a bit of styling for the Vivaldi web browser to make the interface a bit smaller and focussed around the tab bar.

To find out how to apply these styles, please read the first post on the Vivaldi forum.

Regards,
Bas Dalenoord

@bdalenoord
bdalenoord / custom.css
Created July 12, 2016 14:55
Custom configuration for Vivaldi
/* Move the red Vivaldi button to the right of the tab bar */
.linux .vivaldi,
.win .vivaldi
{
left: auto;
right: 0;
height: 30px;
}
/* Change tab size, make them smaller */
@bdalenoord
bdalenoord / styles.less
Last active April 14, 2016 14:18 — forked from staydecent/styles.less
Smaller, more compact tab-bar for Atom.io
/**
* Smaller tab bar
*
* Original by Adrian Unger (staydecent): https://gist.github.com/staydecent/9260095
* Modified by Bas Dalenoord (bdalenoord): https://gist.github.com/bdalenoord/8566f832ef2560374d58dec81580e749
*
* Modifications include: smaller top margin, small active block, less overall height.
* Tested with Atom 1.7.0
*
* Installation:
@bdalenoord
bdalenoord / nginx-acme.conf
Created October 20, 2015 19:04
NGINX config for 'Lets Encrypt' ACME-challenge
location ^~ /.well-known/ {
allow all;
default_type application/jose+json;
}
@bdalenoord
bdalenoord / hideskype.md
Last active December 10, 2015 20:08
Use some simple bash scripts and tools to hide Skype entirely from your window manager

Introduction

I've been bugged by the ugly icon for Skype ever since I started using it. This bothering was especially caused by the fact that I don't even use the Skype interface because I use the skype4pidgin plugin to use my Skype.

Most common window managers/panel applications have the option to hide icons from the system tray, but openbox/tint2 doesn't (at least for as far as I am concerned). I learned about xdotool and found an interesting section in the man pages. Using this information I've found a possibility to hide Skype. More about the tricks I used will be explained below.

The 'Window commands'

xdotool has got some excellent commands to get information about the windows that your window manager is serving. It can also manipulate these windows, by for instance resizing them. The manipulation action that was used in my solution is 'windowunmap', which u