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
Provenance
- Commit
b8696b9- Tree
b646f63- Author
Daniel Eklöf <daniel@ekloef.se>- Committer
Daniel Eklöf <daniel@ekloef.se>- Parent
a44af5a
12 files changed+134 added−134 removed
deleted:completions/zsh/_f00sel-28 removed
1-#compdef f00sel2-3-_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]'19-20-case "${state}" in21- fonts)22- _values 'font families' $(fc-list : family | tr -d ' ')23- ;;24-25- icon_theme)26- _values 'icon themes' $(cd /usr/share/icons; echo *)27- ;;28-esacadded:completions/zsh/_fuzzel+28 added
1+#compdef fuzzel2+3+_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]'19+20+case "${state}" in21+ fonts)22+ _values 'font families' $(fc-list : family | tr -d ' ')23+ ;;24+25+ icon_theme)26+ _values 'icon themes' $(cd /usr/share/icons; echo *)27+ ;;28+esacmodified:completions/meson.build+1 added-1 removed
1 zsh_install_dir = join_paths(get_option('datadir'), 'zsh/site-functions')2-install_data('zsh/_f00sel', install_dir: zsh_install_dir)2+install_data('zsh/_fuzzel', install_dir: zsh_install_dir)deleted:doc/f00sel.scd-84 removed
1-f00sel(1)2-3-# NAME4-f00sel - display XDG applications in a searchable Wayland window5-6-# SYNOPSIS7-*f00sel* [_OPTIONS_]...8-9-# DESCRIPTION10-11-*f00sel* lists all available XDG applications in a searchable12-Window. The search box supports Emacs-like key bindings.13-14-The window size, font and colors can be configured with command line15-options:16-17-*-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.21-22-*-f*,*--font*=_FONT_23- Font and style to use, in fontconfig format. See *FONT FORMAT*.24- Default: _monospace_.25-26-*-i*,*--icon-theme*=_NAME_27- Icon theme name to use. Example: _Adwaita_. Default: _hicolor_.28-29-*-g*,*--geometry*=_WIDTHxHEIGHT_30- The window width and height, in pixels. Default: _500x300_.31-32-*-b*,*--background*=_HEX_33- Background color. See *COLORS*. Default: _000000ff_ (black).34-35-*-t*,*--text-color*=_HEX_36- Text color. See *COLORS*. Default: _ffffffff_ (white).37-38-*-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_.42-43-*-s*,*--selection-color*=_HEX_44- The color to use as background of the currently selected45- application. See *COLORS*. Default: _333333ff_.46-47-*-B*,*--border-width*=_INT_48- The width of the surrounding border, in pixels. Default: _1_.49-50-*-r*,*--border-radius*=_INT_51- The corner curvature. Larger means more rounded corners.52- 0 disables rounded corners. Default: _10_.53-54-*-C*,*--border-color*=_HEX_55- The color of the border. See *COLORS*. Default: _ffffffff_.56-57-*-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.61-62-*-v*,*--version*63- Show the version number and quit64-65-# FONT FORMAT66-67-The font is specified in FontConfig syntax. That is, a colon-separated68-list of font name and font options.69-70-_Examples_:71-- Dina:weight=bold:slant=italic72-- Arial:size=1273-74-75-# COLORS76-77-All colors must be specified as a RGBA quadruple, in hex format,78-without a leading '0x'..79-80-_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
1+fuzzel(1)2+3+# NAME4+fuzzel - display XDG applications in a searchable Wayland window5+6+# SYNOPSIS7+*fuzzel* [_OPTIONS_]...8+9+# DESCRIPTION10+11+*fuzzel* lists all available XDG applications in a searchable12+Window. The search box supports Emacs-like key bindings.13+14+The window size, font and colors can be configured with command line15+options:16+17+*-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.21+22+*-f*,*--font*=_FONT_23+ Font and style to use, in fontconfig format. See *FONT FORMAT*.24+ Default: _monospace_.25+26+*-i*,*--icon-theme*=_NAME_27+ Icon theme name to use. Example: _Adwaita_. Default: _hicolor_.28+29+*-g*,*--geometry*=_WIDTHxHEIGHT_30+ The window width and height, in pixels. Default: _500x300_.31+32+*-b*,*--background*=_HEX_33+ Background color. See *COLORS*. Default: _000000ff_ (black).34+35+*-t*,*--text-color*=_HEX_36+ Text color. See *COLORS*. Default: _ffffffff_ (white).37+38+*-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_.42+43+*-s*,*--selection-color*=_HEX_44+ The color to use as background of the currently selected45+ application. See *COLORS*. Default: _333333ff_.46+47+*-B*,*--border-width*=_INT_48+ The width of the surrounding border, in pixels. Default: _1_.49+50+*-r*,*--border-radius*=_INT_51+ The corner curvature. Larger means more rounded corners.52+ 0 disables rounded corners. Default: _10_.53+54+*-C*,*--border-color*=_HEX_55+ The color of the border. See *COLORS*. Default: _ffffffff_.56+57+*-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.61+62+*-v*,*--version*63+ Show the version number and quit64+65+# FONT FORMAT66+67+The font is specified in FontConfig syntax. That is, a colon-separated68+list of font name and font options.69+70+_Examples_:71+- Dina:weight=bold:slant=italic72+- Arial:size=1273+74+75+# COLORS76+77+All colors must be specified as a RGBA quadruple, in hex format,78+without a leading '0x'..79+80+_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
1 sh = find_program('sh', native: true)2 scdoc = dependency('scdoc', native: true)3 scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true)4 5-foreach man_src : ['f00sel.scd']5+foreach man_src : ['fuzzel.scd']6 base = man_src.split('.')[-2]7 out = '@0@.1.gz'.format(base)8 9 custom_target(8 unmodified linesmodified:.build.yml+3 added-3 removed
13 unmodified lines1415161718181920212223242526272829282930313213 unmodified lines - wayland-protocols - wlroots-dev
sources: - https://git.sr.ht/~dnkl/f00sel - https://git.sr.ht/~dnkl/fuzzel
triggers: - action: email condition: failure to: daniel@ekloef.se
tasks: - setup: | mkdir -p bld/debug bld/release meson --buildtype=debug f00sel bld/debug meson --buildtype=release f00sel bld/release meson --buildtype=debug fuzzel bld/debug meson --buildtype=release fuzzel bld/release - build: | ninja -C bld/debug -k0 ninja -C bld/release -k0modified:main.c+9 added-9 removed
28 unmodified lines29 30 #include <xdg-output-unstable-v1.h>31 #include <wlr-layer-shell-unstable-v1.h>32 33-#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 lines922 923 struct stat st;924 int fd = -1;925 926- 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 line936 NULL, st.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);937 close(fd);938 939 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 }943 944 size_t app_idx = 0;41 unmodified lines986 LOG_ERRNO("%s: failed to open", path);987 return;988 }989 990- 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);992 993 if (fd == -1) {994- LOG_ERRNO("%s/f00sel: failed to open", path);994+ LOG_ERRNO("%s/fuzzel: failed to open", path);995 return;996 }997 998 for (size_t i = 0; i < apps->count; i++) {159 unmodified lines1158 dmenu_mode = true;1159 break;1160 1161 case 'v':1162- printf("f00sel version %s\n", F00SEL_VERSION);1162+ printf("fuzzel version %s\n", FUZZEL_VERSION);1163 return EXIT_SUCCESS;1164 1165 case 'h':1166 print_usage(argv[0]);139 unmodified lines1306 #endif1307 1308 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");1311 1312 if (c.wl.layer_surface == NULL) {1313 LOG_ERR("failed to create layer shell surface");1314 goto out;153 unmodified linesmodified:meson.build+3 added-3 removed
1-project('f00sel', 'c',1+project('fuzzel', 'c',2 version: '1.2.0',3 license: 'MIT',4 meson_version: '>=0.0.0',5 default_options: [27 unmodified lines33 endif34 35 add_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 lines76 command: [wscanner_prog, 'private-code', '@INPUT@', '@OUTPUT@'])77 endforeach78 79 executable(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 linesmodified:PKGBUILD+2 added-2 removed
1-pkgname=f00sel1+pkgname=fuzzel2 pkgver=1.1.03 pkgrel=14 pkgdesc="Simplistic application launcher for wayland"5 arch=('x86_64')6-url=https://gitlab.com/dnkl/f00sel6+url=https://gitlab.com/dnkl/fuzzel7 license=(mit)8 makedepends=('meson' 'ninja' 'scdoc')9 depends=(10 'libxkbcommon'17 unmodified linesmodified:README.md+2 added-2 removed
1-# F00sel1+# Fuzzel2 3-F00sel is a Wayland-native application launcher, similar to rofi's3+Fuzzel is a Wayland-native application launcher, similar to rofi's4 _drun_ mode.5 6 7 ## Screenshot17 unmodified linesmodified:shm.c+1 added-1 removed
57 unmodified lines58 cairo_surface_t *cairo_surface = NULL;59 cairo_t *cairo = NULL;60 61 /* 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