sudo xbps-install weston
sudo usermod -a -G weston-launch `whoami`
Reboot to update the group assignment.
Now we can prepare the config. Let's create the file:
elogind is the part of SystemD logind that can run as standalone. So we need it to run Sway without SystemD. To do that we need to build wlroots
with elogind
option. Then we can install and use Sway as normal from the current repo. There are other ways to achieve this without elogind here. But I tried with the elogind option and I was successful.
UPDATE: I tried again on a fresh install. The elogind
option is set by default on the repo version. So you can skip the xbps-src command below and continue. wlroots
should install as a dependency of sway
if you follow the later commands.
git clone git://github.com/void-linux/void-packages.git
cd void-packages
./xbps-src binary-bootstrap
To install LAMP (Linux, Apache, MySQL/MariaDB, PHP) on Void Linux, follow these steps below.
NOTE: This has been prepared for ease of use in mind, not security. Please do not use these instructions to setup on a public server environment. Use other proper manuals instead.
Install the things we need:
#!/bin/bash | |
# Restarts the running DE without rebooting | |
# Save this file as a .sh file (e.g. restart-de.sh) | |
# run: chmod +x restart-de.sh | |
# then to restart DE: ./restart-de.sh | |
# Supports: LxQt, Openbox, KDE Plasma, GNOME, Mate, JWM, Budgie | |
xprop_session=$(xprop -id $(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') | grep _NET_WM_NAME | awk '{print $3}' | tr -d '"') |
uses | |
..., fphttpclient; | |
procedure TForm1.Button1Click(Sender: TObject); | |
begin | |
With TFPHttpClient.Create(Nil) do | |
try | |
// Sends post request and puts the response in a TMemo. | |
// Data is passed as fieldname=fieldvalue format. | |
Memo1.Text := FormPost('http://localhost/test/post.php','test1=test2'); |
function FPHTTPClientDownload(URL: string; SaveToFile: boolean = false; Filename: string = ''): string; | |
begin | |
Result := ''; | |
With TFPHttpClient.Create(Nil) do | |
try | |
try | |
if SaveToFile then begin | |
Get(URL, Filename); | |
Result := Filename; | |
end else begin |
function DownloadHTTP(URL: string; SaveToFile: boolean=False; TargetFile: string=''): string; | |
var | |
HTTPGetResult: Boolean; | |
HTTPSender: THTTPSend; | |
S: string; | |
begin | |
// Result will be: | |
// - empty ('') when it has failed | |
// - filename when the file has been downloaded successfully | |
// - content when the content SaveToFile is set to False |
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<!-- | |
Config file to solve the problem that weird font shows when Bangla/Bengali | |
text appears within Monospace text. I had a debian install which was showing | |
Mitra Mono in place of Bengali text which was not great to look at. It will | |
show the Bengali text in SolaimanLipi font when Monospace text is shown. |
" This code sets shortcuts for close buffer and save. | |
" They both work to let you know when a file has unsaved changes | |
" and offers you to give it a filename. We take this granted on | |
" modern text editors, but VIM does not have it by default. | |
" Tested in NeoVim, but should work with VIM as well. | |
" Put this on your ~/.vimrc for VIM and ~/.config/nvim/init.vim for | |
" neovim. | |
" Remaps 2 keyboard shortcuts | |
" Ctrl+W: for closing the buffer (and ask for confirmation, filename etc.) | |
" Ctrl+S: save (and ask for filename if not already saved |