Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-04-17 09:52:09 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2021-04-17 09:52:09 +0200
commit5fba277dda00c32ed7cecd6c497c0ced922598e6 (patch)
tree04433f76cda1519d94044bdec46a5cb54c709d5c /profiles
parente5b0468384ba70398b91c5418399b0118ece0bc5 (diff)
parent407290b03483ebed95e5f02c6b60024bd331ba1d (diff)
Merging in master to feature branch.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/applications/awesome.py6
-rw-r--r--profiles/awesome.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/profiles/applications/awesome.py b/profiles/applications/awesome.py
index b8d779c0..a63c707b 100644
--- a/profiles/applications/awesome.py
+++ b/profiles/applications/awesome.py
@@ -6,7 +6,7 @@ installation.install_profile('xorg')
installation.add_additional_packages(__packages__)
-with open(f'{installation.mountpoint}/etc/X11/xinit/xinitrc', 'r') as xinitrc:
+with open(f'{installation.target}/etc/X11/xinit/xinitrc', 'r') as xinitrc:
xinitrc_data = xinitrc.read()
for line in xinitrc_data.split('\n'):
@@ -20,5 +20,5 @@ for line in xinitrc_data.split('\n'):
xinitrc_data += '\n'
xinitrc_data += 'exec awesome\n'
-with open(f'{installation.mountpoint}/etc/X11/xinit/xinitrc', 'w') as xinitrc:
- xinitrc.write(xinitrc_data) \ No newline at end of file
+with open(f'{installation.target}/etc/X11/xinit/xinitrc', 'w') as xinitrc:
+ xinitrc.write(xinitrc_data)
diff --git a/profiles/awesome.py b/profiles/awesome.py
index 0b00a424..cbd52a3c 100644
--- a/profiles/awesome.py
+++ b/profiles/awesome.py
@@ -39,13 +39,13 @@ if __name__ == 'awesome':
alacritty.install()
# TODO: Copy a full configuration to ~/.config/awesome/rc.lua instead.
- with open(f'{installation.mountpoint}/etc/xdg/awesome/rc.lua', 'r') as fh:
+ with open(f'{installation.target}/etc/xdg/awesome/rc.lua', 'r') as fh:
awesome_lua = fh.read()
## Replace xterm with alacritty for a smoother experience.
awesome_lua = awesome_lua.replace('"xterm"', '"alacritty"')
- with open(f'{installation.mountpoint}/etc/xdg/awesome/rc.lua', 'w') as fh:
+ with open(f'{installation.target}/etc/xdg/awesome/rc.lua', 'w') as fh:
fh.write(awesome_lua)
## TODO: Configure the right-click-menu to contain the above packages that were installed. (as a user config)