wmctrl is now a required dependency

This commit is contained in:
Dylan 2016-02-16 18:01:40 +11:00
parent 4a0f02bde7
commit 5981cb6eca
2 changed files with 7 additions and 12 deletions

View File

@ -71,6 +71,10 @@ your distro's logo or any ascii art of your choice!
- `procps-ng` - `procps-ng`
- Not required on OS X - Not required on OS X
##### Linux / BSD
- `wmctrl` \[3\]
### Optional dependencies: ### Optional dependencies:
@ -79,7 +83,6 @@ your distro's logo or any ascii art of your choice!
##### Linux / BSD ##### Linux / BSD
- Window Manager: `wmctrl` \[3\]
- Wallpaper: `feh`, `nitrogen` or `gsettings` - Wallpaper: `feh`, `nitrogen` or `gsettings`
- Current Song: `mpc` or `cmus` - Current Song: `mpc` or `cmus`
- Resolution: `xorg-xdpyinfo` - Resolution: `xorg-xdpyinfo`
@ -90,8 +93,7 @@ your distro's logo or any ascii art of your choice!
\[2\] You can enable the `iTerm2` image backend by using the launch flag `--image_backend iterm2` or by<br \> \[2\] You can enable the `iTerm2` image backend by using the launch flag `--image_backend iterm2` or by<br \>
changing the config option `$image_backend` to `iterm2`. changing the config option `$image_backend` to `iterm2`.
\[3\] You should install wmctrl if the builtin window manager detection isn't working for you. The builtin<br \> \[3\] See **#71** about why this is now a required dependency.
detection works for most people and is generally faster which is why wmctrl isn't default.
\[4\] You can use the launch flag `--scrot_cmd` or change the config option `$scrot_cmd` to your screenshot<br \> \[4\] You can use the launch flag `--scrot_cmd` or change the config option `$scrot_cmd` to your screenshot<br \>
program's cmd and fetch will use it instead of scrot. program's cmd and fetch will use it instead of scrot.

7
fetch
View File

@ -751,13 +751,6 @@ getwm () {
if type -p wmctrl >/dev/null 2>&1; then if type -p wmctrl >/dev/null 2>&1; then
wm="$(wmctrl -m | head -n1)" wm="$(wmctrl -m | head -n1)"
wm=${wm/Name: } wm=${wm/Name: }
elif [ "$XINITRC" ]; then
wm=$(grep "^[^#]*exec" "$XINITRC" | tail -n 1)
elif [ -e "$HOME/.xinitrc" ]; then
wm=$(grep "^[^#]*exec" "${HOME}/.xinitrc" | tail -n 1)
else else
case "$os" in case "$os" in
"Mac OS X") wm="Quartz Compositor" ;; "Mac OS X") wm="Quartz Compositor" ;;