aboutsummaryrefslogtreecommitdiff
path: root/scripts/.local/bin/personal/wrapper/dmenu
blob: 192cfa6d06b9b66904d0625c88d8d4ae9e7f75e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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