Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python3
"""
Usage:
plasmasetconfig # List all widget namespaces
plasmasetconfig org.kde.plasma.digitalclock # List all config groups+keys
plasmasetconfig org.kde.plasma.digitalclock Appearance showSeconds true
Install:
chmod +x ~/Downloads/plasmasetconfig.py
sudo cp ~/Downloads/plasmasetconfig.py /usr/local/bin/plasmasetconfig
Uninstall:
@Zren
Zren / userChrome.css
Last active February 26, 2024 07:24
Firefox userChrome.css
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");
/*
** In order for userChrome.css to work, you need to open `about:config` and change
** `toolkit.legacyUserProfileCustomizations.stylesheets` to `true`.
*/
@Zren
Zren / QuickTileAppOnStart.js
Last active February 7, 2024 03:44
KWin Scripts
function onClientAdded(client) {
if (client.resourceName == "navigator" && client.resourceClass == "firefox") {
client.activeChanged.connect(function quickTileClientOnFocus(){
workspace.slotWindowQuickTileLeft()
client.activeChanged.disconnect(quickTileClientOnFocus)
})
}
}
workspace.clientAdded.connect(onClientAdded)
@Zren
Zren / nightcolor.py
Last active December 25, 2023 06:31
import dbus
from enum import Enum
import argparse
parser = argparse.ArgumentParser(description='Process some integers.')
parser.add_argument('temp',
type=int,
help='NightTemperature (eg: 4200)',
)
parser.add_argument('-d', '--delta',
@Zren
Zren / DarkMonokai.qss
Last active December 18, 2023 18:06
Dark Monokai - Quassel Theme (qss)
/**
** ____ _ ___ ___ _ _
** | _ \ | | | \/ | | | (_)
** | | \ |__ _ _ __| | __ | . . | ___ _ __ ___ | | __ __ _ _
** | | | | _` | '__| |/ / | |\/| |/ _ \| '_ \ / _ \| |/ // _` | |
** | |_/ /(_| | | | < | | | | (_) | | | | (_) | <| (_| | |
** |____/\__,_|_| |_|\_\ \_| |_/\___/|_| |_|\___/|_|\_\\__,_|_|
**
** Quassel Theme
**
/* Scrollbar */
/* From Quassel Wiki: http://sprunge.us/iZGB */
QScrollBar {
background: #131313;
margin: 0;
}
QScrollBar:hover {
/* Optional: Subtle accent of scrolling area on hover */
background: #161616; /* base +2 */
}
@Zren
Zren / HackerNews.css
Created June 15, 2023 15:51
Stylus theme for news.ycombinator.com and hckrnews.com
@-moz-document domain("hckrnews.com") {
@media (max-width: 767px) {
header > .span5:first-child {
width: 60vw;
}
header h3 {
padding-left: 20px;
}
}
#!/usr/bin/env python3
import argparse
import configparser
import datetime
import glob
import json
import logging
import os
import re
#!/usr/bin/sh
# https://gist.github.com/Zren/d39728991f854c0a5a6a7f7b70d4444a
# Updated: 2022-01-24
### Media Codecs (MP4 / Netflix DRM)
# https://en.opensuse.org/Additional_package_repositories
sudo zypper ar -cfp 90 https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials packman-essentials
sudo zypper dup --from packman-essentials --allow-vendor-change
### Zren's Apps
function isGoogleChrome(client) {
var suffix = ' - Google Chrome';
return client.caption.indexOf(suffix) >= 0;
}
function applyGridCheck(client) {
var rect = client.geometry;
//print(rect.x, rect.y, rect.width, rect.height, client.caption);
var halfX = 960;
var halfY = 523;