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 | |
# Remap "copilot" to right meta key (aka "Right Super" for gnome) using https://github.com/KarsMulder/evsieve | |
sudo setkeycodes 6e 193 | |
sudo /usr/local/bin/evsieve \ | |
--input "/dev/input/by-path/platform-i8042-serio-0-event-kbd" grab persist=full \ | |
--hook key:leftmeta key:leftshift key:f23 sequential period=0.032 send-key=key:rightmeta \ | |
--withhold key:leftmeta key:leftshift key:f23 \ | |
--output create-link="/dev/input/by-path/platform-i8042-serio-0-event-kbd-evsieve" |
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%); | |
} | |
} |
NewerOlder