summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/LinHES-session
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/LinHES-system/LinHES-session')
-rwxr-xr-xabs/core/LinHES-system/LinHES-session40
1 files changed, 24 insertions, 16 deletions
diff --git a/abs/core/LinHES-system/LinHES-session b/abs/core/LinHES-system/LinHES-session
index 4563078..c2b9b03 100755
--- a/abs/core/LinHES-system/LinHES-session
+++ b/abs/core/LinHES-system/LinHES-session
@@ -88,36 +88,34 @@ function load_nvidia_settings(){
function run_tilda(){
if [ -f /usr/bin/tilda ]
then
- if [ ! -e ~/.tilda/config_0 ]
+ if [ ! -e ~/.config/tilda/config_0 ]
then
- mkdir -p ~/.tilda/
+ mkdir -p ~/.config/tilda/
fi
width=`/usr/bin/xwininfo -root|grep Width | awk '{ print $2}'`
height=`/usr/bin/xwininfo -root|grep Height | awk '{ print $2}'`
center=$[width/2]
- sixtypercent=`echo "scale=0; ( $width*.6) / 1" |bc`
- quarter_height=`echo "scale=0; ($height*.35) /1" |bc`
+ tilda_width=`echo "scale=0; ( $width*.9) / 1" |bc`
+ tilda_height=`echo "scale=0; ($height*.4) /1" |bc`
-
- if [ $sixtypercent -lt 700 ]
- then
- sixtypercent=700
+ if [ $tilda_width -lt 700 ]
+ then
+ tilda_width=700
fi
- if [ $quarter_height -lt 350 ]
- then
- quarter_height=350
+ if [ $tilda_height -lt 350 ]
+ then
+ tilda_height=350
fi
- startloc=`echo "scale=0 ; (${center}-(${sixtypercent})/2) / 1" |bc`
+ startloc=`echo "scale=0 ; (${center}-(${tilda_width})/2) / 1" |bc`
- sed -e "s/^max_width.*$/max_width = $sixtypercent/" \
- -e "s/^max_height.*$/max_height = $quarter_height/" \
- -e "s/^x_pos.*$/x_pos = $startloc/g" /etc/tilda_config > ~/.tilda/config_0
+ sed -e "s/^max_width.*$/max_width = $tilda_width/" \
+ -e "s/^max_height.*$/max_height = $tilda_height/" \
+ -e "s/^x_pos.*$/x_pos = $startloc/g" /etc/tilda_config > ~/.config/tilda/config_0
/usr/bin/tilda -h &
-
fi
}
@@ -391,6 +389,15 @@ function stop_plymouth()
fi
}
+function machine-id_check()
+{
+ if [ ! -s /etc/machine-id ]
+ then
+ echo "Setting machine ID in /etc/machine-id"
+ sudo systemd-machine-id-setup
+ fi
+}
+
if [ x"$WM" = "fluxbox" ]
then
@@ -412,6 +419,7 @@ notify_scan &
auto_start &
update_apple_trailers
stop_plymouth &
+machine-id_check &
first_configure
show_help_tip
start_myth