Skip to content

Instantly share code, notes, and snippets.

@PetePriority
PetePriority / teamshider.ps1
Last active February 15, 2024 09:07
Hide MS Teams sharing bar
Add-Type -TypeDefinition @"
using System;
using System.Runtime.InteropServices;
public class Win32 {
public const int SW_HIDE = 0;
public const int SW_SHOW = 5;
public const int AFFINITY_NONE = 0x00;
public const int AFFINITY_MONITOR = 0x01;
#!/bin/bash
set -e
sudo rm -rf /var/lib/apt/lists/*
apt-get update
apt-cache gencaches
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
#!/bin/sh
# i3-get-window-criteria - Get criteria for use with i3 config commands
# To use, run this script, then click on a window.
# Output is in the format: [<name>=<value> <name>=<value> ...]
# Known problem: when WM_NAME is used as fallback for the 'title="<string>"' criterion,
# quotes in "<string>" are not escaped properly. This is a problem with the output of `xprop`,
# reported upstream: https://bugs.freedesktop.org/show_bug.cgi?id=66807