tag:blogger.com,1999:blog-17297084525973861452024-03-13T22:25:59.192-07:00Stupid CodesSolutions to stupidly simple problems that took WAY to long to figure outRobin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comBlogger22125tag:blogger.com,1999:blog-1729708452597386145.post-74957048090081641922022-02-28T03:56:00.003-08:002022-02-28T03:57:01.085-08:00Enable open in terminal option for elementaryOS file manager<p>This is how to add an "Open terminal here" entry to the eOS file manager.</p>
<p>Create <code>/usr/share/contractors/openinterminal.contract</code> with these contents:</p>
<pre><code><span class="hljs-section">[Contractor Entry]</span>
<span class="hljs-attr">Name</span>=Open terminal here
<span class="hljs-attr">Icon</span>=terminal
<span class="hljs-attr">Description</span>=Open terminal here
<span class="hljs-attr">MimeType</span>=inode;application/x-sh;application/x-executable;
<span class="hljs-attr">Exec</span>=io.elementary.terminal -w %U
<span class="hljs-attr">Gettext-Domain</span>=io.elementary.terminal
</code></pre><p>Restart the terminal, and voilla!</p>
Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-72968408513201829382022-02-13T10:48:00.001-08:002022-02-13T10:48:25.017-08:00Display Blogger feed on HTML site using RSS<p>
This is how to parse and display a blogger feed on your website. Replace the URL of the API-call in the last script tag to change the RSS feed the script pulls. Update the <code>months</code> array to change the language for the date to English.
</p>
<pre><code>
<script>
let postTitle = new Array();
let postContent = new Array();
let postUrl = new Array();
let postDate = new Array();
let months = [&quot;januari&quot;, &quot;februari&quot;, &quot;maart&quot;, &quot;april&quot;, &quot;mei&quot;, &quot;juni&quot;, &quot;juli&quot;, &quot;augustus&quot;, &quot;september&quot;, &quot;oktober&quot;, &quot;november&quot;, &quot;december&quot;];
let feedSize = 0;
function callback(apiData) {
function load() {
if (&quot;entry&quot; in apiData.feed) {
let feedSize = apiData.feed.entry.length;
for (let i = 0; i &lt; feedSize; i++) {
let post = apiData.feed.entry[i];
console.log(post)
var p = post.published.$t.substring(5, 7);
for (var f = 0; f &lt; post.link.length; f++) {
if (post.link[f].rel == &quot;alternate&quot;) {
postUrl.push(post.link[f].href);
break
}
}
let postDateDay = post.published.$t.substring(8, 10);
let postDateMonth = months[parseInt(p, 10) - 1];
let postDateYear = post.published.$t.substring(0, 4);
postDate.push(`${postDateDay} ${postDateMonth} ${postDateYear}`);
postTitle.push(post.title.$t);
postContent.push(post.content.$t);
}
}
}
function display() {
let postCount = postTitle.length;
var currentPost = 0;
while (currentPost &lt; postCount) {
document.write(`
&lt;article class=&quot;post mt-10&quot;&gt;
&lt;div class=&quot;text-center my-7 max-w-xl mx-auto&quot;&gt;
&lt;h1 id=&quot;post-${currentPost}&quot; class=&quot;mb-0 text-4xl&quot;&gt;${postTitle[currentPost]}&lt;/h1&gt;
&lt;p class=&quot;my-5 bold&quot;&gt;${postDate[currentPost]}&lt;/p&gt;
&lt;/div&gt;
&lt;section&gt;
${postContent[currentPost]}
&lt;/section&gt;
&lt;/article&gt;
&lt;hr class=&quot;my-7 border-none&quot;&gt;
`);
currentPost++
}
}
load();
display();
}
</script>
<script src="https://webdevelopment-en-meer.blogspot.com/feeds/posts/default?max-results=10&start-index=1&alt=json-in-script&callback=callback"></script>
</code></pre>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-87398351463892328022022-01-21T07:21:00.003-08:002022-01-21T07:22:11.478-08:00Minecraft Void World on 1.18.1 server<p>Edit your <code>server.properties</code> and change <code>generator-settings</code> to this:</p>
<pre><code>generator-settings={"biome"\:"minecraft\:jungle","lakes"\:false,"features"\:false,"layers"\:[{"block"\:"minecraft\:air","height"\:1}],"structures"\:{"structures"\:{}}}</code></pre>
<p>And change <code>level-type</code> to <code>FLAT</code></p>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-20594130038248094992022-01-05T02:04:00.005-08:002022-01-05T02:07:01.816-08:00Notes-Up "GitHub" themeThis is a simple theme to make Notes-Up look like GitHub markdown. Adaptation of <a href="https://github.com/sindresorhus/github-markdown-css">sindresorhus/github-markdown-css</a> for Notes-Up.
<h2>Installation</h2>
<ul>
<li>Open Preferences</li>
<li>Click viewer</li>
<li>Download the CSS below and enter in "Global style modifications"</li>
<li>Click close</li>
<li>Enjoy the new look!</li>
</ul>
<h2>Theme</h2>
<p><a href="https://gist.github.com/RobinBoers/4276744bb2c774619efc1ae4c34c6964#theme">Download the theme</a></p>
<h2>License</h2>
<p><a href="https://gist.github.com/RobinBoers/4276744bb2c774619efc1ae4c34c6964#license">View license</a></p>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-30663819382342794812021-10-24T11:02:00.006-07:002021-10-24T11:02:40.459-07:00Fill remaining height CSS<pre><code>.parent {
height: 100%;
display: flex;
flex-direction: column;
}
.child {
flex-grow: 1;
}</code></pre>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-16534124700435657322021-09-03T12:12:00.002-07:002021-09-03T12:12:37.177-07:00Prevent dunst from autostarting using DBus<p>By default, dunst is autostarted by DBus. This can be turned off by editing <code>/usr/share/dbus-1/services/org.knopwob.dunst.service</code> and changing</p>
<pre><code>Exec=/usr/bin/dunst</code></pre>
<p>To:</p>
<pre><code>Exec=/usr/bin/true</code></pre>
<p>Source:<br>
<a href="https://lists.archlinux.org/pipermail/arch-general/2015-January/038282.html">https://lists.archlinux.org/pipermail/arch-general/2015-January/038282.html</a></p>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-15570897459682027792021-08-27T04:59:00.004-07:002021-08-27T04:59:45.809-07:00Alias for diff-so-fancy<p><code>diff-so-fancy</code> is a tool to create cooler looking <code>git diff</code>s. To alias <code>git dsf</code>, enter these commands:</p>
<pre><code>git config --global alias.dsf "diff --color"
git config --global pager.dsf "diff-so-fancy | less --tabs=4 -RFXS"</code></pre>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-13091576500856475372021-08-16T06:01:00.003-07:002021-08-16T06:01:57.126-07:00How to disable default VSCode themes<p>To disable the default VSCode themes like Kimbie Dark, Red, Solarized etc, open the extensions tab (<code>CTRL+Shift+X</code>) and type <code>@builtin</code>. Then under Themes, click the ones you want to disable.</p>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-19250633270253519912021-08-13T12:42:00.001-07:002021-08-13T12:42:08.168-07:00form.submit() is not a function (JavaScript)<p>Recently, I tried sending a form using JS. I was sure I didn't make typos and errors in my code. Turns out you can't set the name attribute of an input <code>submit</code> and use the JS function <code>submit()</code> at the same time. JS tries to access submit, finds the button and thinks: "Weird, this isn't a function". So, make sure you didn't set the name attribute of any input to <code>submit</code>. It can conflict with the JS function.</p>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-46948319671309466302021-08-10T12:30:00.003-07:002021-08-10T12:30:58.739-07:00Duplicate Spotify playlist<p>To duplicate a Spotify playlist:</p>
<ul>
<li>Open that playlist</li>
<li>Hit CTRL+A</li>
<li>Right click -> copy</li>
<li>Create new playlist</li>
<li>Hit CTRL+V</li>
</ul>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-36988329526376206612021-08-09T10:41:00.034-07:002021-08-09T10:41:00.184-07:00Publish posts using Blogger API in PHP<p>This is how to create a blogpost using the <a href="https://github.com/googleapis/google-api-php-client" target="_blank">Google Client Library for PHP</a>.</p>
<p>To setup:</p>
<ol>
<li>Go to <a href="https://console.developers.google.com/">https://console.developers.google.com</a></li>
<li>Add an project, and tap "Credentials"</li>
<li>Tap "Create data" and create an Client-ID OAuth</li>
<li>Choose the "Webapp" and enter the path to your server in the "Authorized diversion URIs" textbox</li>
<li>Hit "Create", and hit OK</li>
<li>Click on the Client-ID you just generated</li>
<li>Click "Download JSON"</li>
<li>Download the file, and rename it to <code>client_secret.json</code></li>
</ol>
<p>Use this script to create and publish posts. Make sure to first enter the path to your <code>client_secret.json</code>.</p>
<pre><code><?php
// This script creates a post
// Made by Robin Boers
// load Google Api
require_once '../api/vendor/autoload.php';
session_start();
$redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
// Authenticate user with OAuth
$client = new Google_Client();
$client->setAuthConfig('/path/to/client_secret.json');
$client->setApplicationName('Example App');
$client->setRedirectUri($redirect_uri);
$client->setScopes(array('https://www.googleapis.com/auth/blogger'));
if (!isset($_SESSION['access_token']) && isset($_GET['code'])) {
$client->authenticate($_GET['code']);
$access_token = $client->getAccessToken();
$_SESSION['access_token'] = $access_token;
}
if (isset($_SESSION['access_token']) && $_SESSION['access_token']) {
// First set the accesstoken
$client->setAccessToken($_SESSION['access_token']);
$blogger = new Google_Service_Blogger($client);
// Get blog information
$blog = $blogger->blogs->getByUrl('http://stupidstuffwastaken.blogspot.com'); // Replace this URI with your blog's URI
$blogId = $blog->getId();
$blogName = $blog->getName();
$postId = "651261343944639929"; // If you want to update a post
// Creating post
$mypost = new Google_Service_Blogger_Post();
$mypost->setTitle("Example heading");
$mypost->setContent("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
$data = $blogger->posts->insert($blogId, $mypost); // or update post like this: $data = $blogger->posts->update($blogId, $postId, $mypost);
var_dump($data);
}
?></code></pre>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-15747783106221928432021-08-08T10:30:00.006-07:002021-08-08T10:30:00.166-07:00Missing depedencies when installing rofi from source on Ubuntu<p>When installing rofi 1.6.1 from source on Ubuntu, there are some missing dependencies. To install those, enter this command:</p>
<pre><code>
sudo apt install libxcb-xkb-dev libxcb-ewmh-dev libxkbcommon-x11-dev libxcb-icccm4-dev libxcb-xinerama0-dev libxcb-xrm-dev build-essential cmake extra-cmake-modules xcb
</code></pre>
<p>The <code>check</code> version in the default repos is also outdated, so you need to compile that from source too.</p>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-20478904960300303482021-08-06T10:26:00.003-07:002021-08-09T12:00:15.425-07:00Alternative to Gala taskswitcher using Rofi<p>I kinda hate the default Alt+Tab switcher in Pantheon, so I use Rofi to fix that. This is how to use rofi as Alt+Tab switcher. Make sure you have rofi version 1.6.1 installed for this to work propperly.</p>
<p>Create a new scriptfile called <code>alttab.sh</code> with this content:</p>
<pre><code>#!/usr/bin/env bash
xdotool mousemove 960 540 && rofi -no-config -theme alttab -kb-cancel "Alt+Escape,Escape" -kb-accept-entry '!Alt-Tab,!Alt+Down,!Alt+ISO_Left_Tab,!Alt+Up,Return,!Alt+Alt_L' -kb-row-down 'Alt-Tab,Alt+Down,Down,ISO_Left_Tab' -kb-row-up 'Alt+ISO_Left_Tab,Alt+Up,Up' -show window -selected-row 1
exit
</code></pre>
<p>Now make it executable:</p><code>
</code><pre><code>sudo chmod +x ./alttab.sh
</code></pre>
<p>Delete default Alt+Tab shortcut in Switchboard -> Keyboard -> Shortcuts -> Windows<br />
Now link to the file you created earlier and assign it to Alt+Tab.</p>
<p>This looks the best using this custom rofi theme I made: <a href="https://github.com/RobinBoers/dotfiles/blob/master/.config/rofi/alttab.rasi">https://github.com/RobinBoers/dotfiles/blob/master/.config/rofi/alttab.rasi</a></p>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-57233378879370228102021-08-06T02:55:00.004-07:002021-08-09T12:00:28.945-07:00Setup permissions for XAMPP<p>When installing XAMPP on Linux, you need to setup permissions to access the <code>htdocs</code> folder located at <code>/opt/lampp/htdocs/</code>.
<pre><code>sudo chown -Rc robin /opt/lampp/htdocs/
sudo chmod -Rc 777 /opt/lampp/htdocs/</code></pre>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-78488974831121903552021-08-05T11:05:00.001-07:002021-08-05T11:05:15.698-07:00Phoenix Framework doesn't work on Arch Linux due to node-sass<p>While trying to setup a chat app on Arch Linux using Phoenix Framework I ran into a lot of nodejs related errors. First of all, make sure you're using nodejs 14 or maybe 15. Everything above is absolute hell. I recommend using <a href="https://github.com/nvm-sh/nvm" target="_blank"><code>nvm</code></a>.</p>
<p>I still got a lot of errors using <code>node-sass</code>. It prevented me from using websockets by crashing the building process. Turns out you can just replace <code>node-sass</code> with <code>sass</code> in <code>package.json</code></p>
<p>Just remove this line:</p>
<pre><code>"node-sass": "xx.xx.xx"</code></pre>
<p>And replace it with:</p>
<pre><code>"sass": "^1.22.10"</code></pre>
<p>Ta da! All problems fixed. I have no idea why the guys over at Phoenix Framework don't just ship this as the default!</p>
<p>Sources:</p>
<ul>
<li><a href="https://elixirforum.com/t/phoenix-wont-compile-due-to-node-sass-on-win10/31842">https://elixirforum.com/t/phoenix-wont-compile-due-to-node-sass-on-win10</a></li>
</ul>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-45132526409289339832021-08-04T08:16:00.005-07:002021-08-04T08:32:04.697-07:00Send emails using PHP<p>This is how to send an email using PHP. For this to work, PHP needs access to the <code>sendmail</code> binary (and permission to use it). You have to set the path to this binary in <code>php.ini</code> (check where it is located using the <code>phpinfo()</code> function). Place it under the line <code>[mail function]</code>. Here's an example:</p>
<pre><code>[mail function]
sendmail_path = /usr/sbin/sendmail
</code></pre>
<p>On Windows you also have to set your SMTP server. Here's another example:</p>
<pre><code>[mail function]
SMTP = localhost
smtp_port = 25
sendmail_from = robin@geheimesite.nl
</code></pre>
<p>This is a simple script to send emails using PHP:</p>
<pre><code><?php
$msg = " Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam et fermentum lorem. Proin tristique tortor in metus mattis euismod. Donec ligula erat, ultrices at dapibus ornare, convallis ut ligula. Nullam aliquet nec enim eget consectetur. Quisque hendrerit, purus quis luctus vestibulum, massa dui commodo lectus, luctus iaculis nisl arcu eu odio. Integer porta ultrices libero, et vestibulum metus lacinia vitae. Etiam ipsum arcu, pharetra ut maximus nec, imperdiet vel ex. Donec ut ligula vel risus pellentesque porttitor. Nam lectus leo, tincidunt et justo pellentesque, dictum hendrerit neque. Pellentesque consectetur, mauris id lobortis sagittis, nisl tortor lacinia est, vel rhoncus lorem libero ut erat. Nam maximus iaculis mollis. Nunc rhoncus sagittis nulla. Nulla porta dolor sit amet ultricies ultrices. ";
$email = "robin@geheimesite.nl";
$subject = "Example email";
$msg = wordwrap($msg,70);
mail($email,$subject,$msg);
?> </code></pre>
<p>On the PHP documentation there also was a <a href="https://www.php.net/manual/en/book.mail.php#92738">usefull comment</a> (credits to pouletfou at gmail dot com) describing how to use a fakemail binary to check the logs for testing purposes:</p>
<pre><code>#!/usr/bin/php
<?php<br /> //====================================================<br /> // Program : Fake send mail<br /> // Author : pouletfou at gmail<br /> // Description : save this file as /usr/sbin/sendmail<br /> // and you can test your PHP applications using mail<br /> // by looking at the /tmp/fakesendmail.log files.<br /> //====================================================<br /><br /> define('LOGFILE','/tmp/fakesendmail.log');<br /><br /> $log = fopen (LOGFILE,'a+');<br /><br /> fwrite($log,"\n".implode(' ',$argv).<br /> " called on : ".date('Y-m-d H:i:s')."\n");<br /><br /> fwrite($log,file_get_contents("php://stdin"));<br /> fwrite($log,<br />"\n===========================================================\n");<br /> fclose($log);<br /><br />?>
</code></pre>
<p>Sources:</p>
<ul>
<li><a href="https://www.php.net/manual/en/book.mail.php">https://www.php.net/manual/en/book.mail.php</a></li>
<li><a href="https://www.quackit.com/php/tutorial/php_mail_configuration.cfm">https://www.quackit.com/php/tutorial/php_mail_configuration.cfm</a></li>
</ul>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-22218915471191488982021-08-03T07:29:00.001-07:002021-08-03T10:32:41.310-07:00Assign Rofi to super key in Pantheon<p>I'm used to use the super key to search, because I used Windows for a long time, so I like to assign Rofi to the super key.</p>
<pre><code>gsettings set org.gnome.mutter overlay-key "'Super_L'"
gsettings set org.pantheon.desktop.gala.behavior overlay-action "rofi -show drun"
</code></pre>
You can use any launcher. In this example I'm using Albert:
<pre><code>gsettings set org.gnome.mutter overlay-key "'Super_L'"
gsettings set org.pantheon.desktop.gala.behavior overlay-action "albert"
</code></pre>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-49008525478685802802021-08-03T07:26:00.004-07:002021-08-04T08:30:45.593-07:00Enable tray indicators in Pantheon<p>Some apps use the old system tray. To view them in the elementaryOS tray edit <code>/etc/xdg/autostart/indicator-application.desktop</code> and change this line:</p>
<pre><code>OnlyShowIn=Unity;GNOME;</code></pre>
to
<pre><code>OnlyShowIn=Unity;GNOME;Pantheon;</code></pre>
<p>Now install the old panel indicator from launchpad.net:<br />
<a href="http://ppa.launchpad.net/elementary-os/stable/ubuntu/pool/main/w/wingpanel-indicator-ayatana">http://ppa.launchpad.net/elementary-os/stable/ubuntu/pool/main/w/wingpanel-indicator-ayatana</a></p><p>After relog you should be able to see the icons in wingpanel.<br /></p>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-90681673567884328972021-08-03T07:21:00.010-07:002021-08-04T08:30:59.530-07:00Set default terminal in Nemo outside Cinnamon<p>Replace alacritty with your favorite terminal emulator.</p>
<pre><code>gsettings set org.gnome.desktop.default-applications.terminal exec alacritty</code></pre>
<pre><code>gsettings set org.cinnamon.desktop.default-applications.terminal exec alacritty</code></pre>
Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-73372078361488489572021-08-03T07:17:00.008-07:002021-08-03T07:30:02.160-07:00Set default apps using the commandline<p>To look up what the current default is:</p>
<pre><code>xdg-mime query default inode/directory</code></pre>
<p>To set the new default:</p>
<pre><code>xdg-mime default nemo.desktop inode/directory</code></pre>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-66506496873310651522021-08-03T07:11:00.008-07:002021-08-04T08:31:13.396-07:00Add Qtile icon in LightDM slick-greeter<p>This is how to a Qtile icon to LightDM slick-greeter. By default it displays a stupid circle.</p><ol style="text-align: left;"><li>Download the icon:<a href="https://1.bp.blogspot.com/-uJs5oKgj-mw/YQlOQng1HUI/AAAAAAAAK8s/Q2qZg7HgVrU5vlhnQBOft5RHVCokju9-gCLcBGAsYHQ/s22/icon.png"><img src="https://1.bp.blogspot.com/-uJs5oKgj-mw/YQlOQng1HUI/AAAAAAAAK8s/Q2qZg7HgVrU5vlhnQBOft5RHVCokju9-gCLcBGAsYHQ/s0/icon.png" /></a></li><li>Rename it to <code>qtile.png</code></li><li>Place it in <code>/usr/share/slick-greeter/badges/</code><br /></li></ol>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.comtag:blogger.com,1999:blog-1729708452597386145.post-46745349344704719612021-08-03T07:03:00.008-07:002021-08-04T08:31:23.140-07:00Smaller GTK headerbars on non-CSD windows<p>This is how to make the titlebars on non-CSD windows in Metacity, Marco, Mutter and Gala smaller using gtk.css</p><p>This is mostly for themes like Ambiance that were not designed for these window managers.</p><p>Put this in <code>~/.config/gtk-3.0/gtk.css</code>. This makes the headerbars on non-CSD windows smaller to make them look better.</p>
<pre><code>/*
Decrease the size of head bars for non-CSD applications
Gnome 20 (Fedora 24) compatible version
https://unix.stackexchange.com/questions/276951/how-to-change-the-titlebar-height-in-standard-gtk-apps-and-those-with-headerbars
*/
/* x11 and xwayland windows */
window.ssd headerbar.titlebar {
padding: 4px;
padding-right: 5px;
min-height: 0;
/* remove border between titlebar and window */
border: none;
}
window.ssd headerbar.titlebar button.titlebutton {
padding: 2px;
min-height: 0;
min-width: 0;
}
/* native wayland ssd windows */
.default-decoration {
padding: 4px;
padding-right: 5px;
min-height: 0;
/* remove border between titlebar and window */
border: none;
}
.default-decoration .titlebutton {
padding: 2px;
min-height: 0;
min-width: 0;
}</code></pre>Robin Boershttp://www.blogger.com/profile/08615258076318595313noreply@blogger.com