Autostart & PKGBUILD updates

main
E. Almqvist 2 years ago
parent 7974ae9e40
commit 616daba610
  1. 5
      PKGBUILD
  2. 9
      autostart.sh.template
  3. 25
      ewm-start
  4. 2
      ewm.desktop
  5. 5
      ewm.install
  6. 2
      src/config.h

@ -6,10 +6,11 @@ pkgdesc="Epsilons Window Manager, a tiling window manager based of suckless' dyn
arch=('i686' 'x86_64')
url="https://github.com/E-Almqvist/ewm"
license=('GPL-3.0')
depends=('libx11' 'libxinerama' 'libxft' 'freetype2' 'alacritty')
depends=('libx11' 'libxinerama' 'libxft' 'freetype2' 'alacritty' 'yajl')
optdepends=('rofi' 'polybar')
options=(zipman)
source=(ewm.desktop)
install=ewm.install
build() {
cd "$srcdir/"
@ -23,5 +24,5 @@ package() {
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 ewm.desktop "$pkgdir/usr/share/xsessions/ewm.desktop"
install -Dm755 ewm-start "$pkgdir/usr/local/bin/ewm-start"
}
sha256sums=('4434a1f7047cfc847a21f70674111e68002aea80a9dc08f8b61f55d8f88794c3')

@ -0,0 +1,9 @@
# GNOME Keyring
# eval $(gnome-keyring-daemon --start)
# export SSH_AUTH_SOCK
# Keyboard layout
# setxkbmap us &
# Display settings
# $HOME/.screenlayout/layout.sh &

@ -0,0 +1,25 @@
#!/bin/sh
# Run user configured autostart
$HOME/.ewm/autostart.sh &
# Compositor (picom)
# Terminate already running picom instances
killall -q picom
# Wait until the processes have been shut down
while pgrep -u $UID -x picom >/dev/null; do sleep 1; done
# Launch picom
picom --config $HOME/.config/picom/picom.conf --experimental-backends --xrender-sync-fence &
# Background (nitrogen)
nitrogen --restore &
# Loop
while true; do
ewm > /dev/null 2>&1
done
# WM
exec ewm

@ -1,5 +1,5 @@
[Desktop Entry]
Name=ewm
Comment=Epsilons Window Manager
Exec=ewm
Exec=ewm-start
Type=XSession

@ -0,0 +1,5 @@
post_install() {
mkdir -p $HOME/.ewm
[ ! -f $HOME/.ewm/autostart.sh ] && cp $startdir/autostart.sh.template $HOME/.ewm/autostart.sh
echo "* EWM has been installed. Change your autostart script in ~/.ewm/autostart.sh to fir your needs."
}

@ -8,7 +8,7 @@ static const unsigned int snap = 0; /* snap pixel (32)*/
static const unsigned int gappx = 0;
static const unsigned int gapmodes[] = { 0, 20 };
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const int topbar = 0; /* 0 means bottom bar */
static const int barverticalpadding = 6; /* Vertical bar padding */
static const int usealtbar = 1; /* 1 means use non-dwm status bar */

Loading…
Cancel
Save