25 lines
528 B
Bash
Executable file
25 lines
528 B
Bash
Executable file
#!/usr/bin/env bash
|
|
#
|
|
# autoclip.sh - automatically sync X and GTK clipboards
|
|
#
|
|
# (1) sudo apt-get install autocutsel
|
|
# (2) add this script as an Autostart
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
autocutsel -s CLIPBOARD -f
|
|
autocutsel -s PRIMARY -f
|
|
|
|
# Example autostart for MATE
|
|
# ~/.config/autostart/autoclip.desktop
|
|
|
|
# [Desktop Entry]
|
|
# Type=Application
|
|
# Exec=/home/<USER>/bin/autoclip.sh
|
|
# Name=autoclip
|
|
# Name[en_US]=autoclip
|
|
# Comment=
|
|
# Comment[en_US]=
|
|
# Hidden=false
|
|
# X-MATE-Autostart-enabled=true
|
|
# X-MATE-Autostart-Delay=0
|