Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@aryklein
aryklein / swaywm.md
Last active July 14, 2022 22:34
Swaywm setup

Packages for my Swaywm setup

sway
wofi
waybar
blueberry
xdg-desktop-portal
xdg-desktop-portal-wlr
khal
@aryklein
aryklein / hidpi_external_display.md
Last active December 26, 2019 00:18
Configuring non-HiDPI external displays in Linux

Configuring a non-HiDPI external display in a HiDPI Laptop with Linux

I have a HiDPI laptop running Arch Linux and the HiDPI setting applies to the whole desktop, so non-HiDPI external displays show everything too large.

At the time of writting this document, in Gnome Display Settings (version 3.34), there is no way to use different scale option for Built-in display and external displays.

The workaround I found to use different scale options is thru xrandr on Xorg or enabling HiDPI fractional scaling on Wayland.

@aryklein
aryklein / pg_queries_and_commands.md
Created October 21, 2019 18:11
Useful PostgreSQL queries and commands

Useful PostgreSQL queries and commands

Getting information about database sessions

select pid as process_id,
       usename as username, 
       datname as database_name, 
       client_addr as client_address, 
 application_name,
@aryklein
aryklein / linux-mailserver.md
Last active March 11, 2020 09:53
Another linux mail server guide

Setting up a Linux system as a mail server with virtual users

Introduction

Setting up an email server is a difficult process involving a number of different programs, each of which needs to be properly configured. The best approach is to install and configure each individual component one by one, ensuring that each one works, and gradually build your mail server.

This guide covers how to set up a mail server on Debian 8. Most of the steps also should work on Ubuntu 14.04 LTS, considering that Ubuntu 14.04 LTS does not use systemd.