Skip to content
Myr

Rename project 'f00sel' -> 'fuzzel'

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent a44af5a · Browse files · 12 files+134 added−134 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

12 files+134 added−134 removed

  • other:+134 added−134 removed

12 files+134 added−134 removed

deleted:completions/zsh/_f00sel-28 removed
1#compdef f00sel23_arguments \4 -s \5 '(-v --version)'{-v,--version}'[show the version number and quit]' \6 '(-h --help)'{-h,--help}'[show help message and quit]' \7 '(-o --output)'{-o,--output}'[output (monitor) to display on (none)]' \8 '(-f --font)'{-f,--font}'[font name and style in fontconfig format (monospace)]:font:->fonts' \9 '(-i --icon-theme)'{-i,--icon-theme}'[icon theme name (hicolor)]:theme:->icon_theme' \10 '(-g --geometry)'{-g,--geometry}'[window WIDTHxHEIGHT, in pixels (500x300)]' \11 '(-b --background)'{-b,--background}'[background color (000000ff)]' \12 '(-t --text-color)'{-t,--text-color}'[text color (ffffffff)]' \13 '(-m --match-color)'{-m,--match-color}'[color of matched substring (cc9393ff)]' \14 '(-s --selection-color)'{-s,--selection-color}'[background color of selected item (333333ff)]' \15 '(-B --border-width)'{-B,--border-width}'[width of border, in pixels (1)]' \16 '(-r --border-radius)'{-r,--border-radius}'[amount of corner "roundness" (10)]' \17 '(-C --border-color)'{-C,--border-color}'[border color (ffffffff)]' \18 '(-d --dmenu)'{-d,--dmenu}'[dmenu compatibility mode; list entries are read from stdin]'1920case "${state}" in21 fonts)22 _values 'font families' $(fc-list : family | tr -d ' ')23 ;;2425 icon_theme)26 _values 'icon themes' $(cd /usr/share/icons; echo *)27 ;;28esac
added:completions/zsh/_fuzzel+28 added
1#compdef fuzzel23_arguments \4 -s \5 '(-v --version)'{-v,--version}'[show the version number and quit]' \6 '(-h --help)'{-h,--help}'[show help message and quit]' \7 '(-o --output)'{-o,--output}'[output (monitor) to display on (none)]' \8 '(-f --font)'{-f,--font}'[font name and style in fontconfig format (monospace)]:font:->fonts' \9 '(-i --icon-theme)'{-i,--icon-theme}'[icon theme name (hicolor)]:theme:->icon_theme' \10 '(-g --geometry)'{-g,--geometry}'[window WIDTHxHEIGHT, in pixels (500x300)]' \11 '(-b --background)'{-b,--background}'[background color (000000ff)]' \12 '(-t --text-color)'{-t,--text-color}'[text color (ffffffff)]' \13 '(-m --match-color)'{-m,--match-color}'[color of matched substring (cc9393ff)]' \14 '(-s --selection-color)'{-s,--selection-color}'[background color of selected item (333333ff)]' \15 '(-B --border-width)'{-B,--border-width}'[width of border, in pixels (1)]' \16 '(-r --border-radius)'{-r,--border-radius}'[amount of corner "roundness" (10)]' \17 '(-C --border-color)'{-C,--border-color}'[border color (ffffffff)]' \18 '(-d --dmenu)'{-d,--dmenu}'[dmenu compatibility mode; list entries are read from stdin]'1920case "${state}" in21 fonts)22 _values 'font families' $(fc-list : family | tr -d ' ')23 ;;2425 icon_theme)26 _values 'icon themes' $(cd /usr/share/icons; echo *)27 ;;28esac
modified:completions/meson.build+1 added-1 removed
1zsh_install_dir = join_paths(get_option('datadir'), 'zsh/site-functions')2install_data('zsh/_f00sel', install_dir: zsh_install_dir)2install_data('zsh/_fuzzel', install_dir: zsh_install_dir)
deleted:doc/f00sel.scd-84 removed
1f00sel(1)23# NAME4f00sel - display XDG applications in a searchable Wayland window56# SYNOPSIS7*f00sel* [_OPTIONS_]...89# DESCRIPTION1011*f00sel* lists all available XDG applications in a searchable12Window. The search box supports Emacs-like key bindings.1314The window size, font and colors can be configured with command line15options:1617*-o*,*--output*=_OUTPUT_18 Specifies the monitor to display the window on. In _Sway_, you can19 list the available outputs with *swaymsg -t get_outputs*. The default is20 to use the last monitor found.2122*-f*,*--font*=_FONT_23 Font and style to use, in fontconfig format. See *FONT FORMAT*.24 Default: _monospace_.2526*-i*,*--icon-theme*=_NAME_27 Icon theme name to use. Example: _Adwaita_. Default: _hicolor_.2829*-g*,*--geometry*=_WIDTHxHEIGHT_30 The window width and height, in pixels. Default: _500x300_.3132*-b*,*--background*=_HEX_33 Background color. See *COLORS*. Default: _000000ff_ (black).3435*-t*,*--text-color*=_HEX_36 Text color. See *COLORS*. Default: _ffffffff_ (white).3738*-m*,*--match-color*=_HEX_39 The color of matching substring(s). As you start typing in the search40 box, the matching part in each application's name is highlighted with41 this color. See *COLORS*. Default: _cc9393ff_.4243*-s*,*--selection-color*=_HEX_44 The color to use as background of the currently selected45 application. See *COLORS*. Default: _333333ff_.4647*-B*,*--border-width*=_INT_48 The width of the surrounding border, in pixels. Default: _1_.4950*-r*,*--border-radius*=_INT_51 The corner curvature. Larger means more rounded corners.52 0 disables rounded corners. Default: _10_.5354*-C*,*--border-color*=_HEX_55 The color of the border. See *COLORS*. Default: _ffffffff_.5657*-d*,*--dmenu*58 dmenu compatibility mode. In this mode, the list entries are read59 from stdin (newline separated). The selected entry is printed to60 stdout.6162*-v*,*--version*63 Show the version number and quit6465# FONT FORMAT6667The font is specified in FontConfig syntax. That is, a colon-separated68list of font name and font options.6970_Examples_:71- Dina:weight=bold:slant=italic72- Arial:size=12737475# COLORS7677All colors must be specified as a RGBA quadruple, in hex format,78without a leading '0x'..7980_EXAMPLES_:81- white: *ffffffff* (no transparency)82- black: *000000ff* (no transparency)83- black: *00000010* (semi-transparent)84- red: *ff0000ff* (no transparency)
added:doc/fuzzel.scd+84 added
1fuzzel(1)23# NAME4fuzzel - display XDG applications in a searchable Wayland window56# SYNOPSIS7*fuzzel* [_OPTIONS_]...89# DESCRIPTION1011*fuzzel* lists all available XDG applications in a searchable12Window. The search box supports Emacs-like key bindings.1314The window size, font and colors can be configured with command line15options:1617*-o*,*--output*=_OUTPUT_18 Specifies the monitor to display the window on. In _Sway_, you can19 list the available outputs with *swaymsg -t get_outputs*. The default is20 to use the last monitor found.2122*-f*,*--font*=_FONT_23 Font and style to use, in fontconfig format. See *FONT FORMAT*.24 Default: _monospace_.2526*-i*,*--icon-theme*=_NAME_27 Icon theme name to use. Example: _Adwaita_. Default: _hicolor_.2829*-g*,*--geometry*=_WIDTHxHEIGHT_30 The window width and height, in pixels. Default: _500x300_.3132*-b*,*--background*=_HEX_33 Background color. See *COLORS*. Default: _000000ff_ (black).3435*-t*,*--text-color*=_HEX_36 Text color. See *COLORS*. Default: _ffffffff_ (white).3738*-m*,*--match-color*=_HEX_39 The color of matching substring(s). As you start typing in the search40 box, the matching part in each application's name is highlighted with41 this color. See *COLORS*. Default: _cc9393ff_.4243*-s*,*--selection-color*=_HEX_44 The color to use as background of the currently selected45 application. See *COLORS*. Default: _333333ff_.4647*-B*,*--border-width*=_INT_48 The width of the surrounding border, in pixels. Default: _1_.4950*-r*,*--border-radius*=_INT_51 The corner curvature. Larger means more rounded corners.52 0 disables rounded corners. Default: _10_.5354*-C*,*--border-color*=_HEX_55 The color of the border. See *COLORS*. Default: _ffffffff_.5657*-d*,*--dmenu*58 dmenu compatibility mode. In this mode, the list entries are read59 from stdin (newline separated). The selected entry is printed to60 stdout.6162*-v*,*--version*63 Show the version number and quit6465# FONT FORMAT6667The font is specified in FontConfig syntax. That is, a colon-separated68list of font name and font options.6970_Examples_:71- Dina:weight=bold:slant=italic72- Arial:size=12737475# COLORS7677All colors must be specified as a RGBA quadruple, in hex format,78without a leading '0x'..7980_EXAMPLES_:81- white: *ffffffff* (no transparency)82- black: *000000ff* (no transparency)83- black: *00000010* (semi-transparent)84- red: *ff0000ff* (no transparency)
modified:doc/meson.build+1 added-1 removed
1sh = find_program('sh', native: true)2scdoc = dependency('scdoc', native: true)3scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true)45foreach man_src : ['f00sel.scd']5foreach man_src : ['fuzzel.scd']6 base = man_src.split('.')[-2]7 out = '@0@.1.gz'.format(base)89 custom_target(
8 unmodified lines
modified:.build.yml+3 added-3 removed
modified:main.c+9 added-9 removed
28 unmodified lines
2930#include <xdg-output-unstable-v1.h>31#include <wlr-layer-shell-unstable-v1.h>3233#define LOG_MODULE "f00sel"33#define LOG_MODULE "fuzzel"34#define LOG_ENABLE_DBG 035#include "log.h"36#include "tllist.h"37#include "shm.h"
884 unmodified lines
922923 struct stat st;924 int fd = -1;925926 if (fstatat(cache_dir_fd, "f00sel", &st, 0) == -1 ||927 (fd = openat(cache_dir_fd, "f00sel", O_RDONLY)) == -1)926 if (fstatat(cache_dir_fd, "fuzzel", &st, 0) == -1 ||927 (fd = openat(cache_dir_fd, "fuzzel", O_RDONLY)) == -1)928 {929 close(cache_dir_fd);930 LOG_ERRNO("%s/f00sel: failed to open", path);930 LOG_ERRNO("%s/fuzzel: failed to open", path);931 return;932 }933 close(cache_dir_fd);934
1 unmodified line
936 NULL, st.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);937 close(fd);938939 if (text == MAP_FAILED) {940 LOG_ERRNO("%s/f00sel: failed to mmap", path);940 LOG_ERRNO("%s/fuzzel: failed to mmap", path);941 return;942 }943944 size_t app_idx = 0;
41 unmodified lines
986 LOG_ERRNO("%s: failed to open", path);987 return;988 }989990 int fd = openat(cache_dir_fd, "f00sel", O_WRONLY | O_CREAT | O_TRUNC, 0644);990 int fd = openat(cache_dir_fd, "fuzzel", O_WRONLY | O_CREAT | O_TRUNC, 0644);991 close(cache_dir_fd);992993 if (fd == -1) {994 LOG_ERRNO("%s/f00sel: failed to open", path);994 LOG_ERRNO("%s/fuzzel: failed to open", path);995 return;996 }997998 for (size_t i = 0; i < apps->count; i++) {
159 unmodified lines
1158 dmenu_mode = true;1159 break;11601161 case 'v':1162 printf("f00sel version %s\n", F00SEL_VERSION);1162 printf("fuzzel version %s\n", FUZZEL_VERSION);1163 return EXIT_SUCCESS;11641165 case 'h':1166 print_usage(argv[0]);
139 unmodified lines
1306#endif13071308 c.wl.layer_surface = zwlr_layer_shell_v1_get_layer_surface(1309 c.wl.layer_shell, c.wl.surface, c.wl.monitor->output,1310 ZWLR_LAYER_SHELL_V1_LAYER_TOP, "f00sel");1310 ZWLR_LAYER_SHELL_V1_LAYER_TOP, "fuzzel");13111312 if (c.wl.layer_surface == NULL) {1313 LOG_ERR("failed to create layer shell surface");1314 goto out;
153 unmodified lines
modified:meson.build+3 added-3 removed
1project('f00sel', 'c',1project('fuzzel', 'c',2 version: '1.2.0',3 license: 'MIT',4 meson_version: '>=0.0.0',5 default_options: [
27 unmodified lines
33endif3435add_project_arguments(36 ['-D_GNU_SOURCE',37 '-DF00SEL_VERSION=@0@'.format(version)] +37 '-DFUZZEL_VERSION=@0@'.format(version)] +38 (is_debug_build ? ['-D_DEBUG'] : []),39 language: 'c',40)41
34 unmodified lines
76 command: [wscanner_prog, 'private-code', '@INPUT@', '@OUTPUT@'])77endforeach7879executable(80 'f00sel',80 'fuzzel',81 'application.c', 'application.h',82 'dmenu.c', 'dmenu.h',83 'font.c', 'font.h',84 'icon.c', 'icon.h',
21 unmodified lines
modified:PKGBUILD+2 added-2 removed
1pkgname=f00sel1pkgname=fuzzel2pkgver=1.1.03pkgrel=14pkgdesc="Simplistic application launcher for wayland"5arch=('x86_64')6url=https://gitlab.com/dnkl/f00sel6url=https://gitlab.com/dnkl/fuzzel7license=(mit)8makedepends=('meson' 'ninja' 'scdoc')9depends=(10 'libxkbcommon'
17 unmodified lines
modified:README.md+2 added-2 removed
1# F00sel1# Fuzzel23F00sel is a Wayland-native application launcher, similar to rofi's3Fuzzel is a Wayland-native application launcher, similar to rofi's4_drun_ mode.567## Screenshot
17 unmodified lines
modified:shm.c+1 added-1 removed
57 unmodified lines
58 cairo_surface_t *cairo_surface = NULL;59 cairo_t *cairo = NULL;6061 /* Backing memory for SHM */62 pool_fd = memfd_create("f00sel-wayland-shm-buffer-pool", MFD_CLOEXEC);62 pool_fd = memfd_create("fuzzel-wayland-shm-buffer-pool", MFD_CLOEXEC);63 if (pool_fd == -1) {64 LOG_ERRNO("failed to create SHM backing memory file");65 goto err;66 }
98 unmodified lines