adding autoclip

This commit is contained in:
tengel 2024-03-20 11:28:46 -05:00
parent 75b1f6aa96
commit a2fcd7ecd6

25
shell/autoclip.sh Executable file
View file

@ -0,0 +1,25 @@
#!/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