|
179 | 179 | _ brdn bru _ _ _ _ prev pp next mute vold volu _ _ _ _
|
180 | 180 | _ _ _ _ _ _ _ _ _ _ _ _ _ @til _ _ _
|
181 | 181 | _ _ _ _ _ _ home pgdn pgup end _ _ _
|
182 |
| - _ _ _ _ _ _ _ _ _ _ _ _ _ |
| 182 | + _ _ _ _ _ _ _ sdn sup _ _ _ _ |
183 | 183 | _ _ _ @ltab _ _ _ _ _ _ _
|
184 | 184 | )
|
185 | 185 | '';
|
|
472 | 472 | # Services
|
473 | 473 | #
|
474 | 474 | programs.adb.enable = true;
|
| 475 | + programs.ydotool.enable = true; |
475 | 476 | services.tor.enable = true;
|
476 | 477 | hardware.sane.enable = true;
|
477 | 478 | hardware.sane.extraBackends = [pkgs.hplip];
|
|
504 | 505 | "adbusers"
|
505 | 506 | "networkmanager"
|
506 | 507 | "scanner"
|
| 508 | + "ydotool" |
507 | 509 | "lp"
|
508 | 510 | ];
|
509 | 511 | #
|
@@ -731,13 +733,44 @@ in {
|
731 | 733 | enable = true;
|
732 | 734 | wrapperFeatures.gtk = true;
|
733 | 735 | extraOptions = ["--unsupported-gpu"];
|
734 |
| - extraConfig = '' |
| 736 | + extraConfig = let |
| 737 | + ydotool = "YDOTOOL_SOCKET=/run/ydotoold/socket ${ |
| 738 | + pkgs.ydotool |
| 739 | + }/bin/ydotool"; |
| 740 | + in '' |
735 | 741 | for_window [class="Alacritty"] fullscreen enable
|
736 | 742 | for_window [class="qutebrowser"] fullscreen enable
|
737 | 743 | for_window [class="mpv"] fullscreen enable
|
738 | 744 | assign [class="qutebrowser"] workspace 10
|
739 | 745 | assign [class="mpv"] workspace 8
|
740 | 746 |
|
| 747 | +
|
| 748 | + bindsym Mod4+Shift+i mode default, exec '${ |
| 749 | + pkgs.wl-kbptr |
| 750 | + }/bin/wl-kbptr -o general.home_row_keys=qnhfjklmdas' |
| 751 | + bindsym Mod4+Shift+u mode mouse |
| 752 | + mode mouse { |
| 753 | +
|
| 754 | + bindsym h exec '${ydotool} mousemove -x -20 -y 0' |
| 755 | + bindsym j exec '${ydotool} mousemove -x 0 -y 20' |
| 756 | + bindsym k exec '${ydotool} mousemove -x 0 -y -20' |
| 757 | + bindsym l exec '${ydotool} mousemove -x 20 -y 0' |
| 758 | +
|
| 759 | + bindsym n exec '${ydotool} mousemove -w -- -1 0' |
| 760 | + bindsym m exec '${ydotool} mousemove -w -- 0 -1' |
| 761 | + bindcode 59 exec '${ydotool} mousemove -w -- 0 1' |
| 762 | + bindcode 60 exec '${ydotool} mousemove -w -- 1 0' |
| 763 | +
|
| 764 | + bindsym d exec '${ydotool} click 0x40' |
| 765 | + bindsym --release d exec '${ydotool} click 0x80' |
| 766 | + bindsym a exec '${ydotool} click 0x41' |
| 767 | + bindsym --release a exec '${ydotool} click 0x81' |
| 768 | + bindsym s exec '${ydotool} click 0x42' |
| 769 | + bindsym --release s exec '${ydotool} click 0x82' |
| 770 | +
|
| 771 | + bindsym Escape mode default |
| 772 | + } |
| 773 | +
|
741 | 774 | bindsym Mod4+Shift+z mode "hotkeygrab"
|
742 | 775 | mode "hotkeygrab" {
|
743 | 776 | bindsym Mod4+Shift+z mode "default"
|
|
794 | 827 | "${mod}+Shift+l" = "move right";
|
795 | 828 | "${mod}+Shift+p" = wmEx "${sway-contrib.grimshot}/bin/grimshot copy output";
|
796 | 829 | "${mod}+Shift+n" = wmEx "${sway-contrib.grimshot}/bin/grimshot copy area";
|
797 |
| - "${mod}+Shift+u" = "exec ${pkgs.warpd}/bin/warpd --hint"; |
798 |
| - "${mod}+Shift+i" = "exec ${pkgs.warpd}/bin/warpd --normal"; |
799 |
| - "${mod}+Shift+y" = "exec ${pkgs.warpd}/bin/warpd --grid"; |
800 | 830 | "${mod}+0" = "workspace number 10";
|
801 | 831 | "${mod}+Shift+0" = "move container to workspace number 10";
|
802 | 832 | };
|
|
0 commit comments