From 569b4cc84a01f191019a5c7ec9de1fdb27fc2a52 Mon Sep 17 00:00:00 2001 From: Aleksey Samoilov Date: Fri, 13 Jun 2025 00:47:02 +0400 Subject: [PATCH] common: add Wofi config --- common/etc/skel/.config/wofi/config | 8 ++++++++ niri/etc/skel/.config/niri/config.kdl | 2 +- qtile/etc/skel/.config/qtile/keybindings.py | 2 +- river/etc/skel/.config/river/keybindings.sh | 2 +- sway/etc/sway/variables | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 common/etc/skel/.config/wofi/config diff --git a/common/etc/skel/.config/wofi/config b/common/etc/skel/.config/wofi/config new file mode 100644 index 0000000..23e2d60 --- /dev/null +++ b/common/etc/skel/.config/wofi/config @@ -0,0 +1,8 @@ +show=drun +allow_images=true +allow_markup=true +hide_scroll=true +no_actions=true +lines=10 +width=600 +prompt="Search" diff --git a/niri/etc/skel/.config/niri/config.kdl b/niri/etc/skel/.config/niri/config.kdl index f38e336..10c9d30 100644 --- a/niri/etc/skel/.config/niri/config.kdl +++ b/niri/etc/skel/.config/niri/config.kdl @@ -416,7 +416,7 @@ binds { // Suggested binds for running programs: terminal, app launcher, screen locker. Mod+Return hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; } - Mod+D hotkey-overlay-title="Run an Application: wofi" { spawn "wofi --show drun --allow-images --allow-markup --hide-scroll --no-actions -lines 10 -width 35 --prompt "Search""; } + Mod+D hotkey-overlay-title="Run an Application: wofi" { spawn "wofi; } Super+Alt+L hotkey-overlay-title="Lock the Screen: gtklock" { spawn "/usr/share/tileos/scripts/lock.sh"; } // You can also use a shell. Do this if you need pipes, multiple commands, etc. diff --git a/qtile/etc/skel/.config/qtile/keybindings.py b/qtile/etc/skel/.config/qtile/keybindings.py index 499351b..b083216 100644 --- a/qtile/etc/skel/.config/qtile/keybindings.py +++ b/qtile/etc/skel/.config/qtile/keybindings.py @@ -48,7 +48,7 @@ keys = [ desc="Spawn a command using a prompt widget" ), Key([mod], "d", - lazy.spawn("wofi --show drun --allow-images --allow-markup --hide-scroll --no-actions -lines 10 -width 35 --prompt "Search" --term '{terminal}'"), + lazy.spawn("wofi --term '{terminal}'"), desc="Launch Wofi menu" ), # Switch between windows diff --git a/river/etc/skel/.config/river/keybindings.sh b/river/etc/skel/.config/river/keybindings.sh index 0b08439..cf1a5c4 100755 --- a/river/etc/skel/.config/river/keybindings.sh +++ b/river/etc/skel/.config/river/keybindings.sh @@ -7,7 +7,7 @@ mod="Mod4" term="alacritty" # Application launcher -launcher="eval wofi --show drun --allow-images --allow-markup --hide-scroll --no-actions -lines 10 -width 35 --term $term --prompt "Search"" +launcher="eval wofi --term $term" # Volume changing notify volume_bar="/usr/share/tileos/scripts/volume-notify.sh" diff --git a/sway/etc/sway/variables b/sway/etc/sway/variables index 222a611..56099a4 100644 --- a/sway/etc/sway/variables +++ b/sway/etc/sway/variables @@ -22,7 +22,7 @@ set $rofi_theme "* {lightbg: $base; background: $base; lightfg: $blue; foregroun # Your preferred application launcher # set $menu rofi -show combi -modes combi -combi-modes "drun,run" -terminal "$term" -show-icons -font "$gui-font" -set $menu wofi --show drun --allow-images --allow-markup --hide-scroll --no-actions -lines 10 -width 35 --term $term --prompt "Search" +set $menu wofi --term $term" # Add --to-code to bindsym, support for non-latin layouts set $bindsym bindsym --to-code