<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[HyperForum — Hyperbola 0.4 setup - Openbox with a dark theme]]></title>
	<link rel="self" href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=662&amp;type=atom" />
	<updated>2022-08-31T14:31:04Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.hyperbola.info/viewtopic.php?id=662</id>
		<entry>
			<title type="html"><![CDATA[Re: Hyperbola 0.4 setup - Openbox with a dark theme]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=4959#p4959" />
			<content type="html"><![CDATA[<p>Bookworm eBook reader in the repos supports dark mode so no need to unpack EPUBs anymore.</p>]]></content>
			<author>
				<name><![CDATA[aloniv]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=387</uri>
			</author>
			<updated>2022-08-31T14:31:04Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=4959#p4959</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Hyperbola 0.4 setup - Openbox with a dark theme]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=4474#p4474" />
			<content type="html"><![CDATA[<p>After editing the Openbox menu (using obmenu3) one can view the new menu without logging out and in by simply running the following command.<br /></p><div class="codebox"><pre><code>$ openbox --reconfigure</code></pre></div>]]></content>
			<author>
				<name><![CDATA[aloniv]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=387</uri>
			</author>
			<updated>2022-05-02T08:27:20Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=4474#p4474</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Hyperbola 0.4 setup - Openbox with a dark theme]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=4455#p4455" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>aloniv wrote:</cite><blockquote><p>EPUB files are just ZIP files containing HTML documents and images so a possible dark theme solution is simply unpacking them using the unzip command and opening the HTML files using the browser (which supports a dark theme).</p></blockquote></div><p>Wrapper script:</p><p>&gt;cat bin/epub.sh <br />#/bin/sh<br />unzip -qcp &quot;$1&quot; &quot;*ml&quot; &quot;*.htm&quot;&nbsp; &nbsp;| lynx -force-html -dump -stdin -nolist | less -r&nbsp; -M +Gg</p><p>With a few tweaks it&#039;s possible to use a tmp directory with mktemp and read <br />epubs with images with something lightweight such as dillo.</p>]]></content>
			<author>
				<name><![CDATA[anthk]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=568</uri>
			</author>
			<updated>2022-04-28T23:20:58Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=4455#p4455</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Hyperbola 0.4 setup - Openbox with a dark theme]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=4280#p4280" />
			<content type="html"><![CDATA[<p>EPUB files are just ZIP files containing HTML documents and images so a possible dark theme solution is simply unpacking them using the unzip command and opening the HTML files using the browser (which supports a dark theme).</p>]]></content>
			<author>
				<name><![CDATA[aloniv]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=387</uri>
			</author>
			<updated>2022-03-31T11:48:54Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=4280#p4280</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Hyperbola 0.4 setup - Openbox with a dark theme]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=4276#p4276" />
			<content type="html"><![CDATA[<p>Very cool. Thanks for sharing.</p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2022-03-30T12:16:56Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=4276#p4276</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Hyperbola 0.4 setup - Openbox with a dark theme]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=4272#p4272" />
			<content type="html"><![CDATA[<p>I thought this guide would be useful for anyone who wants a basic desktop using a dark theme.</p><p>First install Openbox packages, a dark GTK theme and a theme switcher application:<br /></p><div class="quotebox"><blockquote><p># pacman -S openbox obconf e17-gtk-theme lxappearance</p></blockquote></div><p>Then run lxappearance and set the dark theme. In order for the new theme to work properly you might need to log out and log back in.</p><p>Qt applications can also use the GTK theme. First install the following package.</p><div class="quotebox"><blockquote><p># pacman -S qtct</p></blockquote></div><p> <br />You&#039;ll also need to install the package qt5-styleplugins (from AUR) so that Qt can use GTK themes.<br />Then add the following line to the file .bashrc<br /></p><div class="quotebox"><blockquote><p>export QT_QPA_PLATFORMTHEME=qt5ct</p></blockquote></div><p>After logging out and back in, Qt applications when run from the terminal should use the dark theme.</p><p>In order to edit the items in Openbox&#039;s menu, it&#039;s best to install a menu editor. I installed obmenu3 from AUR.</p><p>When a Qt application is run from Openbox&#039;s menu it will not use the dark theme unless the execute command is altered e.g. via obmenu3. A command such as this one for Avidemux works (just replace avidemux 3_qt5 with the command needed to run the Qt application).<br /></p><div class="quotebox"><blockquote><p>sh -c &#039;export QT_QPA_PLATFORMTHEME=qt5ct &amp;&amp; avidemux3_qt5&#039;</p></blockquote></div><p>If you want a task manager as well you can install tint2.<br /></p><div class="quotebox"><blockquote><p># pacman -S tint2</p></blockquote></div><p>In order for it to run after login add the line<br /></p><div class="quotebox"><blockquote><p>tint2 &amp;</p></blockquote></div><p>to .config/openbox/autostart</p><p>Qt applications when run from tint2 will not use the dark theme unless you edit the .desktop files.<br />Copy the relevant files to .local/share/applications (you might need to create the latter directory), e.g. for Avidemux.<br /></p><div class="quotebox"><blockquote><p>cp /usr/share/applications/org.avidemux.Avidemux.desktop .local/share/applications/</p></blockquote></div><p> Then edit the Exec line - I use this one.<br /></p><div class="quotebox"><blockquote><p>Exec=sh -c &#039;export QT_QPA_PLATFORMTHEME=qt5ct &amp;&amp; avidemux3_qt5&#039;&nbsp; %f</p></blockquote></div><p>What&#039;s still left to do: get PDF and EPUB files to use a dark theme (using mupdf and epdfview).</p>]]></content>
			<author>
				<name><![CDATA[aloniv]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=387</uri>
			</author>
			<updated>2022-03-30T09:23:07Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=4272#p4272</id>
		</entry>
</feed>
