Use rofi-wayland instead of wofi
diff --git a/modules/launcher.nix b/modules/launcher.nix
index 3aa9a5a..7b7d34c 100644
--- a/modules/launcher.nix
+++ b/modules/launcher.nix
@@ -6,12 +6,12 @@
}: {
home = {
home = {
- packages = [pkgs.wofi];
- file.".config/wofi/config".source = ./launcher/config.toml;
+ packages = [pkgs.rofi-wayland];
+ file.".config/rofi/config.rasi".source = ./launcher/config.rasi;
};
wayland.windowManager.sway.config.keybindings = lib.mkOptionDefault {
- "${home.wayland.windowManager.sway.config.modifier}+d" = "exec sh -c '${pkgs.procps}/bin/pkill wofi; ${pkgs.wofi}/bin/wofi'";
- "${home.wayland.windowManager.sway.config.modifier}+minus" = "exec sh -c '${pkgs.procps}/bin/pkill wofi; ${./launcher/show-scratchpad.sh}'";
+ "${home.wayland.windowManager.sway.config.modifier}+d" = "exec sh -c '${pkgs.procps}/bin/pkill rofi; ${pkgs.rofi-wayland}/bin/rofi -show combi'";
+ "${home.wayland.windowManager.sway.config.modifier}+minus" = "exec sh -c '${pkgs.procps}/bin/pkill rofi; ${./launcher/show-scratchpad.sh}'";
};
};
}
diff --git a/modules/launcher/config.rasi b/modules/launcher/config.rasi
index dd8a8ec..818eaa6 100644
--- a/modules/launcher/config.rasi
+++ b/modules/launcher/config.rasi
@@ -1,2 +1,7 @@
configuration {
+ combi-modes: "drun,run,filebrowser,ssh";
+ modes: "filebrowser,combi,ssh,run,drun";
+ font: "Liga Roboto Mono 12";
+ show-icons: true;
}
+@theme "Arc-Dark"
diff --git a/modules/launcher/config.toml b/modules/launcher/config.toml
deleted file mode 100644
index c1606ee..0000000
--- a/modules/launcher/config.toml
+++ /dev/null
@@ -1,7 +0,0 @@
-show = drun,run
-prompt = Run application
-allow_images = true
-allow_markup = true
-insensitive = true
-key_expand = Control_L
-line_wrap = word
diff --git a/modules/launcher/show-scratchpad.sh b/modules/launcher/show-scratchpad.sh
index c7e999a..46771fc 100755
--- a/modules/launcher/show-scratchpad.sh
+++ b/modules/launcher/show-scratchpad.sh
@@ -1,3 +1,3 @@
-export id="$(swaymsg -t get_tree | jq -r '.nodes[].nodes[] | select(.name == "__i3_scratch").floating_nodes | reverse[] | ((.id | tostring) + "\t" + (.app_id // .window_properties.class) + "\t" + .name)' | wofi --show dmenu --prompt "Select window to restore" | awk '{print $1;}')"
+export id="$(swaymsg -t get_tree | jq -r '.nodes[].nodes[] | select(.name == "__i3_scratch").floating_nodes | reverse[] | ((.id | tostring) + "\t" + (.app_id // .window_properties.class) + "\t" + .name)' | rofi -dmenu -i -p "Select window to restore" | awk '{print $1;}')"
echo Showing $id
swaymsg "[con_id=$id]" focus