xwayland: tried to fix clipboard issues
originally wanted to fix a 1password copy issue, but that fixed itself after a restart, leaving xclip and the commented code in for potentional future endeavors
This commit is contained in:
parent
7f80d5a263
commit
fbd3a669fd
|
@ -34,6 +34,48 @@ let
|
||||||
1password&
|
1password&
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# clipsync = pkgs.writeShellScriptBin "clipsync" ''
|
||||||
|
# insert() {
|
||||||
|
# # Read all the piped input into variable.
|
||||||
|
# value=$(cat)
|
||||||
|
# wValue="$(wl-paste)"
|
||||||
|
# xValue="$(xclip -o -selection clipboard)"
|
||||||
|
|
||||||
|
# notify() {
|
||||||
|
# notify-send -u low -c clipboard "$1" "$value"
|
||||||
|
# }
|
||||||
|
|
||||||
|
# if [ "$value" != "$wValue" ]; then
|
||||||
|
# notify "Wayland"
|
||||||
|
# echo -n "$value" | wl-copy
|
||||||
|
# fi
|
||||||
|
|
||||||
|
# if [ "$value" != "$xValue" ]; then
|
||||||
|
# notify "X11"
|
||||||
|
# echo -n "$value" | xclip -selection clipboard
|
||||||
|
# fi
|
||||||
|
# }
|
||||||
|
|
||||||
|
# watch() {
|
||||||
|
# # Wayland -> X11
|
||||||
|
# wl-paste --type text --watch clipsync insert &
|
||||||
|
|
||||||
|
# # X11 -> Wayland
|
||||||
|
# while clipnotify; do
|
||||||
|
# xclip -o -selection clipboard | clipsync insert
|
||||||
|
# done &
|
||||||
|
# }
|
||||||
|
|
||||||
|
# kill() {
|
||||||
|
# pkill wl-paste
|
||||||
|
# pkill clipnotify
|
||||||
|
# pkill xclip
|
||||||
|
# pkill clipsync
|
||||||
|
# }
|
||||||
|
# "$@"
|
||||||
|
# '';
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.${namespace}.desktop.hyprland = {
|
options.${namespace}.desktop.hyprland = {
|
||||||
|
@ -54,9 +96,14 @@ in
|
||||||
libnotify
|
libnotify
|
||||||
|
|
||||||
# Wayland Utilities
|
# Wayland Utilities
|
||||||
wl-clipboard
|
|
||||||
wlr-randr
|
wlr-randr
|
||||||
|
|
||||||
|
# Clipboard Stuff
|
||||||
|
wl-clipboard
|
||||||
|
xclip
|
||||||
|
clipnotify
|
||||||
|
# clipsync
|
||||||
|
|
||||||
# Screenshot Utility
|
# Screenshot Utility
|
||||||
grimblast
|
grimblast
|
||||||
|
|
||||||
|
@ -128,6 +175,8 @@ in
|
||||||
"[workspace 8 silent] vesktop"
|
"[workspace 8 silent] vesktop"
|
||||||
"[workspace 9 silent] 1password"
|
"[workspace 9 silent] 1password"
|
||||||
"[workspace 1 silent] zen"
|
"[workspace 1 silent] zen"
|
||||||
|
|
||||||
|
"${pkgs.xorg.xhost}/bin/xhost +"
|
||||||
];
|
];
|
||||||
|
|
||||||
windowrulev2 = [
|
windowrulev2 = [
|
||||||
|
|
Loading…
Reference in a new issue