nix/home/config/sway/module/Launcher.nix

19 lines
657 B
Nix
Raw Normal View History

2024-06-25 04:04:39 +03:00
{ config, ... }: let
2024-06-29 18:05:39 +03:00
fontName = config.style.font.serif.name;
fontSize = toString config.style.font.size.desktop;
2024-04-06 03:03:58 +03:00
2024-06-29 18:05:39 +03:00
accent = config.style.color.accent;
bg = config.style.color.bg.dark;
fg = config.style.color.fg.light;
2024-04-06 03:03:58 +03:00
in {
text = ''
# Application launcher.
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
2024-06-23 00:40:52 +03:00
# set $menu _dmenu_path_wrapped | wmenu -b -p 'Run:' -i -f "${fontName} ${fontSize}" -M ${bg}D9 -S ${bg}D9 -N ${bg}D9 -m ${accent} -s ${accent} -n ${fg} | xargs swaymsg exec --
set $menu fuzzel
2024-04-06 03:03:58 +03:00
2024-06-23 04:55:57 +03:00
bindsym $mod+space exec $menu
2024-04-06 03:03:58 +03:00
'';
}