Skip to content

Commit add55e5

Browse files
committed
from dev
1 parent 06bf116 commit add55e5

File tree

5 files changed

+206
-65
lines changed

5 files changed

+206
-65
lines changed

usr/local/bin/fix-sddm-conf

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
#set -e
3+
##################################################################################################################
4+
# Author : Erik Dubois
5+
# Website : https://www.erikdubois.be
6+
# Website : https://www.alci.online
7+
# Website : https://www.arcolinux.info
8+
# Website : https://www.arcolinux.com
9+
# Website : https://www.arcolinuxd.com
10+
# Website : https://www.arcolinuxb.com
11+
# Website : https://www.arcolinuxiso.com
12+
# Website : https://www.arcolinuxforum.com
13+
##################################################################################################################
14+
#
15+
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
16+
#
17+
##################################################################################################################
18+
#tput setaf 0 = black
19+
#tput setaf 1 = red
20+
#tput setaf 2 = green
21+
#tput setaf 3 = yellow
22+
#tput setaf 4 = dark blue
23+
#tput setaf 5 = purple
24+
#tput setaf 6 = cyan
25+
#tput setaf 7 = gray
26+
#tput setaf 8 = light blue
27+
##################################################################################################################
28+
29+
echo "Copying both files : etc/sddm.conf and /etc/sddm.conf.d/kde_settings.conf"
30+
sudo cp -v /usr/share/archlinux-tweak-tool/data/arco/sddm/sddm.conf /etc/sddm.conf
31+
[ -d /etc/sddm.conf.d/ ] || sudo mkdir -p /etc/sddm.conf.d/
32+
sudo cp -v /usr/share/archlinux-tweak-tool/data/arco/sddm.conf.d/kde_settings.conf /etc/sddm.conf.d/kde_settings.conf
33+
echo "/etc/sddm.conf and /etc/sddm.conf.d/kde_settings.conf changed with configs of ATT"
34+
35+
echo "###############################################################################"
36+
echo "### DONE - YOU CAN CLOSE THIS WINDOW ####"
37+
echo "###############################################################################"
38+
39+

usr/share/archlinux-tweak-tool/GUI.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def GUI(self, Gtk, Gdk, GdkPixbuf, base_dir, os, Pango): # noqa
256256

257257
else:
258258

259-
if Functions.file_check(Functions.sddm_conf):
259+
if Functions.file_check(Functions.sddm_default_d1) and Functions.file_check(Functions.sddm_default_d2) and os.path.exists("/usr/bin/sddm"):
260260
Sddm_GUI.GUI(self, Gtk, GdkPixbuf, vboxStack17, sddm, Functions)
261261
else:
262262
hbox31 = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=10)
@@ -270,17 +270,17 @@ def GUI(self, Gtk, Gdk, GdkPixbuf, base_dir, os, Pango): # noqa
270270
vboxStack17.pack_start(hbox31, False, False, 0)
271271
vboxStack17.pack_start(hbox41, False, False, 0)
272272
ls = Gtk.Label()
273-
ls.set_markup("No /etc/sddm.conf configuration file found. \nInstall <b>Sddm</b> and the configuration file to use this tab.")
274-
reset_sddm_original = Gtk.Button(label="Apply the sddm.conf from ArcoLinux")
275-
reset_sddm_original.connect("clicked", self.on_click_no_sddm_reset_original)
276-
install_sddm = Gtk.Button(label="Install Sddm and enable it")
273+
ls.set_markup("No /etc/sddm.conf or /etc/sddm.conf.d/kde_settings.conf file found. \nUse button 1 to install and enable <b>Sddm</b>.\n ")
274+
#reset_sddm_original = Gtk.Button(label="2. Apply the sddm.conf from ArcoLinux")
275+
#reset_sddm_original.connect("clicked", self.on_click_no_sddm_reset_original)
276+
install_sddm = Gtk.Button(label="1. Install Sddm and enable it")
277277
install_sddm.connect("clicked", self.on_click_att_sddm_clicked)
278-
reset_sddm_original_restart = Gtk.Button(label="Restart ArchLinux Tweak Tool")
278+
reset_sddm_original_restart = Gtk.Button(label="2. Restart ArchLinux Tweak Tool")
279279
reset_sddm_original_restart.connect("clicked", self.on_refresh_att_clicked)
280280

281281
vboxStack17.pack_start(ls, False, False, 0)
282282
vboxStack17.pack_end(reset_sddm_original_restart, False, False, 0)
283-
vboxStack17.pack_end(reset_sddm_original, False, False, 0)
283+
#vboxStack17.pack_end(reset_sddm_original, False, False, 0)
284284
vboxStack17.pack_end(install_sddm, False, False, 0)
285285

286286
# # ==========================================================

usr/share/archlinux-tweak-tool/Sddm_GUI.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def GUI(self, Gtk, GdkPixbuf, vboxStack10, sddm, Functions):
5656
label2.set_text("Theme")
5757

5858
label_sddm_config = Gtk.Label(xalign=0)
59-
label_sddm_config.set_text("Set our sddm configuration back")
59+
label_sddm_config.set_text("Set our sddm configuration back\n(/etc/sddm.conf and /etc/sddm.conf.d/kde_settings.conf")
6060

6161
label_empty1 = Gtk.Label(xalign=0)
6262
label_empty1.set_text("")
@@ -93,7 +93,7 @@ def GUI(self, Gtk, GdkPixbuf, vboxStack10, sddm, Functions):
9393
apply_sddm = Gtk.Button(label="Apply settings")
9494
apply_sddm.connect("clicked", self.on_click_sddm_apply)
9595

96-
reset_sddm_original = Gtk.Button(label="Apply the sddm.conf from ArcoLinux")
96+
reset_sddm_original = Gtk.Button(label="Apply the sddm configuration from ArcoLinux")
9797
reset_sddm_original.connect("clicked", self.on_click_sddm_reset_original)
9898

9999
enable_sddm = Gtk.Button(label="Enable Sddm")

0 commit comments

Comments
 (0)