From 07623822e064dad3aba4eac4a6feafc260913a6e Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 9 Sep 2016 11:35:03 +0200 Subject: [PATCH] add a sleep to prevent loops too quick if awesome doesn't start --- .config/awesome/rc.lua | 8 -------- .xsession.d/50-awesomewm | 6 +++++- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index e3a725d..f795500 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -19,14 +19,6 @@ require("debian.menu") -- {{{ Variable definitions -- Themes define colours, icons, and wallpapers --- The default is a dark theme -theme_path = "/usr/share/awesome/themes/default/theme.lua" --- Uncommment this for a lighter theme --- theme_path = "/usr/share/awesome/themes/sky/theme.lua" - -wallpaper_cmd = { "awsetbg -t .config/awesome/bgstripes.png" } - --- Actually load theme beautiful.init(theme_path) -- This is used later as the default terminal and editor to run. diff --git a/.xsession.d/50-awesomewm b/.xsession.d/50-awesomewm index a322305..770de83 100644 --- a/.xsession.d/50-awesomewm +++ b/.xsession.d/50-awesomewm @@ -1,4 +1,6 @@ -export _JAVA_AWT_WM_NONREPARENTING=1 +sleep 10 & +sleeppid=$! + if [ -x ~/code/awesome/awesome ]; then ~/code/awesome/awesome elif [[ -x =awesome ]]; then @@ -6,3 +8,5 @@ elif [[ -x =awesome ]]; then else x-window-manager fi + +wait $sleeppid -- 2.39.5