added lock untested

This commit is contained in:
acidburn
2023-05-03 17:25:12 -04:00
parent 591e8e7da0
commit 5ce37dcded
+18 -1
View File
@@ -81,9 +81,10 @@ def main():
#correcting ownership #correcting ownership
# subprocess.run(f"sudo -u root chown -R {user}:{user} {home}",shell=True ,stdout=subprocess.DEVNULL) # subprocess.run(f"sudo -u root chown -R {user}:{user} {home}",shell=True ,stdout=subprocess.DEVNULL)
console.print("Script done check log and Reboot \n -Run aranddr \n -nitrogen \n -lxappearance", style='checkt') console.print("Script done check log and Reboot \n -Run aranddr \n -nitrogen \n -lxappearance", style='checkt')
lock()
subprocess.check_call('lxappearance') subprocess.check_call('lxappearance')
# subprocess.check_call('exec zsh', shell=True) # subprocess.check_call('exec zsh', shell=True)
pyautogui.hotkey('win', 'shift', 'r') pyautogui.hotkey('win', 'shift', 'r')
@@ -310,6 +311,22 @@ def msic_configs():
console.print("Error with Themes :X:", style='error') console.print("Error with Themes :X:", style='error')
def lock():
console.rule('Setting up lock screen', style='checkt')
#betterlockscreen
subprocess.run('wget https://raw.githubusercontent.com/betterlockscreen/betterlockscreen/main/install.sh -O - -q | sudo bash -s system', shell=True)
#i3lock-color
dependencies =[autoconf, automake, cairo-devel, fontconfig, gcc, libev-devel, libjpeg-turbo-devel, libXinerama, libxkbcommon-devel, libxkbcommon-x11-devel, libXrandr, pam-devel, pkgconf, xcb-util-image-devel, xcb-util-xrm-devel]
for i in dependencies:
subprocess.check_call(f"dnf install -y {i}", shell=True, stdout=subprocess.DEVNULL)
subprocess.run('git clone https://github.com/Raymo111/i3lock-color.git', shell=True)
os.chdir('i3lock-color')
subprocess.run(['./install-i3lock-color.sh'])
if __name__ == '__main__': if __name__ == '__main__':
main() main()