Skip to content

Commit 503d719

Browse files
committed
update
1 parent f77f15e commit 503d719

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

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

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2311,14 +2311,8 @@ def on_click_sddm_apply(self, widget):
23112311
Functions.sudo_username,
23122312
self.sessions_sddm.get_active_text(),
23132313
self.autologin_sddm.get_active(),
2314-
self.theme_sddm.get_active_text()))
2315-
t1.daemon = True
2316-
t1.start()
2317-
2318-
t1 = Functions.threading.Thread(target=sddm.set_sddm_cursor,
2319-
args=(self,
2320-
sddm.get_sddm_lines(Functions.sddm_default_d2), # noqa
2321-
self.entry_cursor_name.get_text()))
2314+
self.theme_sddm.get_active_text(),
2315+
self.entry_cursor_name.get_text()))
23222316
t1.daemon = True
23232317
t1.start()
23242318

@@ -2369,10 +2363,9 @@ def on_click_sddm_reset_original(self, widget):
23692363
except Exception as e:
23702364
print(e)
23712365

2372-
print("The ATT sddm configuration is now applied")
2366+
print("Your orignal sddm configuration is now applied")
23732367
print("Both files have been changed /etc/sddm.conf and /etc/sddm.conf.d/kde_settings.conf")
2374-
print("Now change the configuration like you want it to be and save")
2375-
Functions.show_in_app_notification(self, "The ATT sddm.conf and sddm.d.conf is now applied")
2368+
Functions.show_in_app_notification(self, "The original sddm.conf and sddm.d.conf is now applied")
23762369
Functions.restart_program()
23772370

23782371
def on_click_no_sddm_reset_original(self, widget):

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def check_sddm(lists, value):
5858
val = lists[pos].strip()
5959
return val
6060

61-
def set_sddm_value(self, lists, value, session, state, theme):
61+
def set_sddm_value(self, lists, value, session, state, theme,cursor):
6262
try:
6363
com = Functions.subprocess.run(["sh", "-c", "su - " + Functions.sudo_username + " -c groups"], shell=False, stdout=Functions.subprocess.PIPE)
6464
groups = com.stdout.decode().strip().split(" ")
@@ -80,6 +80,9 @@ def set_sddm_value(self, lists, value, session, state, theme):
8080
pos_theme = Functions._get_position(lists, "Current=")
8181
lists[pos_theme] = "Current=" + theme + "\n"
8282

83+
pos_theme = Functions._get_position(lists, "CursorTheme=")
84+
lists[pos_theme] = "CursorTheme=" + cursor + "\n"
85+
8386
with open(Functions.sddm_default_d2, "w") as f:
8487
f.writelines(lists)
8588
f.close()

0 commit comments

Comments
 (0)