diff --git a/helpers/DATA/slim/add_trisquel-belenos_theme_conf.patch b/helpers/DATA/slim/add_trisquel-belenos_theme_conf.patch new file mode 100644 index 0000000000000000000000000000000000000000..dcd584346b7fbd15a55b7f5a9a6982a4f01d7972 --- /dev/null +++ b/helpers/DATA/slim/add_trisquel-belenos_theme_conf.patch @@ -0,0 +1,23 @@ +diff --git a/debian/slim.install b/debian/slim.install +index 399b59e..8728df6 100644 +--- a/debian/slim.install ++++ b/debian/slim.install +@@ -6,6 +6,8 @@ debian/debian-joy usr/share/slim/themes/ + debian/debian-lines usr/share/slim/themes/ + #softwaves + debian/debian-softwaves usr/share/slim/themes/ ++#belenos ++debian/trisquel-belenos usr/share/slim/themes/ + + debian/local/Xsession.d/20slim_locale etc/X11/Xsession.d + +diff --git a/debian/source/include-binaries b/debian/source/include-binaries +index 28f7732..06e7c5e 100644 +--- a/debian/source/include-binaries ++++ b/debian/source/include-binaries +@@ -10,3 +10,5 @@ debian/debian-lines/panel.png + debian/debian-lines/background.png + debian/debian-softwaves/panel.png + debian/debian-softwaves/background.png ++debian/trisquel-belenos/panel.png ++debian/trisquel-belenos/background.png diff --git a/helpers/DATA/slim/trisquel-belenos/COPYRIGHT.background b/helpers/DATA/slim/trisquel-belenos/COPYRIGHT.background new file mode 100644 index 0000000000000000000000000000000000000000..fe7a7d5bbc01727b2f7d67f18d4d686b9f67212a --- /dev/null +++ b/helpers/DATA/slim/trisquel-belenos/COPYRIGHT.background @@ -0,0 +1,24 @@ +The Trisquel Belenos Slim theme + +Upstream Authors: Luis Guzmán <ark@switnet.org> + +Copyright: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, + USA. + +More info about trisquel logo here: https://trisquel.info/en/wiki/logo + +Downloaded from: +https://gitlab.trisquel.org/trisquel/trisquel-packages/-/tree/master/11.0/trisquel-wallpapers/data/usr/share/backgrounds diff --git a/helpers/DATA/slim/trisquel-belenos/COPYRIGHT.panel b/helpers/DATA/slim/trisquel-belenos/COPYRIGHT.panel new file mode 100644 index 0000000000000000000000000000000000000000..45a86d05a4dbe33e111dfdd6b14330cd83a657f4 --- /dev/null +++ b/helpers/DATA/slim/trisquel-belenos/COPYRIGHT.panel @@ -0,0 +1,20 @@ +Copyright (C) 2007-2008 Mike Massonnet <mmassonnet@gmail.com> +Copyright (C) 2008 Yves-Alexis Perez <corsac@debian.org> +Backdrop copied from gdm package +Text "Login:" copied from SLiM default theme +Background artwork is available at http://www.debianart.org/cchost/people/si0ux/ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + diff --git a/helpers/DATA/slim/trisquel-belenos/background.png b/helpers/DATA/slim/trisquel-belenos/background.png new file mode 100644 index 0000000000000000000000000000000000000000..0facea44ed52881540d2be3766f2cc92ee99b77d Binary files /dev/null and b/helpers/DATA/slim/trisquel-belenos/background.png differ diff --git a/helpers/DATA/slim/trisquel-belenos/panel.png b/helpers/DATA/slim/trisquel-belenos/panel.png new file mode 100644 index 0000000000000000000000000000000000000000..cee0e8c71d82e471bc9e9604bd3ee8f46ebdce74 Binary files /dev/null and b/helpers/DATA/slim/trisquel-belenos/panel.png differ diff --git a/helpers/DATA/slim/trisquel-belenos/slim.theme b/helpers/DATA/slim/trisquel-belenos/slim.theme new file mode 100644 index 0000000000000000000000000000000000000000..e236ccf1fe1efdc98fdd2bf64910bedbd335d7da --- /dev/null +++ b/helpers/DATA/slim/trisquel-belenos/slim.theme @@ -0,0 +1,114 @@ +### slim taken from: +### https://github.com/data-modul/slim/blob/master/THEMES +## background +# style of background: 'stretch', 'tile', 'center', 'color' +background_style center +background_color #000000 + +# messages such as shutdown, reboot +msg_x 50% +msg_y 5% +msg_color #ffffff +msg_font DejaVu Sans:bold:size=12:dpi=96 +#msg_shadow_xoffset 1 +#msg_shadow_yoffset 1 +#msg_shadow_color #ff00ff + +# session messages eg: pressing F1: +session_x 50% +session_y 95% +session_font DejaVu Sans:bold:size=12:dpi=96 +session_color #ffffff +#session_shadow_xoffset 1 +#session_shadow_yoffset 1 +#session_shadow_color #000000 + +# Welcome message position. (relative to the panel) +# use -1 for both values or comment the options to disable +# the welcome message +welcome_x -1 +welcome_y -1 +welcome_font DejaVu Sans:bold:size=12:dpi=96 +welcome_color #ffffff +#welcome_shadow_xoffset 1 +#welcome_shadow_yoffset 2 +#welcome_shadow_color #444444 + +## panel +# Horizonatal and vertical position for the panel. +input_panel_x 50% +input_panel_y 50% + +# input controls horizontal and vertical positions. +# IMPORTANT! set input_pass_x and input_pass_y to -1 +# to use a single input box for username/password (GDM Style). +# Note that this fields only accept absolute values. +input_name_x 181 +input_name_y 169 +input_pass_x -1 +input_pass_y -1 +# Input controls font and color +input_font DejaVu Sans:bold:size=12:dpi=96 +input_color #000000 +#input_shadow_xoffset 1 +#input_shadow_yoffset 1 +#input_shadow_color #ff00ff + +# 'Enter username' and 'Enter password' position(relative to the panel) +# use -1 for both values to disable the message +# note that in case of single inputbox the password values are ignored. +username_x 260 +username_y 169 +password_x -1 +password_y -1 +username_font DejaVu Sans:bold:size=12:dpi=96 +username_color #bbbbbb +#username_shadow_xoffset -1 +#username_shadow_yoffset -1 +#username_shadow_color #ff00ff + +# The message to be displayed. Leave blank if no message +# is needed (ie, when already present in the panel image) +# +username_msg Please enter your username +password_msg Please enter your password + +### slimlock taken from: +### https://github.com/data-modul/slim/blob/master/slimlock.conf +# number of seconds of inactivity before the screen blanks. Default: 60 +dpms_standby_timeout 60 + +# same as above, but the screen turns off. Default: 600 +dpms_off_timeout 600 + +# number of seconds after entering an incorrect password before slimlock +# will accept another attempt. Default: 2 +wrong_passwd_timeout 2 + +# message to display after a failed authentication attempt. +# Default: "Authentication failed" +passwd_feedback_msg Authentication failed + +# message to display after a failed authentication attempt if the +# CapsLock is on. Default: "Authentication failed (CapsLock is on)" +passwd_feedback_capslock Authentication failed (CapsLock is on) + +# whether or not to display the username on themes with only a single +# input box. 1 to show, 0 to disable. Default: 1 +show_username 0 + +# whether or not to display SLiM's welcome message. +# 1 to show, 0 to disable. Default: 0 +show_welcome_msg 0 + +# whether or not to allow virtual terminals switching. +# 1 to disallow, 0 to allow. Default: 1 +tty_lock 1 + +# whether to ring the bell on authentication failure. +# 1 to enable, 0 to disable. Default: 1 +bell 1 + +# character to display when masking password. +# Only the first character is used. Default: * +passwd_char * diff --git a/helpers/make-slim b/helpers/make-slim new file mode 100644 index 0000000000000000000000000000000000000000..33203a556ccd54040dad729fcd371e3bc03a335c --- /dev/null +++ b/helpers/make-slim @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Copyright (C) 2024 Luis Guzmán <ark@switnet.org> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# + +VERSION=0 + +. ./config + +# Add trisquel belenos inspired theme to slim +sed -i "/+current_theme/s|debian-softwaves|trisquel-belenos|" debian/patches/slim-conf.patch +patch --no-backup-if-mismatch -p1 < $DATA/add_trisquel-belenos_theme_conf.patch +cp -R $DATA/trisquel-belenos debian/ + +changelog "Add trisquel-belenos theme." + +package