This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://github.com/KarsMulder/evsieve | |
if [[ ! -z "$1" ]]; then | |
if [[ "${1:0:4}" == "pci-" || "${1:0:9}" == "platform-" ]]; then | |
input="/dev/input/by-path/$1" | |
else | |
input="/dev/input/by-id/$1" | |
fi | |
elif [[ -e "/dev/input/by-id/usb-04d9_USB-HID_Keyboard_000000000407-event-kbd" ]]; then | |
input="/dev/input/by-id/usb-04d9_USB-HID_Keyboard_000000000407-event-kbd" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Touch wake Thinkpad X1 Yoga 3rd gen hack | |
After=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target sleep.target | |
[Service] | |
ExecStart=/bin/sh -c "modprobe acpi_call && echo '\\_SB.PCI0.LPCB.EC._Q2A' > /proc/acpi/call" | |
[Install] | |
WantedBy=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target sleep.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
systemctl --user stop pulseaudio.service | |
systemctl --user stop pulseaudio.socket | |
sudo systemctl disable --global pulseaudio | |
pkill pulseaudio | |
echo "deb-src http://archive.ubuntu.com/ubuntu hirsute main universe restricted multiverse" | sudo tee /etc/apt/sources.list.d/hirsute-src.list | |
echo "deb-src http://security.ubuntu.com/ubuntu/ hirsute-security restricted universe main multiverse" | sudo tee /etc/apt/sources.list.d/hirsute-src.list | |
echo "deb-src http://archive.ubuntu.com/ubuntu hirsute-updates restricted universe main multiverse" | sudo tee /etc/apt/sources.list.d/hirsute-src.list | |
sudo apt update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#tabs-container .toggle-trash { | |
display: none !important; | |
} | |
#tabs-container.top { | |
padding-top: 0px !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adopted from https://menno.io/posts/pulseaudio_monitoring/ for a very different purpose. | |
# Needs: pacmd, xdotool, setting up .alsoftrc as below and changing Minecraft to the new output. | |
from signal import signal, SIGINT | |
import os | |
import sys | |
import time | |
from Queue import Queue | |
from ctypes import POINTER, c_ubyte, c_void_p, c_ulong, cast | |
# First download https://github.com/Valodim/python-pulseaudio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name J-Novel Forum More Prominent Upvoted Chevron | |
@namespace github.com/rickybrent | |
@version 1.0.1 | |
@license unlicense | |
@updateURL https://gist.github.com/rickybrent/bdc444f51f8d9b0e4262d679ff09dbe9/raw/j-novel.user.css | |
==/UserStyle== */ | |
@-moz-document domain("forums.j-novel.club") { | |
.topic [component="post/upvote"].upvoted { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-moz-document domain("meet.google.com") { | |
div.rG0ybd, | |
div.LCXT6 { | |
max-height: 42px; | |
filter: invert(100%); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name minimal-scrollbar | |
@version 1.0.0 | |
@description Minimal scrollbar for Vivaldi. | |
@namespace rickybrent | |
@author rickybrent | |
@license BSD-2-clause | |
@updateURL https://gist.githubusercontent.com/rickybrent/fa28b17e77adb20ca744160a7ad7d334/raw/minimal-scrollbar.user.css | |
==/UserStyle== */ | |
::-webkit-scrollbar-track { |
NewerOlder