Package Details: swaysome-git 1.1.5.r49.gd700e56-1

Git Clone URL: https://aur.archlinux.org/swaysome-git.git (read-only, click to copy)
Package Base: swaysome-git
Description: AwesomeWM-like workspaces for sway
Upstream URL: https://gitlab.com/hyask/swaysome
Licenses: MIT
Conflicts: swaysome
Provides: swaysome
Submitter: Renner03
Maintainer: Renner03
Last Packager: Renner03
Votes: 1
Popularity: 0.000001
First Submitted: 2022-11-29 16:14 (UTC)
Last Updated: 2024-11-24 14:19 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

hossamdash commented on 2023-05-03 16:37 (UTC) (edited on 2023-11-25 09:49 (UTC) by hossamdash)

for any one facing the issue of incorrect output ordering (external screen having 1 prefix and internal screen having 2) a quick workaround until it's implemented properly is to apply this patch correct-output-order.patch

diff --git a/src/main.rs b/src/main.rs
index 1f7eadd..e2622a2 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -189,6 +189,7 @@ fn get_outputs(stream: &UnixStream) -> Vec<Output> {
         .filter(|x| x.active)
         .collect();
     outputs.sort_by(|x, y| x.name.cmp(&y.name)); // sort_by_key doesn't work here (https://stackoverflow.com/a/47126516)
+    outputs.reverse();
     outputs
 }

a modified PKGBUILD

# Maintainer: Renner03 <Renner03@protonmail.com>

pkgname=swaysome-git
_pkgname=swaysome
pkgver=1.1.5.r49.gd700e56
pkgrel=1
pkgdesc='AwesomeWM-like workspaces for sway'
arch=('x86_64')
url='https://gitlab.com/hyask/swaysome'
license=('MIT')
makedepends=('git' 'rust')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git+$url"
        "correct-output-order.patch")
md5sums=('SKIP'
          'SKIP')

pkgver() {
  cd "$_pkgname"
  echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)
}

prepare() {
  cd "$_pkgname"
  patch -p1 -i "$srcdir/correct-output-order.patch"
}

build() {
  cd "$_pkgname"
  cargo build --release
}

package() {
  cd "$_pkgname"
  install -Dm755 "target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
}

make sure to commit the changes to the PKGBUILD and the patch file ( placed inside the build directory of your AUR helper for this package ) are comitted locally so you keep getting new updates to this package with the patch.