|
NAMEwofi - Built in modes and other featuresDESCRIPTIONWofi contains several built in modes as well as a lot of other features including combi which are documented here.The config options documented here are stripped of mode names. Mode specific config options are placed in the config file in the format mode-example_opt=val. For example dmenu has an option called parse_action which would be placed in the config as dmenu-parse_action=true. MODESCurrently wofi has 3 built in modes
In the event $XDG_DATA_HOME is not specified it defaults to ~/.local/share. If $XDG_DATA_DIRS is not specified it defaults to /usr/local/share:/usr/share. Combi is not a mode however it does exist as a feature. You can use it by doing --show mode1,mode2,mode3,etc. You can mix and match any number of modes however each mode can only be loaded once so doing something like --show run,drun,run is not supported although I'm not sure why you'd do that in the first place. DMENU CONFIG OPTIONS
RUNIn run mode holding ctrl while running an entry will cause arguments to be parsed even if always_parse_args=false. Holding shift will cause the entry to be run in a terminal.RUN CONFIG OPTIONS
DRUN CONFIG OPTIONS
DRUNWhen images are enabled drun mode will pull icon themes however being a GTK app it's possible you'll need to run gtk-update-icon-cache to get them to apply.LOCATIONSThere are 9 possible locations which can be specified either by name or by number, the number scheme is the same as in rofi and the corresponding number is listed next to the names below, the default is center.
The x and y offsets are applied based on layer-shell anchors which means an x offset can only be applied if wofi is anchored on the x axis, i.e. you can only use an x offset with the top_left, top_right, right, bottom_right, bottom_left, and left locations. center, top, and bottom can't have x offsets as they're not anchored on the x axis. Likewise y offsets can only be applied to top_left, top, top_right, bottom_right, bottom, and bottom_left locations. center, left, and right can't have y offsets because they're not anchored to the y axis. Since center can't have offsets on either as it's not anchored to any axis any x or y offset applied while using center will override the location to top_left for backwards compatibility reasons seeing as not doing so would simply ignore the offsets anyway. ORDERThere are 2 order options currently, default and alphabetical. Default means the entries are displayed in the order they are added by the mode, for all built in modes this is cached items first, followed by other entries in no specific order. Alphabetical means entries are alphabetical sorted period. These orders only affect the order when no search has been entered. Once a search is entered the order is re-arranged based on the current matching preference and this order is ignored.CACHINGCaching cannot be disabled however the cache file can be set to /dev/null to effectively disable it.WINDOW SWITCHERWofi does not have the ability to do window switching on its own as there is no way to do this with wayland/wlroots protocols however if you're using sway you can use swaymsg with dmenu mode to accomplish it. The following script can be used to do window switching:swaymsg -t get_tree |
jq -r '.nodes[].nodes[] | if .nodes then [recurse(.nodes[])] else [] end +
.floating_nodes | .[] | select(.nodes==[]) | ((.id | tostring) +
"" + .name)' |
wofi --show dmenu | {
read -r id name
swaymsg "[con_id=$id]" focus
WIDGET LAYOUTThis section is for advanced CSS which needs more control than the built in wofi CSS names/classes allow for. This widget layout is subject to change at any time and without warning so your CSS might very well break if you rely on this. Widgets have their corresponding names next to them if they have one.window - #window box - #outer-box
entry - #input
scrolledwindow - #scroll viewport
box
scrollbarflowbox - #inner-box
flowboxchild - #entry
.entry - #unselected or #selected
image
This is only present if an image is present in the entry and might occur multiple times if multiple images are present. label
expander
.entry - #unselected or #selected
image
This is only present if an image is present in the entry and might occur multiple times if multiple images are present. label
list
row - #entry
.entry - #unselected or #selected
This is a WofiPropertyBox which has no CSS node and should probably not be used, the name is dependent on whether or not the entry is selected. See wofi(5) on #selected and #unselected for info. image
This is only present if an image is present in the entry and might occur multiple times if multiple images are present. label
Visit the GSP FreeBSD Man Page Interface. |