diff options
-rw-r--r-- | .config/awesome/awesome.lua | 16 | ||||
-rw-r--r-- | .xinitrc | 11 |
2 files changed, 14 insertions, 13 deletions
diff --git a/.config/awesome/awesome.lua b/.config/awesome/awesome.lua index f2e3a1a..3d9de1d 100644 --- a/.config/awesome/awesome.lua +++ b/.config/awesome/awesome.lua @@ -19,12 +19,12 @@ beautiful.init(os.getenv("HOME") .. "/.local/share/awesome/themes/zenburn/theme. local cmd = require("cmds") -function spawn_once(unit, cmd) - awful.util.spawn("systemd-run --user --scope --unit " .. unit .. " -- " .. cmd, false) -end +--function spawn_once(unit, cmd) +-- awful.util.spawn("systemd-run --user --scope --unit " .. unit .. " -- " .. cmd, false) +--end ---local runonce = require("runonce") ---local spawn_once = function(unit, cmd) runonce.run(cmd) end +local runonce = require("runonce") +local spawn_once = function(unit, cmd) runonce.run(cmd) end spawn_once("urxvtd", cmd.urxvtd) spawn_once("pulseaudio", "start-pulseaudio-x11") @@ -43,9 +43,9 @@ local spawn_from_awesome = awful.util.spawn -- spawn_from_awesome("launch " .. s, false) --end -awful.util.spawn = function(cmd, n) - spawn_from_awesome("systemd-run --user --scope -- " .. cmd, n) -end +--awful.util.spawn = function(cmd, n) +-- spawn_from_awesome("systemd-run --user --scope -- " .. cmd, n) +--end awful.util.spawn("xsetroot -cursor_name left_ptr", false) -- Default modkey. @@ -11,10 +11,11 @@ unset command -if [ -S $XDG_RUNTIME_DIR/dbus/user_bus_socket ] -then - export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/dbus/user_bus_socket -else +#if [ -S $XDG_RUNTIME_DIR/dbus/user_bus_socket ] +#then +# export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/dbus/user_bus_socket +## command="systemd-run --user --scope --unit windowmanager -- " +#else # temporarily unset XDG_SESSION_COOKIE so consolekit launches a new session realxdgcookie="$XDG_SESSION_COOKIE" XDG_SESSION_COOKIE= @@ -27,6 +28,6 @@ else # restore XDG_SESSION_COOKIE XDG_SESSION_COOKIE="$realxdgcookie" unset realxdgcookie -fi +#fi exec $command $(XSESSION="${2:-${XSESSION}}" /etc/X11/chooser.sh) |