]> xn--ix-yja.es Git - alex.git/commitdiff
Automate PaperWM setup
authoralex <alex@pdp7.net>
Sat, 5 Oct 2024 10:05:14 +0000 (12:05 +0200)
committeralexpdp7 <alex@corcoles.net>
Sat, 5 Oct 2024 10:06:46 +0000 (12:06 +0200)
.gitmodules
scripts/PaperWM [new submodule]
scripts/p7s/paperwm.py [new file with mode: 0644]
scripts/pyproject.toml

index 564647a072d324aaca19f1cdb894f26cc5f446a5..7ea80f4f5d9167de0e8635badc052fa9328de544 100644 (file)
@@ -13,3 +13,6 @@
 [submodule "personal_infra/puppet/modules/cron"]
        path = personal_infra/puppet/modules/cron
        url = https://github.com/puppetlabs/puppetlabs-cron_core.git
+[submodule "scripts/PaperWM"]
+       path = scripts/PaperWM
+       url = https://github.com/paperwm/PaperWM.git
diff --git a/scripts/PaperWM b/scripts/PaperWM
new file mode 160000 (submodule)
index 0000000..3a736d7
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 3a736d7c0c6e2b6a955ce1f4ef96bfd8b7041d33
diff --git a/scripts/p7s/paperwm.py b/scripts/p7s/paperwm.py
new file mode 100644 (file)
index 0000000..04a64f0
--- /dev/null
@@ -0,0 +1,7 @@
+import pathlib
+import subprocess
+
+
+def setup_paperwm():
+    install = (pathlib.Path(__file__).parent.parent / "PaperWM" / "install.sh")
+    subprocess.run([install], check=True)
index db3c56a00c3d5129e67587794436ebce57aa6e7a..af6196de522f1e602e652e7216136b7650f2a747 100644 (file)
@@ -28,4 +28,5 @@ bitlbee_setup = 'p7s.bitlbee:setup_bitlbee'
 setup_bash = 'p7s.bash:setup_bash'
 setup_emacs = 'p7s.emacs:setup_emacs'
 setup_ubpkg = 'p7s.ubpkg:setup_ubpkg'
+setup_paperwm = 'p7s.paperwm:setup_paperwm'
 update_zfs = 'p7s.zfs:update_zfs'