Skip to content

Instantly share code, notes, and snippets.

@EKami
EKami / launch_focus_min_wayland.sh
Last active October 19, 2022 07:18
Open and close terminator on Gnome 3 wayland
#!/bin/bash
# https://superuser.com/questions/142945/bash-command-to-focus-a-specific-window/1627429#1627429
# To use, set a shortcut in Gnome like this: bash -c '/home/user/launch_focus_min_wayland.sh terminator'
# To check the available function names, do ALT + F2 and type "lg"
app=$1
if [[ $app == terminator ]]; then
process_name=/usr/bin/terminator
else
process_name=$app
@wpmudev-sls
wpmudev-sls / forminator-paypal-description.php
Last active May 15, 2021 18:40
[Forminator] - PayPal order Description.
<?php
/**
* Plugin Name: [Forminator] - PayPal order Description and NO_SHIPPING
* Plugin URI: https://premium.wpmudev.org/
* Description: Add description to PayPal orders. Compatible only with Forminator 1.14.7 and higher. Please test this snippet on a staging site before any forminator update (or any general update)
* Task: SLS-1435
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/