Skip to content

Instantly share code, notes, and snippets.

# GLX backend
backend = "glx"
# vsync = "opengl"; # "none", "drm", "opengl", "opengl-oml", "opengl-swc", "opengl-mswc"
# glx-no-stencil = true;
# glx-no-rebind-pixmap = true;
# glx-swap-method = "undefined";
# Shadow
shadow = true;
no-dock-shadow = true;
# Name: Nameless Openbox theme
# Author: lassekongo83
# License: GPL-3.0+
# Menu
menu.border.color: #37474F
menu.title.bg: flat solid
menu.title.bg.color: #212d33
@lassekongo83
lassekongo83 / .xinitrc
Last active October 9, 2019 08:54
.xinitrc for launching GNOME without GDM in VirtualBox
#!/bin/sh
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?* ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
source /etc/X11/xinit/xinitrc.d/50-systemd-user.sh &
@lassekongo83
lassekongo83 / dismiss-youtube-login-modal.user.js
Created September 15, 2020 16:37
Auto-click the dismiss button on YouTube's annoying login modal and then automatically start the video.
// ==UserScript==
// @name Dismiss YouTube login modal
// @namespace https://www.youtube.com/
// @match https://www.youtube.com/*
// @grant none
// @version 0.1
// @description Auto-click the dismiss button on YouTube's annoying login modal
// ==/UserScript==
(function() {
@lassekongo83
lassekongo83 / youtube-load-more.user.js
Last active May 15, 2021 04:25
Replace infinite scrolling on the YouTube homepage grid with a "Load More" button
// ==UserScript==
// @name YouTube Load More
// @namespace Violentmonkey Scripts
// @match https://www.youtube.com/*
// @grant none
// @version 1.0
// @author https://github.com/lassekongo83
// @description Replace infinite scrolling on the homepage grid with a "Load More" button
// ==/UserScript==
@lassekongo83
lassekongo83 / autoclose-youtube-miniplayer.user.js
Last active November 30, 2021 07:38
Auto-close the miniplayer and remove the miniplayer button on the player
// ==UserScript==
// @name Auto-close YouTube miniplayer
// @namespace Violentmonkey Scripts
// @match https://www.youtube.com/*
// @grant none
// @version 1.0
// @author Frellwit
// @description Auto-close the miniplayer and remove the miniplayer button on the player
// ==/UserScript==
@lassekongo83
lassekongo83 / userChrome.css
Last active January 14, 2022 18:13
My Firefox Proton userChrome. Slightly more compact and with tabs that look like tabs.
:root {
/* Adjust the tab height to your liking */
--tab-min-height: 30px !important;
--arrowpanel-menuitem-padding: 4px 8px !important;
}
#tabbrowser-tabs {
--user-tab-rounding: 2px;
}
@lassekongo83
lassekongo83 / snap-remover.sh
Last active July 6, 2022 16:37
Completely remove snaps from Ubuntu.
#!/bin/sh
# Remove snaps completely from Ubuntu
# Tested on Ubuntu 22.04
# WARNING: This script will remove ALL snap applications. (Includning Firefox and the Software store).
# Make backups of your configurations, bookmarks, etc. You should also make sure to have replacements
# ready for software that you use. (Like Firefox for example.)
# Lists all installed snap applications and then uninstalls them.
@lassekongo83
lassekongo83 / gnome-randomwp.sh
Last active August 9, 2022 16:05
Set a random wallpaper in GNOME.
#!/bin/bash
# A simple script to set a random wallpaper in GNOME
# Add the script to ~/.bash_profile or ~/.profile to run it at each login
# Change to your wallpaper location
DIR="$HOME/.local/share/backgrounds"
PIC=$(ls $DIR/* | shuf -n1)