mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 01:55:22 +08:00
modules.system.gui: add xwayland clipboard binding
This commit is contained in:
@@ -74,15 +74,22 @@ inputs:
|
|||||||
niri.settings =
|
niri.settings =
|
||||||
{
|
{
|
||||||
binds =
|
binds =
|
||||||
{
|
let
|
||||||
"Mod+WheelScrollDown" = { action.focus-column-right = {}; cooldown-ms = 50; };
|
xsel = "${inputs.pkgs.xsel}/bin/xsel";
|
||||||
"Mod+WheelScrollUp" = { action.focus-column-left = {}; cooldown-ms = 50; };
|
wl-copy = "${inputs.pkgs.wl-clipboard}/bin/wl-copy";
|
||||||
"Mod+Left".action.focus-column-left = {};
|
wl-paste = "${inputs.pkgs.wl-clipboard}/bin/wl-paste";
|
||||||
"Mod+Right".action.focus-column-right = {};
|
in
|
||||||
"Mod+MouseMiddle".action.close-window = {};
|
{
|
||||||
"Mod+L".action.spawn = [ "dms" "ipc" "lock" "lock" ];
|
"Mod+WheelScrollDown" = { action.focus-column-right = {}; cooldown-ms = 50; };
|
||||||
"Mod+W".action.move-workspace-to-monitor-next = {};
|
"Mod+WheelScrollUp" = { action.focus-column-left = {}; cooldown-ms = 50; };
|
||||||
};
|
"Mod+Left".action.focus-column-left = {};
|
||||||
|
"Mod+Right".action.focus-column-right = {};
|
||||||
|
"Mod+MouseMiddle".action.close-window = {};
|
||||||
|
"Mod+L".action.spawn = [ "dms" "ipc" "lock" "lock" ];
|
||||||
|
"Mod+W".action.move-workspace-to-monitor-next = {};
|
||||||
|
"Mod+Ctrl+C".action.spawn = [ "sh" "-c" "${xsel} -ob | ${wl-copy}" ];
|
||||||
|
"Mod+Ctrl+V".action.spawn = [ "sh" "-c" "${wl-paste} -n | ${xsel} -ib" ];
|
||||||
|
};
|
||||||
outputs =
|
outputs =
|
||||||
{
|
{
|
||||||
"Tianma Microelectronics Ltd. TL134ADXP03 Unknown" =
|
"Tianma Microelectronics Ltd. TL134ADXP03 Unknown" =
|
||||||
|
|||||||
Reference in New Issue
Block a user