<commit_before>#!/bin/sh
#############################################################################
#
# Purpose: This script will install a desktop background image, password file,
# taskbar,and generally clean up the user desktop-interface experience.
# The menu creation and icon sorting has moved to install_icons_and_menus.sh
#
#############################################################################
# Copyright (c) 2009-2022 Open Source Geospatial Foundation (OSGeo) and others.
#
# Licensed under the GNU LGPL.
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 2.1 of the License,
# or any later version.  This library is distributed in the hope that
# it will be useful, but WITHOUT ANY WARRANTY, without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Lesser General Public License for more details, either
# in the "LICENSE.LGPL.txt" file distributed with this software or at
# web page "http://www.fsf.org/licenses/lgpl.html".
#############################################################################

./diskspace_probe.sh "`basename $0`" begin
BUILD_DIR=`pwd`
####

if [ -z "$USER_NAME" ] ; then
   USER_NAME="user"
fi
USER_HOME="/home/$USER_NAME"


# Default password list on the desktop to be replaced by html help in the future.
cp ../desktop-conf/passwords.txt "$USER_HOME/Desktop/"
chown "$USER_NAME"."$USER_NAME" "$USER_HOME/Desktop/passwords.txt"

# Setup the default desktop background image
cp ../desktop-conf/osgeo-desktop.png \
    /usr/share/lubuntu/wallpapers/

cp ../desktop-conf/osgeo-desktop-transparent.png \
   /usr/share/lubuntu/wallpapers/

### Set the desktop background
sed -i -e 's|^DesktopShortcuts=.*|DesktopShortcuts=Home, Trash|' \
       -e 's|^WallpaperMode=.*|WallpaperMode=fit|' \
       -e 's|^Wallpaper=.*|Wallpaper=/usr/share/lubuntu/wallpapers/osgeo-desktop-transparent.png|' \
       -e 's|^BgColor=.*|BgColor=#000000|' \
       -e 's|^FgColor=.*|FgColor=#ffffff|' \
       -e 's|^ShadowColor=.*|ShadowColor=#000000|' \
       -e 's|^UseTrash=.*|UseTrash=true|' \
   /etc/xdg/xdg-Lubuntu/pcmanfm-qt/lxqt/settings.conf

## Desktop shadow configuration ^^
##        -e 's|^desktop_shadow=.*|desktop_shadow=#A09A8F|' \

## Removed this for xenial: -e 's|^desktop_shadow=.*|desktop_shadow=.*\nshow_mounts=1|' \

# echo "desktop_folder_new_win=1" >> /etc/xdg/pcmanfm/lubuntu/pcmanfm.conf
<commit_msg>Back to dark desktop font<commit_after>#!/bin/sh
#############################################################################
#
# Purpose: This script will install a desktop background image, password file,
# taskbar,and generally clean up the user desktop-interface experience.
# The menu creation and icon sorting has moved to install_icons_and_menus.sh
#
#############################################################################
# Copyright (c) 2009-2022 Open Source Geospatial Foundation (OSGeo) and others.
#
# Licensed under the GNU LGPL.
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 2.1 of the License,
# or any later version.  This library is distributed in the hope that
# it will be useful, but WITHOUT ANY WARRANTY, without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Lesser General Public License for more details, either
# in the "LICENSE.LGPL.txt" file distributed with this software or at
# web page "http://www.fsf.org/licenses/lgpl.html".
#############################################################################

./diskspace_probe.sh "`basename $0`" begin
BUILD_DIR=`pwd`
####

if [ -z "$USER_NAME" ] ; then
   USER_NAME="user"
fi
USER_HOME="/home/$USER_NAME"


# Default password list on the desktop to be replaced by html help in the future.
cp ../desktop-conf/passwords.txt "$USER_HOME/Desktop/"
chown "$USER_NAME"."$USER_NAME" "$USER_HOME/Desktop/passwords.txt"

# Setup the default desktop background image
cp ../desktop-conf/osgeo-desktop.png \
    /usr/share/lubuntu/wallpapers/

cp ../desktop-conf/osgeo-desktop-transparent.png \
   /usr/share/lubuntu/wallpapers/

### Set the desktop background
sed -i -e 's|^DesktopShortcuts=.*|DesktopShortcuts=Home, Trash|' \
       -e 's|^WallpaperMode=.*|WallpaperMode=fit|' \
       -e 's|^Wallpaper=.*|Wallpaper=/usr/share/lubuntu/wallpapers/osgeo-desktop-transparent.png|' \
       -e 's|^BgColor=.*|BgColor=#000000|' \
       -e 's|^FgColor=.*|FgColor=#232323|' \
       -e 's|^ShadowColor=.*|ShadowColor=#000000|' \
       -e 's|^UseTrash=.*|UseTrash=true|' \
       -e 's|^desktop_shadow=.*|desktop_shadow=#A09A8F|' \
   /etc/xdg/xdg-Lubuntu/pcmanfm-qt/lxqt/settings.conf

## Dark Desktop shadow configuration ^^
##        -e 's|^FgColor=.*|FgColor=#ffffff|' \

## Bright Desktop shadow configuration ^^
##        -e 's|^FgColor=.*|FgColor=#232323|' \
##        -e 's|^desktop_shadow=.*|desktop_shadow=#A09A8F|' \

## Removed this for xenial: -e 's|^desktop_shadow=.*|desktop_shadow=.*\nshow_mounts=1|' \

# echo "desktop_folder_new_win=1" >> /etc/xdg/pcmanfm/lubuntu/pcmanfm.conf

{'fraction_non_alphanumeric': 0.2114264236045856, 'fraction_numerical': 0.013343356511933847, 'mean_word_length': 4.49793388429752, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2188097', 'n_tokens_mistral': 1785, 'n_tokens_neox': 1611, 'n_words': 451}