updated to Hyprlad config

+ added .desktop and wapeth1
, modified dotfiles copying for clarity
This commit is contained in:
mal0
2024-07-20 21:12:38 -04:00
parent 73577cf1a0
commit 1e6a0ce8da
+38 -11
View File
@@ -56,9 +56,9 @@ def main():
console.print('optimizing dnf.conf', style='ok') console.print('optimizing dnf.conf', style='ok')
dnf_config() dnf_config()
install_programs_dnf() install_programs_dnf()
zsh_fonts() zsh_fonts()
hyprland()
# Pass D or L to copy_dotfiles function # Pass D or L to copy_dotfiles function
while (True): while (True):
@@ -105,6 +105,37 @@ def dnf_config():
logger.info('Updated Dnf ') logger.info('Updated Dnf ')
def hyprland():
# create tty launcher
with open(home +'/.local/bin/wrappedhl', 'w+') as file:
file.write('''#!/bin/sh
cd ~
export _JAVA_AWT_WM_NONREPARENTING=1
export XCURSOR_SIZE=24
exec Hyprland ''')
file.seek(0)
for line in file:
line.strip()
# create .desktop file
with open('/usr/share/wayland-sessions/hyprland.desktop', 'w+') as file:
file.write('''[Desktop Entry]
Name=Hyprland
Comment=An intelligent dynamic tiling Wayland compositor
Exec=$HOME/.local/bin/wrappedhl
Type=Application ''')
file.seek(0)
for line in file:
line.strip()
#making them executable
subprocess.run(f'chmod +x {home}/.local/bin/wrappedhl', shell=True)
subprocess.run('chmod +x /usr/share/wayland-sessions/hyprland.desktop', shell=True)
# install programs dnfmax list i can pass to dnf of programs to install # install programs dnfmax list i can pass to dnf of programs to install
def install_programs_dnf(): def install_programs_dnf():
console.rule("Installing All Programs DNF ", style='checkt') console.rule("Installing All Programs DNF ", style='checkt')
@@ -183,17 +214,13 @@ def copy_dotfiles(setup):
console.rule("Copying Dotfiles", style='checkt') console.rule("Copying Dotfiles", style='checkt')
# list of relevant configs # list of relevant configs
lis = list(next(os.walk('.'))[1]) lis = os.listdir()
exeptions = ['.git', 'desktop', '.bashrc','.zshrc']
for z in exeptions:
if z in lis:
lis.remove(z)
lis.append('picom.conf')
if ('desktop' in lis):
lis.remove('desktop')
if ( '.git'in lis ):
lis.remove('.git')
if ('.bachrc' in lis):
lis.remove('.bashrc')
if ('.zshrc' in lis) :
lis.remove('.zshrc')
dotfiles_dir = os.getcwd() dotfiles_dir = os.getcwd()
destination = os.path.join(home,'.config') destination = os.path.join(home,'.config')