#!/bin/bash # A wrapper for dmenu to always have it spawn with certain properties # TODO: Get rid of this script source "$XDG_CACHE_HOME/wal/colors.sh" gap=6 # This didnt work with multi monitor, great otherwise # width="$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/' | tr 'x' '\n' | head -n 1)" width="1600" /usr/local/bin/dmenu \ -fn "$(xres Xft.font | sed 's/"//g')" \ -nb "$background" \ -nf "$foreground" \ -sb "$primary" \ -sf "$background" \ -x "$gap" \ -y "$gap" \ -z "$(($width - $gap - $gap))" \ -h "26" \ -m 0 \ -i