fix: satty now uses wl-copy for copy action
This commit is contained in:
parent
8b93cf4bde
commit
f9fcd1fd77
1 changed files with 3 additions and 5 deletions
|
@ -59,6 +59,8 @@ lib.mkIf osConfig.programs.sway.enable {
|
||||||
keybindings =
|
keybindings =
|
||||||
let
|
let
|
||||||
mod = config.wayland.windowManager.sway.config.modifier;
|
mod = config.wayland.windowManager.sway.config.modifier;
|
||||||
|
cliphist = getExe pkgs.cliphist;
|
||||||
|
copy = getExe' pkgs.wl-clipboard "wl-copy";
|
||||||
in
|
in
|
||||||
lib.mkOptionDefault {
|
lib.mkOptionDefault {
|
||||||
"${mod}+p" = "exec ${getExe pkgs.hyprlock}";
|
"${mod}+p" = "exec ${getExe pkgs.hyprlock}";
|
||||||
|
@ -73,10 +75,6 @@ lib.mkIf osConfig.programs.sway.enable {
|
||||||
# Start launcher
|
# Start launcher
|
||||||
"${mod}+d" = "exec ${getExe desktop.runner.package}";
|
"${mod}+d" = "exec ${getExe desktop.runner.package}";
|
||||||
"${mod}+s" =
|
"${mod}+s" =
|
||||||
let
|
|
||||||
cliphist = getExe pkgs.cliphist;
|
|
||||||
copy = getExe' pkgs.wl-clipboard "wl-copy";
|
|
||||||
in
|
|
||||||
mkIf cliphistEnabled "exec ${cliphist} list | ${desktop.runner.dmenu} | ${cliphist} decode | ${copy}";
|
mkIf cliphistEnabled "exec ${cliphist} list | ${desktop.runner.dmenu} | ${cliphist} decode | ${copy}";
|
||||||
# Toggle the current focus between tiling and floating mode
|
# Toggle the current focus between tiling and floating mode
|
||||||
"${mod}+Shift+space" = "floating toggle";
|
"${mod}+Shift+space" = "floating toggle";
|
||||||
|
@ -99,7 +97,7 @@ lib.mkIf osConfig.programs.sway.enable {
|
||||||
"${mod}+u" =
|
"${mod}+u" =
|
||||||
"exec ${getExe pkgs.hyprshot} -o ${config.xdg.userDirs.pictures}/screenshots -m region";
|
"exec ${getExe pkgs.hyprshot} -o ${config.xdg.userDirs.pictures}/screenshots -m region";
|
||||||
"${mod}+Shift+u" =
|
"${mod}+Shift+u" =
|
||||||
"exec ${getExe pkgs.hyprshot} --raw -m region | ${getExe pkgs.satty} -f - --fullscreen";
|
"exec ${getExe pkgs.hyprshot} --raw -m region | ${getExe pkgs.satty} -f - --fullscreen --copy-command ${copy}";
|
||||||
|
|
||||||
#: Workspace movement {{{
|
#: Workspace movement {{{
|
||||||
"--input-device=${inputs.kb.builtin} ${mod}+ampersand" = "workspace number 1";
|
"--input-device=${inputs.kb.builtin} ${mod}+ampersand" = "workspace number 1";
|
||||||
|
|
Loading…
Add table
Reference in a new issue