Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Awesome support #282

Closed
erikdubois opened this issue Jan 12, 2020 · 4 comments
Closed

Awesome support #282

erikdubois opened this issue Jan 12, 2020 · 4 comments

Comments

@erikdubois
Copy link

Awesome does not change with this code.

if [[ "$DESKTOP_STARTUP_ID" == "awesome"* ]]; then
	echo "local gears = require(\"gears\") gears.wallpaper.maximized(\"$1\", s, true)" | awesome-client
fi

This is the result if we type in the environement variable

echo $DESKTOP_STARTUP_ID
give this as result
awesome/urxvt/958-1-ArcoLinuxB_TIME407372

But I have changed this code to include awesome and that works - noitice the word awesome in the first line.
awesome

SIMPLE_WMS=("awesome" "bspwm" "dwm" "herbstluftwm" "i3" "i3-with-shmlog" "jwm" "openbox" "qtile" "xmonad")
if [[ " ${SIMPLE_WMS[*]} " = *" $XDG_CURRENT_DESKTOP "* || " ${SIMPLE_WMS[*]} " = *" $XDG_SESSION_DESKTOP "* ||
      " ${SIMPLE_WMS[*]} " = *" $DESKTOP_SESSION "* ]]; then
	if command -v "feh" >/dev/null 2>&1; then
        feh --bg-fill "$WP" 2> /dev/null
    elif command -v "nitrogen" >/dev/null 2>&1; then
        nitrogen --set-zoom-fill --save "$WP" 2> /dev/null
    fi
fi

Could you add the word awesome there?

@jlu5
Copy link
Member

jlu5 commented Jan 12, 2020

For DEs and WMs that support changing the wallpaper natively, we should be using that functionality over feh or nitrogen. What happens when you run the existing code for Awesome in a terminal? (I'm assuming that this code is correct and worked at some point)

@arcolinuxz
Copy link

arcolinuxz commented Jan 12, 2020

Nothing happens. Code is not applied and gears is loaded.
Could you give the exact code I need to copy/paste to test?

@jlu5
Copy link
Member

jlu5 commented Jan 13, 2020

This is what the current code looks like. The $1 should be replaced with the path to your wallpaper image:

echo "local gears = require(\"gears\") gears.wallpaper.maximized(\"$1\", s, true)" | awesome-client

@niknah
Copy link

niknah commented Feb 12, 2020

I don't have DESKTOP_STARTUP_ID on mine. I am using Arch linux + awesome

On my computer, I have this in the environment...
DESKTOP_SESSION=awesome
GDMSESSION=awesome
XDG_SESSION_DESKTOP=awesome

This works for me... (changed the call to maximized to "nil") to change it for all screens.

if [[ "$XDG_SESSION_DESKTOP" == "awesome" ]]; then
        echo "local gears = require(\"gears\") gears.wallpaper.maximized(\"$1\", nil)" | awesome-client
fi

@jlu5 jlu5 closed this as completed in 56d9d7e Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants