Skip to content

Commit 7134ae1

Browse files
committed
replaced warpd with ydotool
1 parent 197ab7a commit 7134ae1

File tree

2 files changed

+40
-7
lines changed

2 files changed

+40
-7
lines changed

ghcjs/miso-functora/src/Functora/Miso/Widgets/Dialog.hs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ dialog opts args =
3636
then mempty
3737
else
3838
singleton
39-
$ div_
40-
[class_ "window"]
39+
$ nodeHtml
40+
"dialog"
41+
mempty
42+
-- [ boolProp "open" True
43+
-- ]
4144
[ div_
4245
[class_ "title-bar"]
4346
$ catMaybes

nix/configuration.nix

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
_ brdn bru _ _ _ _ prev pp next mute vold volu _ _ _ _
180180
_ _ _ _ _ _ _ _ _ _ _ _ _ @til _ _ _
181181
_ _ _ _ _ _ home pgdn pgup end _ _ _
182-
_ _ _ _ _ _ _ _ _ _ _ _ _
182+
_ _ _ _ _ _ _ sdn sup _ _ _ _
183183
_ _ _ @ltab _ _ _ _ _ _ _
184184
)
185185
'';
@@ -472,6 +472,7 @@ in {
472472
# Services
473473
#
474474
programs.adb.enable = true;
475+
programs.ydotool.enable = true;
475476
services.tor.enable = true;
476477
hardware.sane.enable = true;
477478
hardware.sane.extraBackends = [pkgs.hplip];
@@ -504,6 +505,7 @@ in {
504505
"adbusers"
505506
"networkmanager"
506507
"scanner"
508+
"ydotool"
507509
"lp"
508510
];
509511
#
@@ -731,13 +733,44 @@ in {
731733
enable = true;
732734
wrapperFeatures.gtk = true;
733735
extraOptions = ["--unsupported-gpu"];
734-
extraConfig = ''
736+
extraConfig = let
737+
ydotool = "YDOTOOL_SOCKET=/run/ydotoold/socket ${
738+
pkgs.ydotool
739+
}/bin/ydotool";
740+
in ''
735741
for_window [class="Alacritty"] fullscreen enable
736742
for_window [class="qutebrowser"] fullscreen enable
737743
for_window [class="mpv"] fullscreen enable
738744
assign [class="qutebrowser"] workspace 10
739745
assign [class="mpv"] workspace 8
740746
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+
741774
bindsym Mod4+Shift+z mode "hotkeygrab"
742775
mode "hotkeygrab" {
743776
bindsym Mod4+Shift+z mode "default"
@@ -794,9 +827,6 @@ in {
794827
"${mod}+Shift+l" = "move right";
795828
"${mod}+Shift+p" = wmEx "${sway-contrib.grimshot}/bin/grimshot copy output";
796829
"${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";
800830
"${mod}+0" = "workspace number 10";
801831
"${mod}+Shift+0" = "move container to workspace number 10";
802832
};

0 commit comments

Comments
 (0)