Skip to content

Instantly share code, notes, and snippets.

@rbreaves
rbreaves / Firefox-global-menu-fix.sh
Last active May 2, 2024 06:35
Firefox AUR global menu fix for any distro
#!/bin/bash
curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/install | sudo sh
sudo apt install podman
distrobox-create --name arch --image docker.io/library/archlinux:latest
distrobox-enter arch
# Pre-compiled
@rbreaves
rbreaves / surface_laptop_go_ubuntu_21.10.md
Created March 10, 2022 04:00
Surface Laptop Go Touchpad Settings

Configuring Touchpad

xinput --list

⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ ELAN Touchpad and Keyboard Touchpad     	id=8	[slave  pointer  (2)]
⎜   ↳ ELAN Touchpad and Keyboard Consumer Control	id=9	[slave  pointer  (2)]
⎜   ↳ ELAN Touchpad and Keyboard Mouse        	id=11	[slave  pointer  (2)]
⎜   ↳ MELF0411:00 1FD2:9005                   	id=13	[slave  pointer  (2)]
@rbreaves
rbreaves / msteams.lua
Last active February 10, 2022 16:18 — forked from NuxRo/msteams.lua
Apply Windows Decorations to Microsoft Teams
-- MS Teams on Linux doesn't show the window decorations, let's fix that
-- drop this in your devilspie2 folder, typically ~/.config/devilspie2 and start devilspie2
if string.match(get_window_name(), "Microsoft Teams") then
decorate_window();
pin_window();
make_always_on_top();
end
@rbreaves
rbreaves / gimp.css
Created January 22, 2022 21:16
GIMP 2.99.6 Mojave-dark css mod
/**********************************/
/* GIMP Wilbur nullifier */
/* Mojave-dark */
/* Copyright 2021, Ben Reaves */
/* Licensed MIT */
/* */
/**********************************/
/* wilbur logo bye bye */
@rbreaves
rbreaves / quaketerminal.ahk
Created January 16, 2022 19:45
QuakeTerminal & hide all other Apps while using VSCode
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetTimer, HideTerminal, 1000 ;
return
WinMatcher := "ahk_class CASCADIA_HOSTING_WINDOW_CLASS"
HideTerminal:
@rbreaves
rbreaves / hi-low-dpi-x11
Last active January 7, 2022 16:40
HiDPI w/ low DPI monitor - Ubuntu Budgie
HiDPI laptop w/ low DPI external monitor X11 & Budgie
Divide your hidpi height by your low dpi height
1800÷1080 = 1.66667
Multipy your low dpi width by this number
1.66667 * 1920 = 3200
# Not needed
@rbreaves
rbreaves / USBkbd-linux2mac.sh
Created December 12, 2021 06:47
Remap USB keyboards on Linux to be like an Apple Keyboard - swaps Alt/Win(Super)
sudo apt install evtest
sudo evtest
----------------------------------- No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Lid Switch
/dev/input/event1: Video Bus
/dev/input/event2: gpio-keys
/dev/input/event3: gpio-keys
/dev/input/event4: HDA Intel PCH Mic
@rbreaves
rbreaves / mojave_dark.reg
Last active April 1, 2024 16:03 — forked from mihawk90/breeze_dark.reg
Mojave Dark theme for Wine
[Control Panel\\Colors] 1491939580
#time=1d2b2fb5c69191c
"ActiveBorder"="62 62 62"
"ActiveTitle"="62 62 62"
"AppWorkSpace"="53 53 53"
"Background"="62 62 62"
"ButtonAlternativeFace"="200 0 0"
"ButtonDkShadow"="154 154 154"
"ButtonFace"="62 62 62"
"ButtonHilight"="119 126 140"
@rbreaves
rbreaves / picom.conf
Last active November 10, 2021 06:08
Intended for GalliumOS on Chromebooks
# ~/.config/picom.conf
# Compton Configuration, courtesy of Xubuntu Developers
# Please note that Compton is not supported by Xubuntu and may not work
# correctly for you. This file is provided as a set of sane defaults and is in
# no way endorsed by the Xubuntu team.
#
# About Compton: https://github.com/chjj/compton
# Heavily based on: http://bit.ly/1l5OrzL
# Sample settings: https://github.com/chjj/compton/blob/master/compton.sample.conf
@rbreaves
rbreaves / keybindings.json
Created October 30, 2021 16:01
keybindings.json for vscode (macOS)
// Place your key bindings in this file to override the defaults
[
{
"key": "cmd+pausebreak",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u0003"
},
"when": "terminalFocus"
},