Skip to content

installation

Nabeen Tiwaree edited this page Nov 1, 2022 · 3 revisions

This wiki page will guide you through getting ewm working on your system.

Dependencies

ewm is

  • xlib (usually libX11) dependent , make it available then you can install it as follows ...

Installation from source

$ git clone --depth=1 https://github.com/pwnwriter/ewm.git
$ cd ewm
$ make
$ sudo/doas make clean install

Arch/Artix Linux < Arch based >

with yay:

$ yay -Syy ewm

with paru:

$ paru -Syy ewm 

Metis Linux

$ sudo/doas pacman -Syyy ewm

Quich tip

Ewm's swpb script uses doas for POWEROFF menu so you need to either configure it manually or install doas

Arch

$ sudo pacman -S doas

Debian

$ sudo apt install doas

Fedora

$ sudo dnf install doas

other distro see specific manuals/guides .

After installing doas add the followings to your doas configuration file.

permit persist :wheel 
permit nopass :audio as root cmd reboot
permit nopass :audio as root cmd poweroff
permit nopass :audio as root cmd zzz

NOTE zzz is specific to RUNIT , see manuals according to your distro and change in swpb script

POWEROFF() {
	selected=$(printf "%s\n" "cancel" "shutdown" "reboot" "sleep" "tty"| dmenu)
	if [ "$selected" =  "shutdown" ]; then
		doas poweroff 
	elif [ "$selected" = "reboot" ]; then
                doas reboot
        elif [ "$selected" = "sleep" ]; then
                doas zzz 
        elif [ "$selected" = "cancel" ]; then
 		return
        elif [ "$selected" = "tty" ]; then
	        pkill x 
        fi
}

For eg, In arch linux its

# systemctl halt
# systemctl poweroff
# systemctl reboot
# systemctl suspend
# systemctl hibernate
# systemctl hybrid-sleep

ig you got me ;)